Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.6 KB

README.md

File metadata and controls

54 lines (37 loc) · 1.6 KB

Knowledge Base

This folder contains the source of SMT's knowledge base. SMT is part of NASA's Advanced Software Technology Group (ASTG). The online version is deployed to https://geos-esm.github.io/SMT-Nebulae/.

Contributing

Contributing to this documentation is straight forward.

  1. Add or change files in the docs/ folder as necessary.
  2. [Optional] If you have changes to the (side) navigation, modify mkdocs.yml.
  3. [Optional] To look at you changes locally, follow our local setup guide.
  4. Push your changes.
    • Changes can be pushed directly to the main branch.
    • If you want someone else to have a look, consider making a pull request.

Deployment

Deployment is automated with GitHub Actions. The online version is updated for every push to the main branch.

Local setup

A minimalistic local setup could look like this:

# Setup a virtual environment (in this folder) and activate it
python -m venv .venv
source .venv/bin/activate

# Install mkdocs-material and mkdocs-drawio into that virtual environment
pip install mkdocs-material mkdocs-drawio

# Run the built-in development server to look at the documentation locally
mkdocs serve

Notes and quirks

The (left sidebar) navigation allows for either one file, e.g.

nav:
  - Home: index.md

or a hierarchy

nav:
  - Backend work:
    - dace development: backend/dev-dace.md
    - gt4py development: backend/dev-gt4py.md

without an index file. Attempting to add an index file in hierarchy, will throw an error when building.