Menu

[r8156]: / trunk / sampledoc_tut / cheatsheet.rst  Maximize  Restore  History

Download this file

99 lines (60 with data), 1.9 kB

Sphinx cheat sheet

Here is a quick and dirty cheat sheet for some common stuff you want to do in sphinx and ReST. You can see the literal source for this file at :ref:`cheatsheet -literal`.

Formatting text

You use inline markup to make text italics, bold, or monotype.

You can represent code blocks fairly easily:

import numpy as np
x = np.random.rand(12)

Or literally include code:

Making a list

It is easy to make lists in rest

Bullet points

This is a subsection making bullet points

  • point A
  • point B
  • point C

Enumerated points

This is a subsection making numbered points

  1. point A
  2. point B
  3. point C

Making a table

This shows you how to make a table -- if you only want to make a list see :ref:`making-a-list`.

Name Age
John D Hunter 40
Cast of Thousands 41
And Still More 42

This file