Contribution Guidelines
Instructions for Contributing and Building Documentation Site
The following instructions details how to setup and build a local site for the ASHES documentation. This documentation site is built with Mkdocs with the Material theme.
- Navigate to the directory
ashes/ - Checkout the
ORS2526branch. - Execute
python -m venv .envto create a Python virtual environment. - Execute
source .env/bin/activateto activate the environment. - Execute
python -m pip install -r requirements.txtto install necessary dependencies for mkdocs. - To edit the documentation, simply edit the markdown file inside
ashes/docs/you believe your notes should go into. You can also create another markdown file, which will create a new page in the documentation accessible through the left sidebar. - Execute
mkdocs buildto build the documentation site after any updates to the docstrings or markdown files underashes/docs/. - From here, you have a couple of different directions to view your updates in the form of a published website:
- Execute
mkdocs serveto setup a site on you local machine. Your site will probably be served at the local addresshttp://127.0.0.1:8000/, which you can copy into a preferred web browser. This is useful for quick preview of how your changes will be rendered on the live site. - Execute
mkdocs gh-deployto send your updates to be deployed by Github. What happens is the built documentation is pushed to thegh-pagesbranch in theashesrepository, and the repository will automatically deploy any updates it sees ingh-pages. After a couple minutes, your updates will show up in the live documentation deployed athttps://gticelab.github.io/ashes/.
For additional information and guides, please visit the Official MkDocs Documentation or the Material for MkDocs Documentation.