@@ -3,8 +3,9 @@ reST (reStructuredText) Markup
33===============================
44
55..
6- This document is duplicated within Moin2 as `/docs/user/rest.rst` and
7- `contrib/sample/rst.data`. Please update both.
6+ This document is duplicated within the Moin2 repository as
7+ `docs/user/rest.rst` and `src/moin/help/help-en/rst.data`.
8+ Please update both.
89
910Depending on your source, this document may have been created by
1011the Moin2 reST parser (Docutils) or the Sphinx reST parser. These parsers
@@ -92,60 +93,82 @@ Text formatting
9293
9394The following is a table of inline markup that can be used to format text in Moin.
9495
95- +----------------------------------------+------------------------------------+
96- | Markup |Result |
97- +========================================+====================================+
98- | ``**Bold Text**`` |**Bold text** |
99- +----------------------------------------+------------------------------------+
100- | ``*Italic*`` |*Italic* |
101- +----------------------------------------+------------------------------------+
102- | ````Inline Literals```` |``Inline Literals`` |
103- +----------------------------------------+------------------------------------+
104- | ``***nested markup is not supported***``|***nested markup is not supported***|
105- +----------------------------------------+------------------------------------+
96+ ======================================== ====================================
97+ Markup Result
98+ ======================================== ====================================
99+ ``**Bold Text** `` **Bold text **
100+
101+ ``*Italic*`` *Italic*
102+
103+ ````Inline Literals`` `` ``Inline Literals ``
104+
105+ ``***nested markup is not supported*** `` ***nested markup is not supported* **
106+ ======================================== ====================================
107+
106108
107109Hyperlinks
108110==========
109111
110112External Links
111113--------------
112114
113- +-----------------------------------------------------------------+-------------------------------------------------------------+
114- | Markup |Result |
115- +=================================================================+=============================================================+
116- | ``https://www.python.org/`` |https://www.python.org/ |
117- +-----------------------------------------------------------------+-------------------------------------------------------------+
118- | ``External hyperlinks, like `Python <https://www.python.org/>`_``|External hyperlinks, like `Python <https://www.python.org/>`_|
119- +----------------------------------------------------------------+--------------------------------------------------------------+
120- | ``External hyperlinks, like Moin _.`` |External hyperlinks, like Moin_. |
121- | | |
122- | ``.. _Moin: http://moinmo.in/`` |.. _Moin: http://moinmo.in/ |
123- +-----------------------------------------------------------------+-------------------------------------------------------------+
115+ ================================================================ =====================================================
116+ Markup Result
117+ ================================================================ =====================================================
118+ ``http://www.python.org/ `` http://www.python.org/
119+
120+ ``External hyperlinks, like `Python <http://www.python.org/>`_`` External hyperlinks, like
121+ `Python <http://www.python.org/ >`_
122+
123+ ``External hyperlinks, like Moin_.`` External hyperlinks, like Moin_.
124+
125+ ``.. _Moin: http://moinmo.in/ `` .. _Moin: http://moinmo.in/
126+ ================================================================ =====================================================
124127
125128Internal Links
126129--------------
127130
131+ The examples below use the "help-en" and "help-common" namespaces
132+ to separate these help pages from the main wiki content.
133+ Some target pages may be missing from the default namespace.
134+
135+ Within the rst syntax:
136+
137+ * a link like ``http:Home `` links to an item in the default namespace
138+ * a link like ``http:/subitem `` links to a subitem of the current item
139+ * a link that begins with a namespace like ``http:users/Home `` links to the Home item in the target namespace
140+ * a link like ``http:../sibling `` links to a sibling of the current item
141+
128142.. _myanchor:
129143
130- +----------------------------------------------------------------+------------------------------------------------------------+
131- | Markup |Result |
132- +================================================================+============================================================+
133- | ``http:Home`` link to a page in this wiki |http:Home link to a page in this wiki |
134- +----------------------------------------------------------------+------------------------------------------------------------+
135- | ```Home <http:Home>`_`` link to a page in this wiki |`Home <http:Home>`_ link to a page in this wiki |
136- +----------------------------------------------------------------+------------------------------------------------------------+
137- | ``Headings_`` link to heading anchor on this page |Headings_ link to heading anchor on this page |
138- +----------------------------------------------------------------+------------------------------------------------------------+
139- | ```Internal Links`_`` link to heading with embedded blanks |`Internal Links`_ link to heading with embedded blanks |
140- +----------------------------------------------------------------+------------------------------------------------------------+
141- | ``.. _myanchor:`` create anchor, real anchor is above this table|create anchor, real anchor is above this table |
142- +----------------------------------------------------------------+------------------------------------------------------------+
143- | ``myanchor_`` link to above anchor |myanchor_ link to above anchor |
144- +----------------------------------------------------------------+------------------------------------------------------------+
144+ ============================ ============================ ===========================================================
145+ Markup Result Comment
146+ ============================ ============================ ===========================================================
147+ ``http:Home `` http:Home link to an item in the default namespace of this wiki
148+
149+ ```Home2 <http:Home>`_ `` `Home2 <http:Home >`_ fancy link to an item in the default namespace of this wiki
150+
151+ ``http:/subitem `` http:/subitem link to a subitem of the current item
152+
153+ ```sub <http:/subitem>`_ `` `sub <http:/subitem >`_ fancy link to a subitem of the current item
154+
155+ ``http:users/Home `` http:users/Home link to an item in a different namespace of this wiki
156+
157+ ``http:../moin `` http:../moin link to a sibling of this item
158+
159+ ``Headings_ `` Headings _ link to Headings anchor on this item
160+
161+ ```Internal Links`_ `` `Internal Links `_ link to a heading with embedded blanks
162+
163+ ``.. _myanchor: `` create anchor, real anchor is above this table
164+
165+ ``myanchor_ `` myanchor _ link to above anchor
166+ ============================ ============================ ===========================================================
145167
146168**Notes: **
147169 - If this page was created by Sphinx, none of the above internal link examples work correctly.
148- - The ".. _myanchor:" directive must begin in column one.
170+ - The block level "target" ``.. _myanchor: `` sets an anchor for the following element.
171+ Inline targets set the anchor on the text content which is also used as label.
149172 - Section titles (or headings) automatically generate hyperlink targets (the title
150173 text is used as the hyperlink name).
151174
@@ -161,11 +184,11 @@ several images declared successively without any positioning will display in a h
161184
162185 Before text.
163186
164- .. image:: png
165- :height: 100
187+ .. image:: help-common/logo.svg
188+ :height: 200
166189 :width: 200
167- :scale: 50
168- :alt: alternate text png
190+ :scale: 100
191+ :alt: alternate text logo.svg
169192 :align: center
170193
171194 After text.
@@ -174,18 +197,18 @@ several images declared successively without any positioning will display in a h
174197
175198Before text.
176199
177- .. image :: png
178- :height: 100
200+ .. image :: help-common/logo.svg
201+ :height: 200
179202 :width: 200
180- :scale: 50
181- :alt: alternate text png
203+ :scale: 100
204+ :alt: alternate text logo.svg
182205 :align: center
183206
184207After text.
185208
186209**Notes: **
187- - The Sphinx parser does not have an image named "png " so the alternate text
188- will be displayed.
210+ - The Sphinx parser does not have an image named "logo.svg " so the alternate text
211+ will be displayed above .
189212
190213Figures
191214=======
@@ -198,11 +221,11 @@ will display in a column.
198221
199222 Before text.
200223
201- .. figure:: png
224+ .. figure:: help-common/logo. png
202225 :height: 100
203226 :width: 200
204227 :scale: 50
205- :alt: alternate text png
228+ :alt: alternate text logo. png
206229
207230 Moin Logo
208231
@@ -213,13 +236,14 @@ will display in a column.
213236
214237**Result **:
215238
239+
216240Before text.
217241
218- .. figure :: png
242+ .. figure :: help-common/logo. png
219243 :height: 100
220244 :width: 200
221245 :scale: 50
222- :alt: alternate text png
246+ :alt: alternate text logo. png
223247
224248 Moin Logo
225249
0 commit comments