-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation site instructions
- Loading branch information
Jesse Wei
authored and
Jesse Wei
committed
Aug 17, 2023
1 parent
72ccdf6
commit 0d55cb3
Showing
8 changed files
with
117 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
```{eval-rst} | ||
.. _markdown-test: | ||
``` | ||
|
||
# This is written in Markdown | ||
|
||
```{topic} Overview | ||
This page is generated from a Markdown file via [MyST Parser](https://myst-parser.readthedocs.io/en/latest/) and also contains raw RST for extra functionality (i.e., Markdown suffices, and RST is not necessary). To view the source code for this page, click the "View page source" button at the top right. | ||
``` | ||
|
||
```{contents} | ||
--- | ||
depth: 3 | ||
--- | ||
``` | ||
|
||
## Basic Markdown formatting | ||
|
||
*Italics* | ||
|
||
**Bold** | ||
|
||
***Italics and bold*** | ||
|
||
* bulleted | ||
* list | ||
|
||
1. numbered | ||
2. list | ||
|
||
[Hyperlink](https://www.google.com) | ||
|
||
|This|is|a|table| | ||
|:--:|:-:|:-:|:-:| | ||
|0|1||3| | ||
|
||
[Referencing the below Image heading](#image) | ||
|
||
The above link generates a warning but works fine. | ||
|
||
## Code | ||
|
||
`inline code` | ||
|
||
### Multiline code with syntax highlighting | ||
|
||
```py | ||
import os | ||
for i in range(5): | ||
os.system("echo echo") | ||
``` | ||
|
||
The language is specified as `py`. | ||
|
||
## Image | ||
|
||
Below should be an image that comes from a local file. | ||
|
||
![local](_static/nr_logo.jpg) | ||
|
||
This image is from the web. | ||
|
||
![online](https://neuroruler.readthedocs.io/en/latest/_static/nr_logo.jpg) | ||
|
||
## Inline RST | ||
|
||
Below is an example of inline RST, specifically the `see-also` directive. | ||
|
||
```{seealso} | ||
Hello world | ||
``` | ||
|
||
If you scroll to the very top, the overview and contents were both generated via raw RST. This uses the `myst-parser` extension. This is how to inline RST code in a Markdown file. | ||
|
||
![](_static/sphinx_markdown_rst.png) | ||
|
||
[Source](https://myst-parser.readthedocs.io/en/v0.13.3/using/syntax.html#directives-a-block-level-extension-point) | ||
|
||
The page linked above mentions that for special cases, you should use the `eval-rst` directive instead. | ||
|
||
![eval-rst](_static/eval_rst.png) | ||
|
||
For example, the source for this page uses an RST directive on the first line. | ||
|
||
Remember to add your page to `index.rst` (including the `.md` extension), and run `make html` to build the HTML. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters