Contributing
To contribute to the website, one can follow these steps:
- Ensure your personal Github profile is a member of the Climate Dynamics Lab organization.
- Clone the Github repository, and
cd
into it. - Install the dependencies by running
pip install ".[docs]"
- Within terminal in the directory of the repo, run
mkdocs serve
(or possiblypython -m mkdocs serve
on Windows) to see in live time the effect of changes to the website. PressCtrl+C
to exit. - Make changes to the relevant file within the
docs
directory, or add new files. - If you add new files, update
mkdocs.yml
to ensure the correct structure. - Push changes to Github, and the website should update automatically.
The website was created using MkDocs, more information on which can be found here.
Code
To contribute code to the climdyn_tools
package, one can follow these steps:
- Add the code (e.g.
.py
file) to theclimdyn_tools
directory of the GitHub repository. - Add a corresponding
.md
file to thedocs
directory of the repository. The comments from the functions can be added to the documentation by adding a line of text to the.md
file e.g.::: climdyn_tools.ceda_esgf.base
for the CEDA/ESGF functions. - For this to work, the comments of the functions need to be in the Google Docstring format. You should be able to set this automatically in your IDE.
When updating comments in the code file, the documentation will not update in live time.You need to rerun mkdocs serve
to see the changes.