reStructuredText Extensions

rSW includes support for a few directives and roles that are not part of Docutils.

code-block

Example:

.. code-block:: python

    if __name__ == "__main__":
        # [initialize]
        app.start(":8000")
        # [initialize]

Result:

if __name__ == "__main__":
    # [initialize]
    app.start(":8000")
    # [initialize]

TODO

In plan:

  • Fully featured code-block (as in Sphinx)

  • Deleted text (<del>)

  • Inserted text (<ins>)

  • Keystrokes mark (:kbd:)

  • Spoilers (<details>, <summary>)

  • Table of Contents (toctree)

  • Abbreviations (:abbr:)