AcuGIS Suite¶
Installation¶
Install the package (or add it to your requirements.txt
file):
$ pip install sphinx_rtd_theme
In your conf.py
file:
import sphinx_rtd_theme
extensions = [
...
'sphinx_rtd_theme',
]
html_theme = "sphinx_rtd_theme"
Note
Adding this theme as an extension is what enables localization of theme strings in your translated output. If these strings are not translated in your output, either we lack the localized strings for your locale, or you are using an old version of the theme.
Via Git or Download¶
Symlink or subtree the sphinx_rtd_theme/sphinx_rtd_theme
repository into your documentation at
docs/_themes/sphinx_rtd_theme
then add the following two settings to your Sphinx
conf.py
file:
html_theme = "sphinx_rtd_theme"
html_theme_path = ["_themes", ]
Configuration¶
Theme options¶
The following options can be defined in your project’s conf.py
file, using
the html_theme_options
configuration option.
For example:
html_theme_options = {
'canonical_url': '',
'analytics_id': 'UA-XXXXXXX-1', # Provided by Google in your dashboard
'logo_only': False,
'display_version': True,
'prev_next_buttons_location': 'bottom',
'style_external_links': False,
'vcs_pageview_mode': '',
'style_nav_header_background': 'white',
# Toc options
'collapse_navigation': True,
'sticky_navigation': True,
'navigation_depth': 4,
'includehidden': True,
'titles_only': False
}
Table of contents options¶
The following options change how toctree
directives generate
documentation navigation.
Type: boolean Default: True
With this enabled, navigation entries are not expandable – the
[+]
icons next to each entry are removed.
Type: boolean Default: True
Scroll the navigation with the main page content as you scroll the page.
Type: integer Default: 4
The maximum depth of the table of contents tree. Set this to
-1
to allow unlimited depth.
Type: boolean Default: True
Specifies if the navigation includes hidden table(s) of contents – that is, any
toctree
directive that is marked with the:hidden:
option.
-
titles_only
¶ Type: boolean Default: False When enabled, page subheadings are not included in the navigation.
Note
Setting collapse_navigation
to False
and using a high value
for navigation_depth
on projects with many files and a deep file
structure can cause long compilation times and can result in HTML files that
are significantly larger in file size.
Miscellaneous options¶
-
analytics_id
¶ Type: string If specified, Google Analytics’ javascript is included in your pages. Set the value to the ID provided to you by google (like
UA-XXXXXXX
).
-
canonical_url
¶ Type: URL This will specify a canonical URL meta link element to tell search engines which URL should be ranked as the primary URL for your documentation. This is important if you have multiple URLs that your documentation is available through. The URL points to the root path of the documentation and requires a trailing slash.
-
display_version
¶ Type: boolean Default: True
If
True
, the version number is shown at the top of the sidebar.
-
logo_only
¶ Type: boolean Default: False
Only display the logo image, do not display the project name at the top of the sidebar
Type: string Default: bottom
Location to display Next and Previous buttons. This can be either
bottom
,top
,both
, orNone
.
-
style_external_links
¶ Type: boolean Default: False
Add an icon next to external links.
-
vcs_pageview_mode
¶ Type: string Default: blob
orview
Changes how to view files when using
display_github
,display_gitlab
, etc. When using GitHub or GitLab this can be:blob
(default),edit
, orraw
. On Bitbucket, this can be either:view
(default) oredit
.
Type: string Default: #2980B9
Changes the background of the search area in the navigation bar. The value can be anything valid in a CSS background property.
File-wide metadata¶
The following options can be used as file-wide metadata:
-
github_url
¶ Force the Edit on GitHub button to use the configured URL.
-
bitbucket_url
¶ Force the Edit on Bitbucket button to use the configured URL.
-
gitlab_url
¶ Force the Edit on GitLab button to use the configured URL.
Other configuration¶
Adding a logo¶
Using the Sphinx standard option html_logo
,
you can set an image file to be used as a logo at the top of the sidebar. The
theme option logo_only
also allows for only the logo to be shown
at the top of the sidebar.
Adding custom CSS or Javascript¶
Adding custom CSS or Javascript can help you alter the look and feel of this theme without forking the theme for local use.
In order to add custom CSS or Javascript without disrupting the existing theme files, you can add files to be included in your documentation output.
How the table of contents displays¶
Currently the left menu will build based upon any toctree
directives defined
in your source files. It outputs 4 levels of depth by default, to allow for
quick navigation through topics. If no TOC trees are defined, Sphinx’s default
behavior is to use the page headings instead.
It’s important to note that if you don’t follow the same styling for your reST headings across your documents, the TOC tree will build incorrectly, and the resulting menu might not show the correct depth when it renders.
Also note that by default the table of contents is set with
includehidden=True
. This allows you to set a hidden TOC in your index file
with the :hidden: property that will allow you
to build a TOC without it rendering in your index.
By default, the navigation will “stick” to the screen as you scroll. However if
your TOC is not tall enough, it will revert to static positioning. To disable the
sticky navigation altogether, change the sticky_navigation
theme option.
Contributing¶
This project follows the Read the Docs code of conduct. If you are not familiar with our code of conduct policy, take a minute to read the policy before starting with your first contribution.
Modifying the theme¶
The styles for this theme use SASS and a custom CSS framework called Wyrm. We use Webpack and node-sass to build the CSS. Webpack is used to watch for changes, rebuild the static assets, and rebuild the Sphinx demo documentation.
Note
The installation of Node is outside the scope of this documentation. You will need Node version 10+ in order to make changes to this theme.
Set up your environment¶
Making changes¶
Changes to the theme can be compiled and tested with Webpack:
$ npm run dev
This script will do the following:
- Install and update any dependencies.
- Build the static CSS from SASS source files.
- Build the demo documentation.
- Watch for changes to the SASS files and documentation and rebuild everything on any detected changes.
Alternatively, if you don’t need to watch the files, the release build script can be used to test built assets:
$ npm run build
Translations¶
Translations are managed using Transifex. You can join any of the existing language teams or request a new language is added to the project. For more information on our translation standards, see our docs on Internationalization
Periodically, core team should update the translation files outside our normal releases. Someone from the core team, with write access to Transifex, should run the following:
$ python setup.py update_translations
This will extract new messages, upload the messages to Transifex, and will update our local translation files. Changes can be checked in to a branch and put up for review.
Releasing the theme¶
To release a new version of the theme, core team will take the following steps:
Bump the version in
sphinx_rtd_theme/__init__.py
,setup.py
andpackage.json
. We follow semver and PEP440 (with regards to alpha release and development versions). The version increment should reflect these releases and any potentially breaking changes.Update the changelog (
docs/changelog.rst
) with the version information.Run
python setup.py update_translations
to compile new translation files and update Transifex.Run
python setup.py build
to rebuild all the theme assets and the Python package.Commit these changes.
Tag the release in git:
git tag $NEW_VERSION
.Push the tag to GitHub:
git push --tags origin
.Upload the package to PyPI:
$ rm -rf dist/ $ python setup.py sdist bdist_wheel $ twine upload --sign --identity security@readthedocs.org dist/*
Changelog¶
master¶
New Features¶
Fixes¶
- Fix definition lists looking different with Sphinx 2.0+
Other Changes¶
- Add the
navigation
template block around the navigation area. - Added Spanish translation
- Added i18n support using Babel
- Moved build system from Grunt and friends to Webpack
- Remove Modernizr, but keep html5shiv (#724, #525)
0.4.3¶
Date: | Feb 12, 2019 |
---|
New Features¶
Fixes¶
- Fix scrolling to active item in sidebar on load (#214)
- Style caption link for code and literal blocks
- Fix inconsistent font size and line height for autodoc “raises” and “returns” (#267)
- Fix last_updated notice appearing in same line as copyright notice (#704)
Other Changes¶
v0.4.2¶
Date: | Oct 5, 2018 |
---|
New Features¶
Fixes¶
- Set base font size on <html> (#668)
- Fix HTML search not working with Sphinx-1.8 (#672)
Other Changes¶
- Upload signed packages to PyPI with twine (#651)
- Do not enforce period at the end of copyright statement (666)
v0.4.1¶
Date: | July 27, 2018 |
---|
New Features¶
Fixes¶
- Line height adjustments for Liberation Mono (#656)
Other Changes¶
- Add Sphinx as a dependency
v0.4.0¶
This version made some changes to how JS and CSS were included when the theme is used on Read the Docs.
New Features¶
Fixes¶
- Do not rely on readthedocs.org for CSS/JS (#614)
- Color accessibility improvements on the left navigation
Other Changes¶
- Write theme version and build date at top of JavaScript and CSS
- Changed code and literals to use a native font stack (#612)
- Fix small styling issues
v0.3.1¶
Fixes¶
- Revert part of #576 causing display issues with version selector menu
- Backwards compatibility fixes for pre-0.3.0 releases (#623)
- Fix mkdocs version selector (#622)
- Add open list spacing (#591)
- Fix table centering (#599)
v0.3.0¶
Note: this version resulted in some JavaScript incompatibilities when used on readthedocs.org
New Features¶
- Add html language attribute
- Allow setting ‘rel’ and ‘title’ attributes for stylesheets (#551)
- Add option to style external links
- Add github, gitlab, bitbucket page arguments option
- Add pygments support
- Add setuptools entry point allowing to use
sphinx_rtd_theme
as Sphinxhtml_theme
directly. - Add language to the JS output variable
Fixes¶
- Fix some HTML warnings and errors
- Fix many styling issues
- Fix many sidebar glitches
- Fix line number spacing to align with the code lines
- Hide Edit links on auto created pages
- Include missing font files with the theme
Other Changes¶
- Significant improvement of our documentation
- Compress our Javascript files
- Updated dependencies
v0.2.4¶
- Yet another patch to deal with extra builders outside Spinx, such as the singlehtml builders from the Read the Docs Sphinx extension
v0.2.3¶
- Temporarily patch Sphinx issue with
singlehtml
builder by inspecting the builder in template.
v0.2.2¶
- Roll back toctree fix in 0.2.1 (#367). This didn’t fix the issue and introduced another bug with toctrees display.
v0.2.1¶
- Add the
rel
HTML attribute to the footer links which point to the previous and next pages. - Fix toctree issue caused by Sphinx singlehtml builder (#367)
v0.2.0¶
- Adds the
comments
block after thebody
block in the template - Added “Edit on GitLab” support
- Many bug fixes
v0.1.10-alpha¶
Note
This is a pre-release version
- Removes Sphinx dependency
- Fixes hamburger on mobile display
- Adds a
body_begin
block to the template - Added
prev_next_buttons_location
v0.1.9¶
- Intermittent scrollbar visibility bug fixed. This change introduces a backwards incompatible change to the theme’s layout HTML. This should only be a problem for derivative themes that have overridden styling of nav elements using direct descendant selectors. See #215 for more information.
- Safari overscroll bug fixed
- Version added to the nav header
- Revision id was added to the documentation footer if you are using RTD
- An extra block,
extrafooter
was added to allow extra content in the document footer block - Fixed modernizr URL
- Small display style changes on code blocks, figure captions, and nav elements
v0.1.8¶
- Start keeping changelog :)
- Support for third and fourth level headers in the sidebar
- Add support for Sphinx 1.3
- Add sidebar headers for :caption: in Sphinx toctree
- Clean up sidebar scrolling behavior so it never scrolls out of view
Apache Tomcat¶
Table of Contents
Inline Markup¶
Paragraphs contain text and may contain inline markup: emphasis, strong emphasis, inline literals
,
standalone hyperlinks (http://www.python.org), external hyperlinks (Python [1]), internal cross-references (example),
external hyperlinks with embedded URIs (Python web site), footnote references
(manually numbered [1]_, anonymous auto-numbered [#]_, labeled auto-numbered [#label]_, or symbolic [*]_),
citation references ([12]), substitution references (), and inline hyperlink targets
(see Targets below for a reference back to here). Character-level inline markup is also possible
(although exceedingly ugly!) in re
Structured
Text. Problems are indicated by |problematic|
text (generated by processing errors; this one is intentional).
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 to my code documentation for it.
The default role for interpreted text is Title Reference. Here are some explicit interpreted text roles:
a PEP reference (PEP 287); an RFC reference (RFC 2822); a subscript; a superscript;
and explicit roles for standard inline markup
.
GUI labels are a useful way to indicate that Some action is to be taken by the user.
The GUI label should not run over line-height
so as not to interfere with text from adjacent lines.
Key-bindings indicate that the read is to press a button on the keyboard or mouse,
for example MMB and Shift-MMB. Another useful markup to indicate a user action
is to use menuselection
this can be used to show short and long menus in software.
For example, and menuselection
can be seen here that breaks is too long to fit on this line.
.
Let’s test wrapping and whitespace significance in inline literals:
This is an example of --inline-literal --text, --including some--
strangely--hyphenated-words. Adjust-the-width-of-your-browser-window
to see how the text is wrapped. -- ---- -------- Now note the
spacing between the words of this sentence (words
should be grouped in pairs).
If the --pep-references
option was supplied, there should be a live link to PEP 258 here.
Math¶
This is a test. Here is an equation: \(X_{0:5} = (X_0, X_1, X_2, X_3, X_4)\). Here is another:
You can add a link to equations like the one above (1) by using :eq:
.
Blocks¶
Literal Blocks¶
Literal blocks are indicated with a double-colon (“::”) at the end of
the preceding paragraph (over there -->
). They can be indented:
if literal_block:
text = 'is left as-is'
spaces_and_linebreaks = 'are preserved'
markup_processing = None
Or they can be quoted without indentation:
>> Great idea!
>
> Why didn't I think of that?
Line Blocks¶
Take it away, Eric the Orchestra Leader!
A one, two, a one two three fourHalf a bee, philosophically,must, ipso facto, half not be.But half the bee has got to be,vis a vis its entity. D’you see?But can a bee be said to beor not to be an entire bee,when half the bee is not a bee,due to some ancient injury?Singing…
Block Quotes¶
Block quotes consist of indented body elements:
My theory by A. Elk. Brackets Miss, brackets. This theory goes as follows and begins now. All brontosauruses are thin at one end, much much thicker in the middle and then thin again at the far end. That is my theory, it is mine, and belongs to me and I own it, and what it is too.
—Anne Elk (Miss)
Doctest Blocks¶
>>> print 'Python-specific usage examples; begun with ">>>"'
Python-specific usage examples; begun with ">>>"
>>> print '(cut and pasted from interactive Python sessions)'
(cut and pasted from interactive Python sessions)
Code Blocks¶
# parsed-literal test curl -O http://someurl/release-0.4.3.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"
}
Emphasized lines with line numbers¶
1 2 3 4 5 | def some_function():
interesting = False
print 'This line is highlighted.'
print 'This one is not...'
print '...but this one is.'
|
Sidebar¶
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.
References¶
Citations¶
[11] | 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. |
[12] | (1, 2) This citation has some code blocks in it, maybe some bold and
italics too. Heck, lets put a link to a meta citation [13] too. |
[13] | This citation will have two backlinks. |
Here’s a reference to the above, [12], and a [nonexistent] citation.
Here is another type of citation: citation
Glossary¶
This is a glossary with definition terms for thing like Writing:
- Documentation
- Provides users with the knowledge they need to use something.
- Reading
- The process of taking information into ones mind through the use of eyes.
- Writing
- The process of putting thoughts into a medium for other people to read.
Targets¶
This paragraph is pointed to by the explicit “example” target. A reference can be found under Inline Markup, above. Inline hyperlink targets are also possible.
Section headers are implicit targets, referred to by name. See Targets, which is a subsection of `Body Elements`_.
Explicit external targets are interpolated into references such as “Python [1]”.
Targets may be indirect and anonymous. Thus this phrase may also refer to the Targets section.
Here’s a `hyperlink reference without a target`_, which generates an error.
Directives¶
Contents¶
These are just a sample of the many reStructuredText Directives. For others, please see: http://docutils.sourceforge.net/docs/ref/rst/directives.html.
Centered text¶
You can create a statement with centered text with .. centered::
This is centered text!
Images & Figures¶
Figures¶

A figure is an image with a caption and/or a legend:
re | Revised, revisited, based on ‘re’ module. |
Structured | Structure-enhanced text, structuredtext. |
Text | Well it is, isn’t it? |
This paragraph is also part of the legend.
A figure directive with center alignment

This caption should be centered.
Admonitions¶
Attention
Directives at large.
Caution
Don’t take any wooden nickels.
Danger
Mad scientist at work!
Error
Does not compute.
Hint
It’s bigger than a bread box.
Important
- Wash behind your ears.
- Clean up your room.
- Including the closet.
- The bathroom too.
- Take the trash out of the bathroom.
- Clean the sink.
- Call your mother.
- Back up your data.
Note
This is a note. Equations within a note: \(G_{\mu\nu} = 8 \pi G (T_{\mu\nu} + \rho_\Lambda g_{\mu\nu})\).
Tip
15% if the service is good.
Example |
---|
Thing1 |
Thing2 |
Thing3 |
Warning
Strong prose may provoke extreme mental exertion. Reader discretion is strongly advised.
And, by the way…
You can make up your own admonition too.
Target Footnotes¶
[1] | (1, 2, 3) http://www.python.org/ |
Replacement Text¶
I recommend you try Python, the best language around [1].
Compound Paragraph¶
This paragraph contains a literal block:
Connecting... OK
Transmitting data... OK
Disconnecting... OK
and thus consists of a simple paragraph, a literal block, and another simple paragraph. Nonetheless it is semantically one paragraph.
This construct is called a compound paragraph and can be produced with the “compound” directive.
Download Links¶
This long long long long long long long long long long long long long long long download link should be blue, normal weight text with a leading icon, and should wrap white-spaces
GeoServer¶
Table of Contents
Inline Markup¶
Paragraphs contain text and may contain inline markup: emphasis, strong emphasis, inline literals
,
standalone hyperlinks (http://www.python.org), external hyperlinks (Python [1]), internal cross-references (example),
external hyperlinks with embedded URIs (Python web site), footnote references
(manually numbered [1]_, anonymous auto-numbered [#]_, labeled auto-numbered [#label]_, or symbolic [*]_),
citation references ([12]), substitution references (), and inline hyperlink targets
(see Targets below for a reference back to here). Character-level inline markup is also possible
(although exceedingly ugly!) in re
Structured
Text. Problems are indicated by |problematic|
text (generated by processing errors; this one is intentional).
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 to my code documentation for it.
The default role for interpreted text is Title Reference. Here are some explicit interpreted text roles:
a PEP reference (PEP 287); an RFC reference (RFC 2822); a subscript; a superscript;
and explicit roles for standard inline markup
.
GUI labels are a useful way to indicate that Some action is to be taken by the user.
The GUI label should not run over line-height
so as not to interfere with text from adjacent lines.
Key-bindings indicate that the read is to press a button on the keyboard or mouse,
for example MMB and Shift-MMB. Another useful markup to indicate a user action
is to use menuselection
this can be used to show short and long menus in software.
For example, and menuselection
can be seen here that breaks is too long to fit on this line.
.
Let’s test wrapping and whitespace significance in inline literals:
This is an example of --inline-literal --text, --including some--
strangely--hyphenated-words. Adjust-the-width-of-your-browser-window
to see how the text is wrapped. -- ---- -------- Now note the
spacing between the words of this sentence (words
should be grouped in pairs).
If the --pep-references
option was supplied, there should be a live link to PEP 258 here.
Math¶
This is a test. Here is an equation: \(X_{0:5} = (X_0, X_1, X_2, X_3, X_4)\). Here is another:
You can add a link to equations like the one above (1) by using :eq:
.
Blocks¶
Literal Blocks¶
Literal blocks are indicated with a double-colon (“::”) at the end of
the preceding paragraph (over there -->
). They can be indented:
if literal_block:
text = 'is left as-is'
spaces_and_linebreaks = 'are preserved'
markup_processing = None
Or they can be quoted without indentation:
>> Great idea!
>
> Why didn't I think of that?
Line Blocks¶
Take it away, Eric the Orchestra Leader!
A one, two, a one two three fourHalf a bee, philosophically,must, ipso facto, half not be.But half the bee has got to be,vis a vis its entity. D’you see?But can a bee be said to beor not to be an entire bee,when half the bee is not a bee,due to some ancient injury?Singing…
Block Quotes¶
Block quotes consist of indented body elements:
My theory by A. Elk. Brackets Miss, brackets. This theory goes as follows and begins now. All brontosauruses are thin at one end, much much thicker in the middle and then thin again at the far end. That is my theory, it is mine, and belongs to me and I own it, and what it is too.
—Anne Elk (Miss)
Doctest Blocks¶
>>> print 'Python-specific usage examples; begun with ">>>"'
Python-specific usage examples; begun with ">>>"
>>> print '(cut and pasted from interactive Python sessions)'
(cut and pasted from interactive Python sessions)
Code Blocks¶
# parsed-literal test curl -O http://someurl/release-0.4.3.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"
}
Emphasized lines with line numbers¶
1 2 3 4 5 | def some_function():
interesting = False
print 'This line is highlighted.'
print 'This one is not...'
print '...but this one is.'
|
Sidebar¶
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.
References¶
Citations¶
[11] | 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. |
[12] | (1, 2) This citation has some code blocks in it, maybe some bold and
italics too. Heck, lets put a link to a meta citation [13] too. |
[13] | This citation will have two backlinks. |
Here’s a reference to the above, [12], and a [nonexistent] citation.
Here is another type of citation: citation
Glossary¶
This is a glossary with definition terms for thing like Writing:
- Documentation
- Provides users with the knowledge they need to use something.
- Reading
- The process of taking information into ones mind through the use of eyes.
- Writing
- The process of putting thoughts into a medium for other people to read.
Targets¶
This paragraph is pointed to by the explicit “example” target. A reference can be found under Inline Markup, above. Inline hyperlink targets are also possible.
Section headers are implicit targets, referred to by name. See Targets, which is a subsection of `Body Elements`_.
Explicit external targets are interpolated into references such as “Python [1]”.
Targets may be indirect and anonymous. Thus this phrase may also refer to the Targets section.
Here’s a `hyperlink reference without a target`_, which generates an error.
Directives¶
Contents¶
These are just a sample of the many reStructuredText Directives. For others, please see: http://docutils.sourceforge.net/docs/ref/rst/directives.html.
Centered text¶
You can create a statement with centered text with .. centered::
This is centered text!
Images & Figures¶
Figures¶

A figure is an image with a caption and/or a legend:
re | Revised, revisited, based on ‘re’ module. |
Structured | Structure-enhanced text, structuredtext. |
Text | Well it is, isn’t it? |
This paragraph is also part of the legend.
A figure directive with center alignment

This caption should be centered.
Admonitions¶
Attention
Directives at large.
Caution
Don’t take any wooden nickels.
Danger
Mad scientist at work!
Error
Does not compute.
Hint
It’s bigger than a bread box.
Important
- Wash behind your ears.
- Clean up your room.
- Including the closet.
- The bathroom too.
- Take the trash out of the bathroom.
- Clean the sink.
- Call your mother.
- Back up your data.
Note
This is a note. Equations within a note: \(G_{\mu\nu} = 8 \pi G (T_{\mu\nu} + \rho_\Lambda g_{\mu\nu})\).
Tip
15% if the service is good.
Example |
---|
Thing1 |
Thing2 |
Thing3 |
Warning
Strong prose may provoke extreme mental exertion. Reader discretion is strongly advised.
And, by the way…
You can make up your own admonition too.
Target Footnotes¶
[1] | (1, 2, 3) http://www.python.org/ |
Replacement Text¶
I recommend you try Python, the best language around [1].
Compound Paragraph¶
This paragraph contains a literal block:
Connecting... OK
Transmitting data... OK
Disconnecting... OK
and thus consists of a simple paragraph, a literal block, and another simple paragraph. Nonetheless it is semantically one paragraph.
This construct is called a compound paragraph and can be produced with the “compound” directive.
Download Links¶
This long long long long long long long long long long long long long long long download link should be blue, normal weight text with a leading icon, and should wrap white-spaces
PostgreSQL¶
Table of Contents
Inline Markup¶
Paragraphs contain text and may contain inline markup: emphasis, strong emphasis, inline literals
,
standalone hyperlinks (http://www.python.org), external hyperlinks (Python [1]), internal cross-references (example),
external hyperlinks with embedded URIs (Python web site), footnote references
(manually numbered [1]_, anonymous auto-numbered [#]_, labeled auto-numbered [#label]_, or symbolic [*]_),
citation references ([12]), substitution references (), and inline hyperlink targets
(see Targets below for a reference back to here). Character-level inline markup is also possible
(although exceedingly ugly!) in re
Structured
Text. Problems are indicated by |problematic|
text (generated by processing errors; this one is intentional).
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 to my code documentation for it.
The default role for interpreted text is Title Reference. Here are some explicit interpreted text roles:
a PEP reference (PEP 287); an RFC reference (RFC 2822); a subscript; a superscript;
and explicit roles for standard inline markup
.
GUI labels are a useful way to indicate that Some action is to be taken by the user.
The GUI label should not run over line-height
so as not to interfere with text from adjacent lines.
Key-bindings indicate that the read is to press a button on the keyboard or mouse,
for example MMB and Shift-MMB. Another useful markup to indicate a user action
is to use menuselection
this can be used to show short and long menus in software.
For example, and menuselection
can be seen here that breaks is too long to fit on this line.
.
Let’s test wrapping and whitespace significance in inline literals:
This is an example of --inline-literal --text, --including some--
strangely--hyphenated-words. Adjust-the-width-of-your-browser-window
to see how the text is wrapped. -- ---- -------- Now note the
spacing between the words of this sentence (words
should be grouped in pairs).
If the --pep-references
option was supplied, there should be a live link to PEP 258 here.
Math¶
This is a test. Here is an equation: \(X_{0:5} = (X_0, X_1, X_2, X_3, X_4)\). Here is another:
You can add a link to equations like the one above (1) by using :eq:
.
Blocks¶
Literal Blocks¶
Literal blocks are indicated with a double-colon (“::”) at the end of
the preceding paragraph (over there -->
). They can be indented:
if literal_block:
text = 'is left as-is'
spaces_and_linebreaks = 'are preserved'
markup_processing = None
Or they can be quoted without indentation:
>> Great idea!
>
> Why didn't I think of that?
Line Blocks¶
Take it away, Eric the Orchestra Leader!
A one, two, a one two three fourHalf a bee, philosophically,must, ipso facto, half not be.But half the bee has got to be,vis a vis its entity. D’you see?But can a bee be said to beor not to be an entire bee,when half the bee is not a bee,due to some ancient injury?Singing…
Block Quotes¶
Block quotes consist of indented body elements:
My theory by A. Elk. Brackets Miss, brackets. This theory goes as follows and begins now. All brontosauruses are thin at one end, much much thicker in the middle and then thin again at the far end. That is my theory, it is mine, and belongs to me and I own it, and what it is too.
—Anne Elk (Miss)
Doctest Blocks¶
>>> print 'Python-specific usage examples; begun with ">>>"'
Python-specific usage examples; begun with ">>>"
>>> print '(cut and pasted from interactive Python sessions)'
(cut and pasted from interactive Python sessions)
Code Blocks¶
# parsed-literal test curl -O http://someurl/release-0.4.3.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"
}
Emphasized lines with line numbers¶
1 2 3 4 5 | def some_function():
interesting = False
print 'This line is highlighted.'
print 'This one is not...'
print '...but this one is.'
|
Sidebar¶
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.
References¶
Citations¶
[11] | 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. |
[12] | (1, 2) This citation has some code blocks in it, maybe some bold and
italics too. Heck, lets put a link to a meta citation [13] too. |
[13] | This citation will have two backlinks. |
Here’s a reference to the above, [12], and a [nonexistent] citation.
Here is another type of citation: citation
Glossary¶
This is a glossary with definition terms for thing like Writing:
- Documentation
- Provides users with the knowledge they need to use something.
- Reading
- The process of taking information into ones mind through the use of eyes.
- Writing
- The process of putting thoughts into a medium for other people to read.
Targets¶
This paragraph is pointed to by the explicit “example” target. A reference can be found under Inline Markup, above. Inline hyperlink targets are also possible.
Section headers are implicit targets, referred to by name. See Targets, which is a subsection of `Body Elements`_.
Explicit external targets are interpolated into references such as “Python [1]”.
Targets may be indirect and anonymous. Thus this phrase may also refer to the Targets section.
Here’s a `hyperlink reference without a target`_, which generates an error.
Directives¶
Contents¶
These are just a sample of the many reStructuredText Directives. For others, please see: http://docutils.sourceforge.net/docs/ref/rst/directives.html.
Centered text¶
You can create a statement with centered text with .. centered::
This is centered text!
Images & Figures¶
Figures¶

A figure is an image with a caption and/or a legend:
re | Revised, revisited, based on ‘re’ module. |
Structured | Structure-enhanced text, structuredtext. |
Text | Well it is, isn’t it? |
This paragraph is also part of the legend.
A figure directive with center alignment

This caption should be centered.
Admonitions¶
Attention
Directives at large.
Caution
Don’t take any wooden nickels.
Danger
Mad scientist at work!
Error
Does not compute.
Hint
It’s bigger than a bread box.
Important
- Wash behind your ears.
- Clean up your room.
- Including the closet.
- The bathroom too.
- Take the trash out of the bathroom.
- Clean the sink.
- Call your mother.
- Back up your data.
Note
This is a note. Equations within a note: \(G_{\mu\nu} = 8 \pi G (T_{\mu\nu} + \rho_\Lambda g_{\mu\nu})\).
Tip
15% if the service is good.
Example |
---|
Thing1 |
Thing2 |
Thing3 |
Warning
Strong prose may provoke extreme mental exertion. Reader discretion is strongly advised.
And, by the way…
You can make up your own admonition too.
Target Footnotes¶
[1] | (1, 2, 3) http://www.python.org/ |
Replacement Text¶
I recommend you try Python, the best language around [1].
Compound Paragraph¶
This paragraph contains a literal block:
Connecting... OK
Transmitting data... OK
Disconnecting... OK
and thus consists of a simple paragraph, a literal block, and another simple paragraph. Nonetheless it is semantically one paragraph.
This construct is called a compound paragraph and can be produced with the “compound” directive.
Download Links¶
This long long long long long long long long long long long long long long long download link should be blue, normal weight text with a leading icon, and should wrap white-spaces
PostGIS¶
Table of Contents
Inline Markup¶
Paragraphs contain text and may contain inline markup: emphasis, strong emphasis, inline literals
,
standalone hyperlinks (http://www.python.org), external hyperlinks (Python [1]), internal cross-references (example),
external hyperlinks with embedded URIs (Python web site), footnote references
(manually numbered [1]_, anonymous auto-numbered [#]_, labeled auto-numbered [#label]_, or symbolic [*]_),
citation references ([12]), substitution references (), and inline hyperlink targets
(see Targets below for a reference back to here). Character-level inline markup is also possible
(although exceedingly ugly!) in re
Structured
Text. Problems are indicated by |problematic|
text (generated by processing errors; this one is intentional).
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 to my code documentation for it.
The default role for interpreted text is Title Reference. Here are some explicit interpreted text roles:
a PEP reference (PEP 287); an RFC reference (RFC 2822); a subscript; a superscript;
and explicit roles for standard inline markup
.
GUI labels are a useful way to indicate that Some action is to be taken by the user.
The GUI label should not run over line-height
so as not to interfere with text from adjacent lines.
Key-bindings indicate that the read is to press a button on the keyboard or mouse,
for example MMB and Shift-MMB. Another useful markup to indicate a user action
is to use menuselection
this can be used to show short and long menus in software.
For example, and menuselection
can be seen here that breaks is too long to fit on this line.
.
Let’s test wrapping and whitespace significance in inline literals:
This is an example of --inline-literal --text, --including some--
strangely--hyphenated-words. Adjust-the-width-of-your-browser-window
to see how the text is wrapped. -- ---- -------- Now note the
spacing between the words of this sentence (words
should be grouped in pairs).
If the --pep-references
option was supplied, there should be a live link to PEP 258 here.
Math¶
This is a test. Here is an equation: \(X_{0:5} = (X_0, X_1, X_2, X_3, X_4)\). Here is another:
You can add a link to equations like the one above (1) by using :eq:
.
Blocks¶
Literal Blocks¶
Literal blocks are indicated with a double-colon (“::”) at the end of
the preceding paragraph (over there -->
). They can be indented:
if literal_block:
text = 'is left as-is'
spaces_and_linebreaks = 'are preserved'
markup_processing = None
Or they can be quoted without indentation:
>> Great idea!
>
> Why didn't I think of that?
Line Blocks¶
Take it away, Eric the Orchestra Leader!
A one, two, a one two three fourHalf a bee, philosophically,must, ipso facto, half not be.But half the bee has got to be,vis a vis its entity. D’you see?But can a bee be said to beor not to be an entire bee,when half the bee is not a bee,due to some ancient injury?Singing…
Block Quotes¶
Block quotes consist of indented body elements:
My theory by A. Elk. Brackets Miss, brackets. This theory goes as follows and begins now. All brontosauruses are thin at one end, much much thicker in the middle and then thin again at the far end. That is my theory, it is mine, and belongs to me and I own it, and what it is too.
—Anne Elk (Miss)
Doctest Blocks¶
>>> print 'Python-specific usage examples; begun with ">>>"'
Python-specific usage examples; begun with ">>>"
>>> print '(cut and pasted from interactive Python sessions)'
(cut and pasted from interactive Python sessions)
Code Blocks¶
# parsed-literal test curl -O http://someurl/release-0.4.3.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"
}
Emphasized lines with line numbers¶
1 2 3 4 5 | def some_function():
interesting = False
print 'This line is highlighted.'
print 'This one is not...'
print '...but this one is.'
|
Sidebar¶
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.
References¶
Citations¶
[11] | 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. |
[12] | (1, 2) This citation has some code blocks in it, maybe some bold and
italics too. Heck, lets put a link to a meta citation [13] too. |
[13] | This citation will have two backlinks. |
Here’s a reference to the above, [12], and a [nonexistent] citation.
Here is another type of citation: citation
Glossary¶
This is a glossary with definition terms for thing like Writing:
- Documentation
- Provides users with the knowledge they need to use something.
- Reading
- The process of taking information into ones mind through the use of eyes.
- Writing
- The process of putting thoughts into a medium for other people to read.
Targets¶
This paragraph is pointed to by the explicit “example” target. A reference can be found under Inline Markup, above. Inline hyperlink targets are also possible.
Section headers are implicit targets, referred to by name. See Targets, which is a subsection of `Body Elements`_.
Explicit external targets are interpolated into references such as “Python [1]”.
Targets may be indirect and anonymous. Thus this phrase may also refer to the Targets section.
Here’s a `hyperlink reference without a target`_, which generates an error.
Directives¶
Contents¶
These are just a sample of the many reStructuredText Directives. For others, please see: http://docutils.sourceforge.net/docs/ref/rst/directives.html.
Centered text¶
You can create a statement with centered text with .. centered::
This is centered text!
Images & Figures¶
Figures¶

A figure is an image with a caption and/or a legend:
re | Revised, revisited, based on ‘re’ module. |
Structured | Structure-enhanced text, structuredtext. |
Text | Well it is, isn’t it? |
This paragraph is also part of the legend.
A figure directive with center alignment

This caption should be centered.
Admonitions¶
Attention
Directives at large.
Caution
Don’t take any wooden nickels.
Danger
Mad scientist at work!
Error
Does not compute.
Hint
It’s bigger than a bread box.
Important
- Wash behind your ears.
- Clean up your room.
- Including the closet.
- The bathroom too.
- Take the trash out of the bathroom.
- Clean the sink.
- Call your mother.
- Back up your data.
Note
This is a note. Equations within a note: \(G_{\mu\nu} = 8 \pi G (T_{\mu\nu} + \rho_\Lambda g_{\mu\nu})\).
Tip
15% if the service is good.
Example |
---|
Thing1 |
Thing2 |
Thing3 |
Warning
Strong prose may provoke extreme mental exertion. Reader discretion is strongly advised.
And, by the way…
You can make up your own admonition too.
Target Footnotes¶
[1] | (1, 2, 3) http://www.python.org/ |
Replacement Text¶
I recommend you try Python, the best language around [1].
Compound Paragraph¶
This paragraph contains a literal block:
Connecting... OK
Transmitting data... OK
Disconnecting... OK
and thus consists of a simple paragraph, a literal block, and another simple paragraph. Nonetheless it is semantically one paragraph.
This construct is called a compound paragraph and can be produced with the “compound” directive.
Download Links¶
This long long long long long long long long long long long long long long long download link should be blue, normal weight text with a leading icon, and should wrap white-spaces
OpenLayers¶
Table of Contents
Inline Markup¶
Paragraphs contain text and may contain inline markup: emphasis, strong emphasis, inline literals
,
standalone hyperlinks (http://www.python.org), external hyperlinks (Python [1]), internal cross-references (example),
external hyperlinks with embedded URIs (Python web site), footnote references
(manually numbered [1]_, anonymous auto-numbered [#]_, labeled auto-numbered [#label]_, or symbolic [*]_),
citation references ([12]), substitution references (), and inline hyperlink targets
(see Targets below for a reference back to here). Character-level inline markup is also possible
(although exceedingly ugly!) in re
Structured
Text. Problems are indicated by |problematic|
text (generated by processing errors; this one is intentional).
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 to my code documentation for it.
The default role for interpreted text is Title Reference. Here are some explicit interpreted text roles:
a PEP reference (PEP 287); an RFC reference (RFC 2822); a subscript; a superscript;
and explicit roles for standard inline markup
.
GUI labels are a useful way to indicate that Some action is to be taken by the user.
The GUI label should not run over line-height
so as not to interfere with text from adjacent lines.
Key-bindings indicate that the read is to press a button on the keyboard or mouse,
for example MMB and Shift-MMB. Another useful markup to indicate a user action
is to use menuselection
this can be used to show short and long menus in software.
For example, and menuselection
can be seen here that breaks is too long to fit on this line.
.
Let’s test wrapping and whitespace significance in inline literals:
This is an example of --inline-literal --text, --including some--
strangely--hyphenated-words. Adjust-the-width-of-your-browser-window
to see how the text is wrapped. -- ---- -------- Now note the
spacing between the words of this sentence (words
should be grouped in pairs).
If the --pep-references
option was supplied, there should be a live link to PEP 258 here.
Math¶
This is a test. Here is an equation: \(X_{0:5} = (X_0, X_1, X_2, X_3, X_4)\). Here is another:
You can add a link to equations like the one above (1) by using :eq:
.
Blocks¶
Literal Blocks¶
Literal blocks are indicated with a double-colon (“::”) at the end of
the preceding paragraph (over there -->
). They can be indented:
if literal_block:
text = 'is left as-is'
spaces_and_linebreaks = 'are preserved'
markup_processing = None
Or they can be quoted without indentation:
>> Great idea!
>
> Why didn't I think of that?
Line Blocks¶
Take it away, Eric the Orchestra Leader!
A one, two, a one two three fourHalf a bee, philosophically,must, ipso facto, half not be.But half the bee has got to be,vis a vis its entity. D’you see?But can a bee be said to beor not to be an entire bee,when half the bee is not a bee,due to some ancient injury?Singing…
Block Quotes¶
Block quotes consist of indented body elements:
My theory by A. Elk. Brackets Miss, brackets. This theory goes as follows and begins now. All brontosauruses are thin at one end, much much thicker in the middle and then thin again at the far end. That is my theory, it is mine, and belongs to me and I own it, and what it is too.
—Anne Elk (Miss)
Doctest Blocks¶
>>> print 'Python-specific usage examples; begun with ">>>"'
Python-specific usage examples; begun with ">>>"
>>> print '(cut and pasted from interactive Python sessions)'
(cut and pasted from interactive Python sessions)
Code Blocks¶
# parsed-literal test curl -O http://someurl/release-0.4.3.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"
}
Emphasized lines with line numbers¶
1 2 3 4 5 | def some_function():
interesting = False
print 'This line is highlighted.'
print 'This one is not...'
print '...but this one is.'
|
Sidebar¶
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.
References¶
Citations¶
[11] | 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. |
[12] | (1, 2) This citation has some code blocks in it, maybe some bold and
italics too. Heck, lets put a link to a meta citation [13] too. |
[13] | This citation will have two backlinks. |
Here’s a reference to the above, [12], and a [nonexistent] citation.
Here is another type of citation: citation
Glossary¶
This is a glossary with definition terms for thing like Writing:
- Documentation
- Provides users with the knowledge they need to use something.
- Reading
- The process of taking information into ones mind through the use of eyes.
- Writing
- The process of putting thoughts into a medium for other people to read.
Targets¶
This paragraph is pointed to by the explicit “example” target. A reference can be found under Inline Markup, above. Inline hyperlink targets are also possible.
Section headers are implicit targets, referred to by name. See Targets, which is a subsection of `Body Elements`_.
Explicit external targets are interpolated into references such as “Python [1]”.
Targets may be indirect and anonymous. Thus this phrase may also refer to the Targets section.
Here’s a `hyperlink reference without a target`_, which generates an error.
Directives¶
Contents¶
These are just a sample of the many reStructuredText Directives. For others, please see: http://docutils.sourceforge.net/docs/ref/rst/directives.html.
Centered text¶
You can create a statement with centered text with .. centered::
This is centered text!
Images & Figures¶
Figures¶

A figure is an image with a caption and/or a legend:
re | Revised, revisited, based on ‘re’ module. |
Structured | Structure-enhanced text, structuredtext. |
Text | Well it is, isn’t it? |
This paragraph is also part of the legend.
A figure directive with center alignment

This caption should be centered.
Admonitions¶
Attention
Directives at large.
Caution
Don’t take any wooden nickels.
Danger
Mad scientist at work!
Error
Does not compute.
Hint
It’s bigger than a bread box.
Important
- Wash behind your ears.
- Clean up your room.
- Including the closet.
- The bathroom too.
- Take the trash out of the bathroom.
- Clean the sink.
- Call your mother.
- Back up your data.
Note
This is a note. Equations within a note: \(G_{\mu\nu} = 8 \pi G (T_{\mu\nu} + \rho_\Lambda g_{\mu\nu})\).
Tip
15% if the service is good.
Example |
---|
Thing1 |
Thing2 |
Thing3 |
Warning
Strong prose may provoke extreme mental exertion. Reader discretion is strongly advised.
And, by the way…
You can make up your own admonition too.
Target Footnotes¶
[1] | (1, 2, 3) http://www.python.org/ |
Replacement Text¶
I recommend you try Python, the best language around [1].
Compound Paragraph¶
This paragraph contains a literal block:
Connecting... OK
Transmitting data... OK
Disconnecting... OK
and thus consists of a simple paragraph, a literal block, and another simple paragraph. Nonetheless it is semantically one paragraph.
This construct is called a compound paragraph and can be produced with the “compound” directive.
Download Links¶
This long long long long long long long long long long long long long long long download link should be blue, normal weight text with a leading icon, and should wrap white-spaces
Leaflet¶
Table of Contents
Inline Markup¶
Paragraphs contain text and may contain inline markup: emphasis, strong emphasis, inline literals
,
standalone hyperlinks (http://www.python.org), external hyperlinks (Python [1]), internal cross-references (example),
external hyperlinks with embedded URIs (Python web site), footnote references
(manually numbered [1]_, anonymous auto-numbered [#]_, labeled auto-numbered [#label]_, or symbolic [*]_),
citation references ([12]), substitution references (), and inline hyperlink targets
(see Targets below for a reference back to here). Character-level inline markup is also possible
(although exceedingly ugly!) in re
Structured
Text. Problems are indicated by |problematic|
text (generated by processing errors; this one is intentional).
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 to my code documentation for it.
The default role for interpreted text is Title Reference. Here are some explicit interpreted text roles:
a PEP reference (PEP 287); an RFC reference (RFC 2822); a subscript; a superscript;
and explicit roles for standard inline markup
.
GUI labels are a useful way to indicate that Some action is to be taken by the user.
The GUI label should not run over line-height
so as not to interfere with text from adjacent lines.
Key-bindings indicate that the read is to press a button on the keyboard or mouse,
for example MMB and Shift-MMB. Another useful markup to indicate a user action
is to use menuselection
this can be used to show short and long menus in software.
For example, and menuselection
can be seen here that breaks is too long to fit on this line.
.
Let’s test wrapping and whitespace significance in inline literals:
This is an example of --inline-literal --text, --including some--
strangely--hyphenated-words. Adjust-the-width-of-your-browser-window
to see how the text is wrapped. -- ---- -------- Now note the
spacing between the words of this sentence (words
should be grouped in pairs).
If the --pep-references
option was supplied, there should be a live link to PEP 258 here.
Math¶
This is a test. Here is an equation: \(X_{0:5} = (X_0, X_1, X_2, X_3, X_4)\). Here is another:
You can add a link to equations like the one above (1) by using :eq:
.
Blocks¶
Literal Blocks¶
Literal blocks are indicated with a double-colon (“::”) at the end of
the preceding paragraph (over there -->
). They can be indented:
if literal_block:
text = 'is left as-is'
spaces_and_linebreaks = 'are preserved'
markup_processing = None
Or they can be quoted without indentation:
>> Great idea!
>
> Why didn't I think of that?
Line Blocks¶
Take it away, Eric the Orchestra Leader!
A one, two, a one two three fourHalf a bee, philosophically,must, ipso facto, half not be.But half the bee has got to be,vis a vis its entity. D’you see?But can a bee be said to beor not to be an entire bee,when half the bee is not a bee,due to some ancient injury?Singing…
Block Quotes¶
Block quotes consist of indented body elements:
My theory by A. Elk. Brackets Miss, brackets. This theory goes as follows and begins now. All brontosauruses are thin at one end, much much thicker in the middle and then thin again at the far end. That is my theory, it is mine, and belongs to me and I own it, and what it is too.
—Anne Elk (Miss)
Doctest Blocks¶
>>> print 'Python-specific usage examples; begun with ">>>"'
Python-specific usage examples; begun with ">>>"
>>> print '(cut and pasted from interactive Python sessions)'
(cut and pasted from interactive Python sessions)
Code Blocks¶
# parsed-literal test curl -O http://someurl/release-0.4.3.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"
}
Emphasized lines with line numbers¶
1 2 3 4 5 | def some_function():
interesting = False
print 'This line is highlighted.'
print 'This one is not...'
print '...but this one is.'
|
Sidebar¶
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.
References¶
Citations¶
[11] | 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. |
[12] | (1, 2) This citation has some code blocks in it, maybe some bold and
italics too. Heck, lets put a link to a meta citation [13] too. |
[13] | This citation will have two backlinks. |
Here’s a reference to the above, [12], and a [nonexistent] citation.
Here is another type of citation: citation
Glossary¶
This is a glossary with definition terms for thing like Writing:
- Documentation
- Provides users with the knowledge they need to use something.
- Reading
- The process of taking information into ones mind through the use of eyes.
- Writing
- The process of putting thoughts into a medium for other people to read.
Targets¶
This paragraph is pointed to by the explicit “example” target. A reference can be found under Inline Markup, above. Inline hyperlink targets are also possible.
Section headers are implicit targets, referred to by name. See Targets, which is a subsection of `Body Elements`_.
Explicit external targets are interpolated into references such as “Python [1]”.
Targets may be indirect and anonymous. Thus this phrase may also refer to the Targets section.
Here’s a `hyperlink reference without a target`_, which generates an error.
Directives¶
Contents¶
These are just a sample of the many reStructuredText Directives. For others, please see: http://docutils.sourceforge.net/docs/ref/rst/directives.html.
Centered text¶
You can create a statement with centered text with .. centered::
This is centered text!
Images & Figures¶
Figures¶

A figure is an image with a caption and/or a legend:
re | Revised, revisited, based on ‘re’ module. |
Structured | Structure-enhanced text, structuredtext. |
Text | Well it is, isn’t it? |
This paragraph is also part of the legend.
A figure directive with center alignment

This caption should be centered.
Admonitions¶
Attention
Directives at large.
Caution
Don’t take any wooden nickels.
Danger
Mad scientist at work!
Error
Does not compute.
Hint
It’s bigger than a bread box.
Important
- Wash behind your ears.
- Clean up your room.
- Including the closet.
- The bathroom too.
- Take the trash out of the bathroom.
- Clean the sink.
- Call your mother.
- Back up your data.
Note
This is a note. Equations within a note: \(G_{\mu\nu} = 8 \pi G (T_{\mu\nu} + \rho_\Lambda g_{\mu\nu})\).
Tip
15% if the service is good.
Example |
---|
Thing1 |
Thing2 |
Thing3 |
Warning
Strong prose may provoke extreme mental exertion. Reader discretion is strongly advised.
And, by the way…
You can make up your own admonition too.
Target Footnotes¶
[1] | (1, 2, 3) http://www.python.org/ |
Replacement Text¶
I recommend you try Python, the best language around [1].
Compound Paragraph¶
This paragraph contains a literal block:
Connecting... OK
Transmitting data... OK
Disconnecting... OK
and thus consists of a simple paragraph, a literal block, and another simple paragraph. Nonetheless it is semantically one paragraph.
This construct is called a compound paragraph and can be produced with the “compound” directive.
Download Links¶
This long long long long long long long long long long long long long long long download link should be blue, normal weight text with a leading icon, and should wrap white-spaces