Look at the raw version of this file to compare the source and build version: sphinx_cheatsheet.rst

The first lines of this page will also be explained later on in this document (see Links and Titles)

Moderate emphasis

Strong emphasis

This is text in Courier

This is plain text.

  • Use literal markup for:
    • pieces of code
    • commands
    • arguments
    • file names, hostnames
    • a specific term, when emphasis is on its name
    • configuration file statements and values
  • Acronyms:

In general: avoid acronyms. When you want to use them, the first occurrence on a page should explain them: CephFS (Ceph Filesystem). Sphinx supports a :abbr: tag, see Here’s a test: CephFS

  • This is a bulleted list.
  1. This is a numbered list.
  2. It has two items.
  • this is
  • a list
    • with a nested list
    • and some subitems
  • and here the parent list continues



SURFsara website (see bottom of the document; that is were we tell Sphinx were SURFsara website should point to)

This is an implicit link to title:

Sample H2

Internal wiki link:

Reference tag: place above a title: .. _my-reference-label:

Then refer to it from another page as. For example, for this cheatsheet: Cheatsheet or ref:other label <cheatsheet>

H1: document title

Sample H2

Sample H3

Sample H4

Sample H5
Sample H6

And some text.

Header 1 Header 2 Header 3
body row 1 column 2 column 3
body row 2 Cells may span columns.
body row 3 Cells may span rows.
  • Cells
  • contain
  • blocks.
body row 4


Column1 Column2
value1 40
value2 41
value3 42


This is a warning box.


This is a note box.


This is a tip box.


This is an error box.

See also

This is a simple seealso note.

Your Topic Title

Subsequent indented lines comprise the body of the topic, and are interpreted as body elements.


A file for download

  • When you want to display commands, output and comments, use .. code-block:: bash. Prefix commands with a $ and prefix comments with ##, otherwise they are marked up as a command. Example:

    $echo 'Hello World!'
    Hello World!
    ## Comments should be prefixed with a double ``#``.
  • When you want to display commands and comments, use .. code-block:: bash. Don’t prefix commands. Example:

    # [homer@htp-ui ~]$ is the first prompt upon login
    ssh [USERNAME]@[Spider HOSTNAME]
  • You can add line numbers to code examples with the :linenos: parameter.

# [homer@htp-ui ~]$ is the first prompt upon login
  • To display the contents of a shell script, use .. code-block:: bash.
  • To display configuration files, use .. code-block:: cfg.