2008-08-06 09:46:11 -05:00
|
|
|
:tocdepth: 2
|
|
|
|
|
|
|
|
Testing various markup
|
|
|
|
======================
|
|
|
|
|
|
|
|
.. sectionauthor:: Georg Brandl
|
|
|
|
|
|
|
|
.. contents:: TOC
|
|
|
|
|
2008-10-18 12:29:56 -05:00
|
|
|
.. meta::
|
|
|
|
:author: Me
|
|
|
|
:keywords: docs, sphinx
|
|
|
|
|
2008-10-28 11:53:05 -05:00
|
|
|
.. _label:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
some code
|
2008-08-06 09:46:11 -05:00
|
|
|
|
|
|
|
Admonitions
|
|
|
|
-----------
|
|
|
|
|
|
|
|
.. note:: Note
|
|
|
|
Note text.
|
|
|
|
|
|
|
|
.. warning:: Warning
|
|
|
|
|
|
|
|
Warning text.
|
|
|
|
|
2008-08-06 10:13:42 -05:00
|
|
|
.. tip::
|
2008-08-06 09:46:11 -05:00
|
|
|
Tip text.
|
|
|
|
|
|
|
|
|
2008-11-01 09:40:02 -05:00
|
|
|
Body directives
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. topic:: Title
|
|
|
|
|
|
|
|
Topic body.
|
|
|
|
|
|
|
|
.. sidebar:: Sidebar
|
|
|
|
:subtitle: Sidebar subtitle
|
|
|
|
|
|
|
|
Sidebar body.
|
|
|
|
|
|
|
|
.. rubric:: Test rubric
|
|
|
|
|
|
|
|
.. epigraph:: Epigraph title
|
|
|
|
|
|
|
|
Epigraph body.
|
|
|
|
|
|
|
|
-- Author
|
|
|
|
|
|
|
|
.. highlights:: Highlights
|
|
|
|
|
|
|
|
Highlights body.
|
|
|
|
|
|
|
|
.. pull-quote:: Pull-quote
|
|
|
|
|
|
|
|
Pull quote body.
|
|
|
|
|
|
|
|
.. compound::
|
|
|
|
|
|
|
|
a
|
|
|
|
|
|
|
|
b
|
|
|
|
|
|
|
|
|
2008-08-06 09:46:11 -05:00
|
|
|
Tables
|
|
|
|
------
|
|
|
|
|
2008-08-06 10:13:42 -05:00
|
|
|
.. tabularcolumns:: |L|p{5cm}|R|
|
2008-08-06 09:46:11 -05:00
|
|
|
|
|
|
|
+----+----------------+----+
|
|
|
|
| 1 | * Block elems | x |
|
|
|
|
| | * In table | |
|
|
|
|
+----+----------------+----+
|
|
|
|
| 2 | Empty cells: | |
|
|
|
|
+----+----------------+----+
|
|
|
|
|
|
|
|
|
|
|
|
Version markup
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. versionadded:: 0.5
|
|
|
|
Some funny **stuff**.
|
|
|
|
|
|
|
|
.. versionchanged:: 0.5
|
2008-08-06 10:13:42 -05:00
|
|
|
Even more funny stuff.
|
2008-08-06 09:46:11 -05:00
|
|
|
|
|
|
|
.. deprecated:: 0.4
|
|
|
|
Boring stuff.
|
|
|
|
|
|
|
|
|
|
|
|
Misc stuff
|
|
|
|
----------
|
|
|
|
|
2008-08-06 10:13:42 -05:00
|
|
|
Stuff [#]_
|
|
|
|
|
2008-10-25 10:54:34 -05:00
|
|
|
Reference lookup: [Ref1]_ (defined in another file).
|
|
|
|
|
2008-11-04 14:35:05 -06:00
|
|
|
.. seealso:: something, something else, something more
|
2008-08-06 09:46:11 -05:00
|
|
|
|
|
|
|
`Google <http://www.google.com>`_
|
|
|
|
For everything.
|
|
|
|
|
2009-01-04 15:00:40 -06:00
|
|
|
.. hlist::
|
|
|
|
:columns: 4
|
|
|
|
|
|
|
|
* This
|
|
|
|
* is
|
|
|
|
* a horizontal
|
|
|
|
* list
|
|
|
|
* with several
|
|
|
|
* items
|
|
|
|
|
2008-08-06 09:46:11 -05:00
|
|
|
.. rubric:: Side note
|
|
|
|
|
|
|
|
This is a side note.
|
|
|
|
|
2008-10-16 15:41:05 -05:00
|
|
|
This tests :CLASS:`role names in uppercase`.
|
|
|
|
|
2008-11-03 14:40:21 -06:00
|
|
|
Option list:
|
|
|
|
|
|
|
|
-h help
|
|
|
|
--help also help
|
|
|
|
|
2008-08-06 09:46:11 -05:00
|
|
|
.. centered:: LICENSE AGREEMENT
|
|
|
|
|
|
|
|
.. acks::
|
|
|
|
|
|
|
|
* Terry Pratchett
|
|
|
|
* J. R. R. Tolkien
|
|
|
|
* Monty Python
|
|
|
|
|
|
|
|
.. glossary::
|
|
|
|
|
|
|
|
boson
|
|
|
|
Particle with integer spin.
|
|
|
|
|
|
|
|
fermion
|
|
|
|
Particle with half-integer spin.
|
|
|
|
|
|
|
|
.. productionlist::
|
|
|
|
try_stmt: try1_stmt | try2_stmt
|
|
|
|
try1_stmt: "try" ":" `suite`
|
|
|
|
: ("except" [`expression` ["," `target`]] ":" `suite`)+
|
|
|
|
: ["else" ":" `suite`]
|
|
|
|
: ["finally" ":" `suite`]
|
|
|
|
try2_stmt: "try" ":" `suite`
|
|
|
|
: "finally" ":" `suite`
|
|
|
|
|
|
|
|
|
|
|
|
Index markup
|
|
|
|
------------
|
|
|
|
|
|
|
|
.. index::
|
|
|
|
single: entry
|
|
|
|
pair: entry; pair
|
|
|
|
triple: index; entry; triple
|
2008-11-30 14:06:07 -06:00
|
|
|
keyword: with
|
|
|
|
|
|
|
|
Invalid index markup...
|
|
|
|
|
|
|
|
.. index::
|
|
|
|
single:
|
|
|
|
pair:
|
|
|
|
keyword:
|
2008-08-06 09:46:11 -05:00
|
|
|
|
|
|
|
|
2008-10-18 12:57:35 -05:00
|
|
|
Ö... Some strange characters
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
Testing öäü...
|
|
|
|
|
2008-08-06 09:46:11 -05:00
|
|
|
|
|
|
|
.. rubric:: Footnotes
|
|
|
|
|
|
|
|
.. [#] Like footnotes.
|