2.4. reStructuredText

reStructuredText (RST) pur[pose is to provide an easy-to-read, what-you-see-is-what-you-get plaintext markup syntax and parser system. With its help you can develop documentation not only for stand aone documentation, simple web pages, an in-line program documentation (such as Python). RST is extensible and new features can be added. It is used in sphinx as one of its supported formats.

2.4.2. Source

The source for this page is located at

This way you can look at the source on how we create this page.

2.4.3. Sections

# with overline, for parts * with overline, for chapters =, for sections -, for subsections ^, for subsubsections “, for paragraphs

RST allows to specify a number of sections. You can do this with the various underlines:

*********************
Chapter
*********************
Section
=====================
Subsection
---------------------
Subsubsection
^^^^^^^^^^^^^^^^^^^^^
Paragraph
~~~~~~~~~~~~~~~~~~~~~

2.4.4. Listtable

.. csv-table:: Eye colors
   :header: "Name", "Firstname", "eyes"
   :widths: 20, 20, 10

   "von Laszewski", "Gregor", "gray"
a title
Name Firstname eyes
von Laszewski Gregor gray

2.4.5. Exceltable

we have integrated Excel table from http://pythonhosted.org//sphinxcontrib-exceltable/ intou our sphinx allowing the definition of more elaborate tables specified in excel. Howere the most convenient way may be to use list-tables. The documentation to list tables can be found at http://docutils.sourceforge.net/docs/ref/rst/directives.html#list-table

2.4.6. Boxes

2.4.6.1. Seealso

.. seealso:: This is a simple **seealso** note.

See also

This is a simple seealso note.

2.4.6.2. Note

Note

This is a note box.

.. note::  This is a **note** box.

2.4.6.3. Warning

Warning

note the space between the directive and the text

.. warning:: note the space between the directive and the text

2.4.6.4. Others

Attention

This is an attention box.

.. attention:: This is an **attention** box.

Caution

This is a caution box.

.. caution:: This is a **caution** box.

Danger

This is a danger box.

.. danger:: This is a **danger** box.

Error

This is a error box.

.. error:: This is a **error** box.

Hint

This is a hint box.

.. hint:: This is a **hint** box.

Important

This is an important box.

.. important:: This is an **important** box.

Tip

This is a tip box.

.. tip:: This is a **tip** box.

2.4.8. Sphinx Prompt

.. prompt:: bash, cloudmesh$

   wget -O cm-setup.sh http://bit.ly/cloudmesh-client-xenial
   sh cm-setup.sh
wget -O cm-setup.sh http://bit.ly/cloudmesh-client-xenial
sh cm-setup.sh

2.4.9. Programm examples

You can include code examples and bash commands with two colons.

This is an example for python:

print ("Hallo World")

This is an example for a shell command:

$ ls -lisa

2.4.11. Todo

.. todo:: an example
../../_images/todo.png