Skip to content

Latest commit

 

History

History
240 lines (170 loc) · 8.2 KB

File metadata and controls

240 lines (170 loc) · 8.2 KB

Demo Docs

Page Status

Incomplete

Last Reviewed

2013-10-29

Contents:

demo list

toc

long api

Maaaaath!

This is a test. Here is an equation: X0 : 5 = (X0, X1, X2, X3, X4). Here is another:

$$\nabla^2 f = \frac{1}{r^2} \frac{\partial}{\partial r} \left( r^2 \frac{\partial f}{\partial r} \right) + \frac{1}{r^2 \sin \theta} \frac{\partial f}{\partial \theta} \left( \sin \theta \, \frac{\partial f}{\partial \theta} \right) + \frac{1}{r^2 \sin^2\theta} \frac{\partial^2 f}{\partial \phi^2}$$

Giant tables

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

Optional parameter args

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.

param seller_id

Seller ID assigned by Dotpay

param pin

PIN assigned by Dotpay

param channel

Default payment channel (consult reference guide)

param lang

UI language

param lock

Whether to disable channels other than the default selected above

Code test

# parsed-literal test curl -O http://someurl/release-|version|.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"
}

Sidebar

Ch'ien / The Creative

image

Above CH'IEN THE CREATIVE, HEAVEN

Below CH'IEN THE CREATIVE, HEAVEN

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.

Code with Sidebar

A code example

With a sidebar on the right.

test_py_module/test.py

Boxes

Tip

Equations within a note Gμν = 8πG(Tμν + ρΛgμν).

Note

Equations within a note Gμν = 8πG(Tμν + ρΛgμν).

Danger

Equations within a note Gμν = 8πG(Tμν + ρΛgμν).

Warning

Equations within a note Gμν = 8πG(Tμν + ρΛgμν).

Inline code and references

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

Every other line in this table will have white text on a white background. This is bad.

Example
Thing1
Thing2
Thing3

Emphasized lines with line numbers

def some_function():
    interesting = False
    print 'This line is highlighted.'
    print 'This one is not...'
    print '...but this one is.'

Citation

Here I am making a citation1, another2 and another3

Images

This is a caption for a figure.

This is a caption for a figure.

This long long long long long long long long long long long long long long long download link should be blue with icon, and should wrap white-spaces <static/yi_jing_01_chien.jpg>


  1. 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.

  2. This citation has some code blocks in it, maybe some bold and italics too. Heck, lets put a link to a meta citation too.

  3. This citation will have two backlinks.