- Clone the documentation repository
git clone https://github.com/theicct/AZTEC-doc
- This is a public repository – do not commit any code or sensitive information!
- Make sure you have access to the latest version of the shared Word document
- gh-md-toc
- pandoc version 2.10.0 - install with
conda install -c conda-forge pandoc=2.10.0
- (Optional) Install a Markdown editor
- (Optional) Install Jekyll if you intend to test the documentation changes locally
- Write your updates in the AZTEC user guide
- Get review, as necessary
- If you added images to the AZTEC user guide document, add them to the assets folder in this AZTEC-doc repo
- Copy the latest user guide Markdown file to the versions folder as well
- Use the same naming convention (for example, if the latest version is
v1.6
, create a copy of theREADME.md
namedv1.6.md
) - If you added images in step 4, add them to the file by inserting the following in the document:
![](/AZTEC-doc/assets/[filename])
where[filename]
is the name of the image - Add the following to the top and bottom of your Markdown file, respectively:
--- layout: page title: 'AZTEC vX.Y Documentation' permalink: /versions/vX.Y/ ---
<button name='download' onclick="location.href='../AZTEC vX.Y Model Documentation.pdf'">Download as PDF</button>
- Remove unnecessary sections ('Installation', 'Sensitivity step-by-step instructions')
- Add authors in new 'Acknowledgments' subsection of 'Introduction'
- Use the same naming convention (for example, if the latest version is
- Test your changes locally
- First, temporarily remove all references to the
AZTEC-doc/
directory (it becomes the baseurl once served by GitHub) from the Markdown documentation file and the _config.yml file - run
jekyll serve
- First, temporarily remove all references to the
- Save the webpage to a .pdf file and move to the versions folder with the name AZTEC vX.Y Model Documentation.pdf where X and Y reference the model version, e.g. AZTEC v1.6 Model Documentation.pdf
- Afterwards, make sure you add back in the references to
AZTEC-doc/
for any images
- Afterwards, make sure you add back in the references to
- Add and commit the new documentation files
git add versions/vX.Y.md versions/AZTEC vX.Y Model Documentation.pdf
git commit -m "[Useful description of changes]"
- Push your changes, wait a minute, then check to make sure the online version updated correctly