Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As you edit the documentation, rerun the “mkdocs build” command and refresh the website in your browser. The output of “mkdocs build” will tell you if you have a syntax error in your markdown files. The website in your browser will let you know if it looks as you intended.

Using e3sm-unified to build/test docs

Note

This setup may be fragile, and if you’re advised to use the instructions above.

If you prefer to avoid using your local machine to build and test the docs, you can use one of the supported machines to do so and you do not need to install anything described in the previous section. Example annotated instructions to use Chrysalis:

  • tunnel a port to chrysalis from your local machine (e.g., ssh -L 12345:localhost:12345 username@chrysalis.lcrc.anl.gov)

  • use e3sm-unified (e.g., source /lcrc/soft/climate/e3sm-unified/load_latest_e3sm_unified_chrysalis.sh)

  • develop the docs in your preferred editor

  • (optionally, starting in 1.10.0, use the linter, e.g., markdownlint-cli2 <my_md_files>)

  • starting in 1.9.3, use mkdocs serve with that port (e.g., mkdocs serve -a localhost:12345)

  • then, open the link it prints in your local browser (e.g., localhost:12345)

Markdown style and linting

...