Some reStructuredText examples
Ikiwiki rst plugin's builtin text role :wiki:
:wiki:`index`
Note
What follow below need customizations I have done (using rst_customize, source: rst_customize.py)
shortcut meta-role:
.. role:: google(shortcut) :base: http://www.google.com/search?q= Search :google:`reStructuredText` .. role:: ikiwiki(shortcut) :base: http://ikiwiki.info/ Please read more at :ikiwiki:`examples` .. role:: wikifile(shortcut) :base: http://kaizer.se/publicfiles/ Download :wikifile:`kupfer/kupfer-c15.tar.gz`
Search reStructuredText
Please read more at examples
Download kupfer-c15.tar.gz
Quick&dirty rst wrapper around ikiwiki's toggle plugin:
.. toggle:: Show More
Not much to see here,
but I could write a book about it.
1. See you soon
2. Auf Wiedersehen,
3. Bye!
Not much to see here, but I could write a book about it.
- See you soon
- Auf Wiedersehen,
- Bye!
python-pygments comes with a sourcecode directive for reST:
(Full snippet at `code/dijkstra`)
.. sourcecode:: c
/* Run Dijkstra's algorithm on the vertices
* Recomputes the values for all vertices
*/
void graph_dijkstra (struct vertex *start_vx) {
/* build the Q as 'vl' */
struct vertex_list *vl = graph_build_vlist(start_vx);
start_vx->value = 0; /* mark start value */
...
}
(Full snippet at dijkstra)
/* Run Dijkstra's algorithm on the vertices
* Recomputes the values for all vertices
*/
void graph_dijkstra (struct vertex *start_vx) {
/* build the Q as 'vl' */
struct vertex_list *vl = graph_build_vlist(start_vx);
start_vx->value = 0; /* mark start value */
...
}