Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: native_client_sdk/src/doc/rest-devsite-examples.rst

Issue 23531031: Minor cleanups for SDK devsite docs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « native_client_sdk/src/doc/index.rst ('k') | native_client_sdk/src/doc/sdk/examples.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « native_client_sdk/src/doc/index.rst ('k') | native_client_sdk/src/doc/sdk/examples.rst » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698