Syntax

Enumerated lists

  1. This is the first item
  2. This is the second item
  3. Enumerators are arabic numbers, single letters, or roman numerals
  4. List items should be sequentially numbered, but need not start at 1 (although not all formatters will honour the first index).
  5. This item is auto-enumerated

Level 3 titles

Referring to a page in the docs with custom link text Talk to us please!

Otherwise it will use the name of the document by default Contact us

A line block with some syntax too.
preserving line breaks and spaces where needed

Level 4 titles

emphasis strong literal link

Level 5 titles

… are discouraged as they look smaller than paragraphs

http://docutils.sourceforge.net/docs/user/rst/images/ball1.gif

Figures

Look nicer than plain inserted images as they have a bounding box. They do not work well with left or right align.

http://zckimg.com/squidoo/lolcat/eated-cookie-lolcat.jpg

Someone ate a cookie, kitten sad…

Versions

To specify below the title of a page when a new feature was added, use:

.. versionadded:: 1.1

Tables

A B
Led Cepin music
Hugh Laurie television

Simple table:

Inputs Output
A B A or B
False False False
True False True
False True True
True True True

Definition lists

what
Definition lists associate a term with a definition.
how
The term is a one-line phrase, and the definition is one or more paragraphs or body elements, indented relative to the term. Blank lines are not allowed between term and definition.

Footnotes

Footnotes provide extra information where using an info box is not appropriate [1]

[1]Like here, the text is relevant only to the line here, not the whole page say.

Source Code

This is a normal text paragraph. The next paragraph is a code sample

/* Type here */

Widget = {
    hide: function() {
        return this.element
            .animate({opacity: 0.0, top: -10});
    },
    show: function() {
        return this.element
            .animate({opacity: 1.0, top: 0});
    },
    element: $(".widget")
}

This is a normal text paragraph again followed by some CoffeeScript.

# Type here
Scope::find = (name, options) ->
    return true if @check(name, options)
    @add name, "var"
    false

Note

Note

Refer to mine with as MINE_NAME

Warning

Warning

All bash code blocks should start with $

Index page

The index page (link top right) is generated automatically using the keywords set on each page:

.. index:: keyword, another keyword

Troubleshooting

Entire document not appearing? Lines beginning with whitespace are invalid and can cause this error. Comb through your document and check things like headings to make sure they’re manually trimmed.

 This would be a bad heading because it starts with a space
===========================================================

ASCII Art…

       .,,.
     ,;;*;;;;,
    .-'``;-');;.
   /'  .-.  /*;;
 .'    \d    \;;               .;;;,
/ o      `    \;    ,__.     ,;*;;;*;,
\__, _.__,'   \_.-') __)--.;;;;;*;;;;,
 `""`;;;\       /-')_) __)  `\' ';;;;;;
    ;*;;;        -') `)_)  |\ |  ;;;;*;
    ;;;;|        `---`    O | | ;;*;;;
    *;*;\|                 O  / ;;;;;*
   ;;;;;/|    .-------\      / ;*;;;;;
  ;;;*;/ \    |        '.   (`. ;;;*;;;
  ;;;;;'. ;   |          )   \ | ;;;;;;
  ,;*;;;;\/   |.        /   /` | ';;;*;
   ;;;;;;/    |/       /   /__/   ';;;
   '*jgs/     |       /    |      ;*;
        `""""`        `""""`     ;'