You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directive parses its contents as ReStructuredText, which integrates back into the rest of the document, e.g. for cross-referencing.
It provides a solution for both including rST files into Markdown, and utilising the sphinx autodoc directives (which have hard-coded rST aspects).
Co-authored-by: Chris Sewell <chrisj_sewell@hotmail.com>
@@ -43,11 +43,11 @@ Naturally this site is generated with Sphinx and MyST!
43
43
44
44
:::{admonition,tip} You can use both MyST and reStructuredText
45
45
46
-
Activating the MyST parser will simply *enable* parsing markdown files with MyST, and the rST
47
-
parser that ships with Sphinx by default will still work the same way. You can have
48
-
combinations of both markdown and rST files in your documentation, and Sphinx will
49
-
choose the right parser based on each file's extension. Sphinx features
50
-
like cross-references will work just fine between the pages.
46
+
Activating the MyST parser will simply *enable* parsing markdown files with MyST, and the rST parser that ships with Sphinx by default will still work the same way.
47
+
You can have combinations of both markdown and rST files in your documentation, and Sphinx will choose the right parser based on each file's extension.
48
+
Sphinx features like cross-references will work just fine between the pages.
49
+
50
+
You can even inject raw rST into Markdown files! (see [this explanation](syntax/directives/parsing))
51
51
:::
52
52
53
53
:::{admonition,seealso} Want to add Jupyter Notebooks to your documentation?
@@ -146,9 +146,8 @@ For those who are familiar with reStructuredText, here is the equivalent in rST:
146
146
```
147
147
148
148
Note that almost all documentation in the Sphinx ecosystem is written with
149
-
reStructuredText (MyST is only a few months old). That means you'll likely see examples
150
-
that have rST structure. You can modify any rST to work with MyST. Use this page,
151
-
and [the syntax page](syntax) to help guide you.
149
+
reStructuredText (MyST is only a few months old).
150
+
That means you'll likely see examples that have rST structure. You can modify any rST to work with MyST. Use this page, and [the syntax page](syntax) to help guide you.
152
151
````
153
152
154
153
As seen above, there are four main parts to consider when writing directives.
0 commit comments