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
cdinto it. - Install the dependencies by running
pip install ".[docs]" - Within terminal in the directory of the repo, run
mkdocs serve(or possiblypython -m mkdocs serveon Windows) to see in live time the effect of changes to the website. PressCtrl+Cto exit. - Make changes to the relevant file within the
docsdirectory, or add new files. - If you add new files, update
mkdocs.ymlto 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.
.pyfile) to theclimdyn_toolsdirectory of the GitHub repository. - Add a corresponding
.mdfile to thedocsdirectory of the repository. The comments from the functions can be added to the documentation by adding a line of text to the.mdfile e.g.::: climdyn_tools.ceda_esgf.basefor 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.