5 #######################################################
6 Examples of ReST markup for chromesite (Document title)
7 #######################################################
12 A document starts with a Sphinx target which serves as the document name
13 throughout the tree. It can serve as a link target in other documents that want
14 to link to this one (see the Links section below).
19 In general, follow the rules from http://sphinx-doc.org/rest.html
21 Some **bold text** and *italic text* and ``fixed-font text``. Non marked-up text
22 can follow these immediately by using a backslash: **pexe**\s.
24 For pleasant collaborative editing, please use the accepted coding guidelines:
25 wrap at 80 columns, no tabs, etc.
27 Quotes (``<blockquote>``) are created by indenting the paragraph:
29 Most good programmers do programming not because they expect to get paid or
30 get adulation by the public, but because it is fun to program.
33 Here's an en-dash -- and an m-dash --- too.
38 Copyright sign |copy|, and uacute |Uacute|.
40 .. |copy| unicode:: 0xA9 .. copyright
41 .. |Uacute| unicode:: U+000DA
47 Please use absolute paths (starting with ``/``) for images:
49 .. image:: /images/NaclBlock.png
54 To other documents within the tree
55 ----------------------------------
57 Internal links to other documents are created :doc:`like this <overview>`. The
58 document name within the angle brackets is relative to the root dir of the doc
59 tree and does not have an extension.
61 Here's a link to a document in a subdirectory: :doc:`the tutorial
62 <devguide/tutorial/tutorial-part1>`. And a link to a subdirectory index page
63 :doc:`devguide index <devguide/index>`.
65 To sections inside documents
66 ----------------------------
68 To internal locations within documents, labels are used. For example, this link
69 goes to the label explicitly placed in this document -
70 :ref:`link_for_section_heading`. This works across documents as well. Label
71 names must be unique in the tree, and can refer to anything (like images).
73 It's also possible to give such cross-references custom names: :ref:`Same
74 Section Heading<link_for_section_heading>`.
79 Plain links can be placed like this: http://google.com and also `like this
80 <http://google.com>`_.
85 Can be used to define a group of related terms. Internal formatting is supported
86 within the definition. No special formatting needs to be done for the definition
87 name/title - it's handled by the chromesite documentation server.
90 The apple is the pomaceous fruit of the apple tree, species Malus domestica in
91 the rose family (**Rosaceae**).
93 The common fig (**Ficus carica**) is a species of flowering plant in the genus
94 Ficus, from the family Moraceae, known as the common fig (or just the fig),
95 anjeer (Iran, Pakistan), and dumur (Bengali).
97 The pear is any of several tree and shrub species of genus Pyrus, in the
100 Notes and Admonitions
101 =====================
103 The documentation server supports special "notes" that are indented and have a
104 background color. We'll generate them with the ``Note`` directive, providing
105 the class explicitly. The class is one of ``note``, ``caution``, ``warning``,
120 Caution -- you have been warned.
125 Here's source code that will be pretty-printed. It's just a plain ``<pre>``
126 that presents pre-formatted code with coloring:
134 std::cout << "Hello world\n";
138 For some code (like shell samples), we want to disable pretty-printing:
146 By default ``:prettyprint:`` is ``1``.
148 For short inline code, use fixed-formatting like ``int x = 2;``. Note that this
149 won't get syntax-highlighted and may be line-wrapped, so keep it very short.
151 .. _link_for_section_heading:
156 Here's a demonstration of heading nesting levels. This is a top-level section in
157 the document. The document title is the first header and it's delimited by hash
158 signes (``#``) from above and below.
165 Sub-subsection heading
166 ^^^^^^^^^^^^^^^^^^^^^^
168 That's pretty deep...
170 Sub-sub-subsection heading
171 """"""""""""""""""""""""""
173 It's probably not the best idea to go this far (renders to ``<h5>``).
178 Auto-numbered ordered lists:
184 Manually numbered ordered lists:
190 Unordered (bullet) lists:
196 Lists can be nested and mixed too:
208 The full scoop on tables is http://sphinx-doc.org/rest.html#tables and the
209 Docutils pages linked from it.
211 "Simple tables" require less markup but are limited:
222 "Grid tables" are versatile but require more markup:
224 +------------------------+------------+----------+----------+
225 | Header row, column 1 | Header 2 | Header 3 | Header 4 |
226 | (header rows optional) | | | |
227 +========================+============+==========+==========+
228 | body row 1, column 1 | column 2 | column 3 | column 4 |
229 +------------------------+------------+----------+----------+
230 | body row 2 | ... | ... | |
231 +------------------------+------------+----------+----------+