1.10.1. Introduction to working with the CTSM documentation

1.10.1.1. Documentation source files

The CTSM documentation is built from files in the doc/source/tech_note/ and doc/source/users_guide/ directories. These files are written in a mixture of what are called “markup languages.” You may already be familiar—for better or for worse—with the LaTeX markup language. Fortunately, our documentation is simpler than that. It was originally written entirely in reStructuredText, and it still mostly is, as you can tell by the predominance of .rst files. However, it’s also possible to write Markdown documents (.md), which is nice because it’s a much simpler and more widespread format (although see Caveats for working with Markdown). If you’ve formatted text on GitHub, for instance, you’ve used Markdown.

1.10.1.2. Editing the documentation

Editing the documentation is as simple as opening the source file for the page you want to edit, then changing text. Make sure to use either reStructuredText or Markdown syntax, depending on the file’s extension (.rst or .md, respectively).

If you’re confident in your changes, or you’re not confident in your ability to preview and test the documentation (see Building the documentation (recommended method) below), all you need to do is commit your changes and submit a pull request to the CTSM GitHub repo. Automated testing will check the updated documentation for any errors, and a CTSM software engineer will review your PR. If everything looks good, they will merge it into the codebase and update the website.

1.10.1.4. Further reading

More complicated instructions and alternative methods for building the documentation can be found in Overview of the recommended build method and alternative methods.