Sphinx Theme Demo 0.1.0 documentation
Contents:
test_py_module
This is a test. Here is an equation: \(X_{0:5} = (X_0, X_1, X_2, X_3, X_4)\). Here is another:
Header 1 |
Header 2 |
Header 3 |
Header 1 |
Header 2 |
Header 3 |
Header 1 |
Header 2 |
Header 3 |
Header 1 |
Header 2 |
Header 3 |
---|---|---|---|---|---|---|---|---|---|---|---|
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
body row 1 |
column 2 |
column 3 |
At this point optional parameters cannot be generated from code. However, some projects will manually do it, like so:
This example comes from django-payments module docs.
This backend implements payments using a popular Polish gateway, Dotpay.pl.
Due to API limitations there is no support for transferring purchased items.
seller_id – Seller ID assigned by Dotpay
pin – PIN assigned by Dotpay
channel – Default payment channel (consult reference guide)
lang – UI language
lock – Whether to disable channels other than the default selected above
# parsed-literal test curl -O http://someurl/release-0.1.tar-gz
{
"windows": [
{
"panes": [
{
"shell_command": [
"echo 'did you know'",
"echo 'you can inline'"
]
},
{
"shell_command": "echo 'single commands'"
},
"echo 'for panes'"
],
"window_name": "long form"
}
],
"session_name": "shorthands"
}
The first hexagram is made up of six unbroken lines. These unbroken lines stand for the primal power, which is light-giving, active, strong, and of the spirit. The hexagram is consistently strong in character, and since it is without weakness, its essence is power or energy. Its image is heaven. Its energy is represented as unrestricted by any fixed conditions in space and is therefore conceived of as motion. Time is regarded as the basis of this motion. Thus the hexagram includes also the power of time and the power of persisting in time, that is, duration.
The power represented by the hexagram is to be interpreted in a dual sense in terms of its action on the universe and of its action on the world of men. In relation to the universe, the hexagram expresses the strong, creative action of the Deity. In relation to the human world, it denotes the creative action of the holy man or sage, of the ruler or leader of men, who through his power awakens and develops their higher nature.
1# -*- coding: utf-8 -*-
2"""Test Module for sphinx_rtd_theme."""
3
4
5class Foo:
6
7 r"""Docstring for class Foo.
8
9 This text tests for the formatting of docstrings generated from output
10 ``sphinx.ext.autodoc``. Which contain reST, but sphinx nests it in the
11 ``<dl>``, and ``<dt>`` tags. Also, ``<tt>`` is used for class, method names
12 and etc, but those will *always* have the ``.descname`` or
13 ``.descclassname`` class.
14
15 Normal ``<tt>`` (like the <tt> I just wrote here) needs to be shown with
16 the same style as anything else with ````this type of markup````.
17
18 It's common for programmers to give a code example inside of their
19 docstring::
20
21 from test_py_module import Foo
22
23 myclass = Foo()
24 myclass.dothismethod('with this argument')
25 myclass.flush()
26
27 print(myclass)
28
29
30 Here is a link to :py:meth:`capitalize`.
31 Here is a link to :py:meth:`__init__`.
32
33 """
34
35 #: Doc comment for class attribute Foo.bar.
36 #: It can have multiple lines.
37 bar = 1
38
39 flox = 1.5 #: Doc comment for Foo.flox. One line only.
40
Tip
Equations within a note \(G_{\mu\nu} = 8 \pi G (T_{\mu\nu} + \rho_\Lambda g_{\mu\nu})\).
Note
Equations within a note \(G_{\mu\nu} = 8 \pi G (T_{\mu\nu} + \rho_\Lambda g_{\mu\nu})\).
Danger
Equations within a note \(G_{\mu\nu} = 8 \pi G (T_{\mu\nu} + \rho_\Lambda g_{\mu\nu})\).
Warning
Equations within a note \(G_{\mu\nu} = 8 \pi G (T_{\mu\nu} + \rho_\Lambda g_{\mu\nu})\).
reStructuredText is a markup language. It can use roles and declarations to turn reST into HTML.
In reST, *hello world*
becomes <em>hello world</em>
. This is
because a library called Docutils was able to parse the reST and use a
Writer
to output it that way.
If I type ``an inline literal``
it will wrap it in <tt>
. You can
see more details on the Inline Markup on the Docutils homepage.
Also with sphinx.ext.autodoc
, which I use in the demo, I can link to
test_py_module.test.Foo
. It will link you right my code
documentation for it.
Note
This is bad.
Example |
---|
Thing1 |
Thing2 |
Thing3 |
1def some_function():
2 interesting = False
3 print 'This line is highlighted.'
4 print 'This one is not...'
5 print '...but this one is.'
Here I am making a citation 1, another 2 and another 3
This is the citation I made, let’s make this extremely long so that we can tell that it doesn’t follow the normal responsive table stuff.
This citation has some code blocks
in it, maybe some bold and
italics too. Heck, lets put a link to a meta citation 3 too.
This citation will have two backlinks.