If you'd like to contribute to this documentation, please follow the steps below.
This documentation is created using Sphinx. Sphinx is an open-source tool that makes it easy to create intelligent and beautiful documentation, written by Georg Brandl and licensed under the BSD license.
The documentation is maintained in the main
branch of the GitHub repository.
You can include code and its corresponding documentation updates in a single pull request (PR).
After merging a PR, GitHub Actions automates the documentation building process.
It pushes the HTML build to the gh-pages
branch, which is hosted on GitHub Pages.
Install Miniconda/Anaconda
Clone the repository
git clone git@github.com:E3SM-Project/e3sm_data_docs.git
Enter the repo directory
cd e3sm_data_docs
Create the
e3sm_data_docs
conda environmentconda env create -f conda-env/docs.yml conda activate e3sm_data_docs
Sphinx uses reStructuredText as its markup language. For more information on how to write documentation using Sphinx, you can refer to:
Create a branch from
main
git checkout main git checkout -b <BRANCH_NAME>
Edit the
rst
files under/docs/source
.Build the HTML pages :
cd docs make html
View them locally in a web browser at
file:///<myDir>/e3sm_data_docs/docs/_build/html/index.html
Commit and push changes
cd <myDir>/e3sm_data_docs # `docs/_build` is ignored by git since it does not need to be pushed. git add . git commit "..." git push <fork-origin> <branch-name>
Create a pull request
Once this pull request is merged and GitHub Actions finishes building the docs, changes will be available on the e3sm_data_docs documentation page.