@@ -12,14 +12,11 @@ You can think of RST as "Markdown, but much better". Meaning:
12
12
The full Sphinx / RST documentation is available here:
13
13
https://www.sphinx-doc.org/en/master/index.html
14
14
15
- Translating Markdown to RST
16
- ---------------------------
17
-
18
- If you're familiar with Markdown, here's some tips to get you started
19
- in RST:
15
+ If you're familiar with Markdown, the following sections contain some
16
+ tips to get you started in RST.
20
17
21
18
Whitespace and indenting
22
- ^^^^^^^^^^^^^^^^^^^^^^^^
19
+ ------------------------
23
20
24
21
* MD: Whitespace and indenting generally doesn't matter in most
25
22
cases. It does matter with bullets and sub bullets, but the rules
@@ -44,7 +41,7 @@ item. For example, this paragraph is not part of the MD/RST
44
41
bulleted list.
45
42
46
43
Fixed width font
47
- ^^^^^^^^^^^^^^^^
44
+ ----------------
48
45
49
46
* MD: Use single quotes:
50
47
@@ -59,19 +56,19 @@ Fixed width font
59
56
``hello world``
60
57
61
58
Italics
62
- ^^^^^^^
59
+ -------
63
60
64
61
* MD: ``*hello world* `` or ``_hello world_ ``
65
62
* RST: ``*hello world* ``
66
63
67
64
Boldface
68
- ^^^^^^^^
65
+ --------
69
66
70
67
* MD: ``**hello world** ``
71
68
* RST: Same as MD
72
69
73
70
Chapter and section delimiters
74
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71
+ ------------------------------
75
72
76
73
* MD: Either use one or more pound signs (#, ##, ###) to the left of
77
74
the line of text, or underline the line of text with pound signs
@@ -101,20 +98,19 @@ Chapter and section delimiters
101
98
.. code-block :: rst
102
99
103
100
Subsection 1: hello world
104
- ^^^^^^^^^^^^^^^^^^^^^^^^^
101
+ -------------------------
105
102
106
103
.. code-block :: rst
107
104
108
105
Subsubsection 1: hello world
109
- ````````````````````````````
106
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110
107
111
108
Meaning: underlines made of ``= `` denotes chapters, underlines
112
- made of ``- `` denotes sections, underlines made of ``^ `` denotes
113
- subsections, and underlines made of single quotes denote
114
- subsubsections.
109
+ made of ``- `` denotes sections, underlines made of ``- `` denotes
110
+ subsections, and underlines made of ``^ `` denote subsubsections.
115
111
116
112
Multi-line code/fixed-width font
117
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
+ --------------------------------
118
114
119
115
* MD: Use three single quotes to delimit blocks of text. Optionally
120
116
include a token keyword to denote the syntax highlighting to use
@@ -171,7 +167,7 @@ The code-block is terminated by a blank line and then outdent back
171
167
to the same level as the first ``. `` in ``.. code-block:: ``.
172
168
173
169
Un-numbered bullets
174
- ^^^^^^^^^^^^^^^^^^^
170
+ -------------------
175
171
176
172
* MD: Start lines with ``* `` or ``- ``
177
173
* RST: Start lines with ``* ``. You can wrap lines at the same
@@ -198,7 +194,7 @@ Un-numbered bullets
198
194
* You **MUST ** put blank lines between bullets!
199
195
200
196
Numbered bullets:
201
- ^^^^^^^^^^^^^^^^^
197
+ -----------------
202
198
203
199
* MD: Start lines with ``# ``
204
200
* RST: Start lines with ``#. ``
@@ -216,7 +212,7 @@ Numbered bullets:
216
212
All the same rules for indentation apply as described above.
217
213
218
214
Comments
219
- ^^^^^^^^
215
+ --------
220
216
221
217
* MD: Enclose content in ``<!-- `` and ``--> `` (i.e., HTML comments,
222
218
but they are included in the output)
@@ -239,7 +235,7 @@ Comments
239
235
This line is no longer part of the comment.
240
236
241
237
Including files
242
- ^^^^^^^^^^^^^^^
238
+ ---------------
243
239
244
240
* MD: You cannot include files in Markdown.
245
241
* RST: Use the ``.. include:: FILENAME `` directive. For example:
@@ -256,7 +252,7 @@ Including files
256
252
file.
257
253
258
254
Hyperlinks to URLs
259
- ^^^^^^^^^^^^^^^^^^
255
+ ------------------
260
256
261
257
* MD:
262
258
@@ -274,7 +270,7 @@ Hyperlinks to URLs
274
270
It's a little weird, but you'll cope.
275
271
276
272
Hyperlinks to anchors
277
- ^^^^^^^^^^^^^^^^^^^^^
273
+ ---------------------
278
274
279
275
* MD: I forget offhand how to make anchors and links to them in MD.
280
276
* RST: Use the ``:ref: `` directive.
@@ -303,7 +299,7 @@ Hyperlinks to anchors
303
299
<building-and-installing-section-label>`.
304
300
305
301
Hyperlinks to other (RST) pages
306
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
302
+ -------------------------------
307
303
308
304
* MD:
309
305
@@ -328,7 +324,7 @@ Hyperlinks to other (RST) pages
328
324
The page path is relative to the ``docs `` dir in the OMPI git tree.
329
325
330
326
Macros
331
- ^^^^^^
327
+ ------
332
328
333
329
* MD: There are no macros in Markdown.
334
330
* RST: We have defined a few OMPI-specific macros in RST. You can
@@ -354,7 +350,7 @@ Macros
354
350
or ``--> ``.
355
351
356
352
Brightly-colored boxes
357
- ^^^^^^^^^^^^^^^^^^^^^^
353
+ ----------------------
358
354
359
355
* MD: There are no brightly-colored boxes in MD.
360
356
0 commit comments