reStructuredText Demo
This will demonstrate the current Nikola theme with common markup. It is a better perspective than the current example dominated by an image.
- Dedication
-
To Nikola theme builders everywhere.
Inline Markup
Here is a collection of inlike markup:
emphasis,
strong emphasis,
interpreted text,
inline literals
,
standalone hyperlinks http://getnikola.com/quickref.html,
footnotes 1,
and implicit hyperlink targets Highlighting.
- 1
-
There are several types of footnotes including auto footnotes
[#]_
and auto-symbol footnotes[*]_
Highlighting
from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): """A simple hello world app.""" return 'Hello, World!' |
Body Elements
- Clean code:
-
Clear to understand and modify, uses meaningful names, has minimal dependencies, is easy to test, and it works correctly.
Inputs |
Output |
|
---|---|---|
A |
B |
A xor B |
False |
False |
False |
True |
False |
True |
False |
True |
True |
True |
True |
False |
reStructured Directives
Note
Table of contents should be at the top of the post. However, placing the marking there interferes with TEASER_END
.
Important
In addition to note and important, the following admonition directives have been implemented: attention, caution, warning, danger, error, hint, note, and tip.
Table of Contents
Copyright
This document is placed in the public domain. You may do with it as you wish. You may modify, resistribute, copy sell, lease, destroy, or improve it, quote it at length, incorportate, collate, fold, staple or mutilate it.
—Clinton James