-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instructions on how to write documentation with MyST
- Loading branch information
Showing
2 changed files
with
32 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,40 @@ | ||
# Documentation Editing Setup | ||
# How to Write Documentation | ||
|
||
The documentation uses the [MyST](https://mystmd.org/) markup language. | ||
|
||
Install the following packages within an existing conda environment: | ||
```{code} bash | ||
conda install conda-forge::mystmd | ||
conda install conda-forge::nodejs | ||
conda install conda-forge::texlive-core | ||
conda install conda-forge::latexmk | ||
``` | ||
In order to edit and view the documentation locally, please first install MyST following [MyST's installation instructions](https://mystmd.org/guide/installing). | ||
|
||
Check that MyST has been installed successfully by running | ||
```{code} bash | ||
myst -v | ||
myst --version | ||
``` | ||
Once MyST has been installed, run | ||
```{code} bash | ||
myst start | ||
``` | ||
from the root directory of the repository (where the MyST configuration file `myst.yml` is located) to start MyST locally. | ||
This will display something like | ||
```{code} bash | ||
$ myst start | ||
📖 Built front_matter/introduction.md in 96 ms. | ||
📖 Built front_matter/governance.md in 46 ms. | ||
📖 Built front_matter/contributing.md in 45 ms. | ||
📖 Built front_matter/doc_editing_setup.md in 45 ms. | ||
📖 Built standard/introduction.md in 45 ms. | ||
📖 Built standard/element_parameter.md in 44 ms. | ||
📚 Built 6 pages for project in 193 ms. | ||
✨✨✨ Starting Book Theme ✨✨✨ | ||
🔌 Server started on port 3000! 🥳 🎉 | ||
👉 http://localhost:3000 👈 | ||
``` | ||
|
||
Run `myst` to render the documentation and click the local URL displayed on the terminal. | ||
When editing source files, the local build will update automatically. | ||
Open the URL displayed in the terminal (in this case `http://localhost:3000`) to visualize the MyST content with your web browser. | ||
|
||
You are now ready to edit the markdown files that compose the documentation! | ||
The content displayed in your web browser will update automatically as you edit. | ||
|
||
If you add new markdown files, do not forget to add them to the table of contents defined in the MyST configuration file `myst.yml`. |
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