OLD | NEW |
1 .. _getting_started: | 1 .. _getting_started: |
2 | 2 |
3 #################################################### | 3 #################################################### |
4 Examples of ReST markup for devsite (Document title) | 4 Examples of ReST markup for devsite (Document title) |
5 #################################################### | 5 #################################################### |
6 | 6 |
7 This is an auto-generated table of contents for this document. ``:local:`` and | 7 This is an auto-generated table of contents for this document. ``:local:`` and |
8 ``:backlinks: none`` are required to make the devsite look consistent; | 8 ``:backlinks: none`` are required to make the devsite look consistent; |
9 ``:depth:`` level can be controlled. | 9 ``:depth:`` level can be controlled. |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 Source code | 103 Source code |
104 =========== | 104 =========== |
105 | 105 |
106 Here's source code that will be pretty-printed on the devsite. Outside | 106 Here's source code that will be pretty-printed on the devsite. Outside |
107 production mode, it's just a plain ``<pre>`` that presents pre-formatted code | 107 production mode, it's just a plain ``<pre>`` that presents pre-formatted code |
108 without coloring: | 108 without coloring: |
109 | 109 |
110 .. naclcode:: | 110 .. naclcode:: |
111 | 111 |
112 #include <iostream> | 112 #include <iostream> |
113 | 113 |
114 int main() { | 114 int main() { |
115 std::cout << "Hello world\n"; | 115 std::cout << "Hello world\n"; |
116 return 0; | 116 return 0; |
117 } | 117 } |
118 | 118 |
119 For some code (like shell samples), we want to disable pretty-printing: | 119 For some code (like shell samples), we want to disable pretty-printing: |
120 | 120 |
121 .. naclcode:: | 121 .. naclcode:: |
122 :prettyprint: 0 | 122 :prettyprint: 0 |
123 | 123 |
124 $ ls | wc | 124 $ ls | wc |
125 $ echo "hello world" | 125 $ echo "hello world" |
126 | 126 |
127 By default ``:prettyprint:`` is ``1``. | 127 By default ``:prettyprint:`` is ``1``. |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 +------------------------+------------+----------+----------+ | 202 +------------------------+------------+----------+----------+ |
203 | Header row, column 1 | Header 2 | Header 3 | Header 4 | | 203 | Header row, column 1 | Header 2 | Header 3 | Header 4 | |
204 | (header rows optional) | | | | | 204 | (header rows optional) | | | | |
205 +========================+============+==========+==========+ | 205 +========================+============+==========+==========+ |
206 | body row 1, column 1 | column 2 | column 3 | column 4 | | 206 | body row 1, column 1 | column 2 | column 3 | column 4 | |
207 +------------------------+------------+----------+----------+ | 207 +------------------------+------------+----------+----------+ |
208 | body row 2 | ... | ... | | | 208 | body row 2 | ... | ... | | |
209 +------------------------+------------+----------+----------+ | 209 +------------------------+------------+----------+----------+ |
210 | 210 |
OLD | NEW |