Skip to content

Analyzer of Zero-emission Transportation Energy and Costs Documentation

Notifications You must be signed in to change notification settings

theicct/AZTEC-doc

Repository files navigation

AZTEC Documentation Update Guide

Set-up

  1. 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!
  2. Make sure you have access to the latest version of the shared Word document

Dependencies

  1. gh-md-toc
  2. pandoc version 2.10.0 - install with conda install -c conda-forge pandoc=2.10.0
  3. (Optional) Install a Markdown editor
  4. (Optional) Install Jekyll if you intend to test the documentation changes locally

Updating the documentation

  1. Write your updates in the AZTEC user guide
  2. Get review, as necessary
  3. If you added images to the AZTEC user guide document, add them to the assets folder in this AZTEC-doc repo
  4. 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 the README.md named v1.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'
  5. 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
  6. 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
  7. 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]"
  8. Push your changes, wait a minute, then check to make sure the online version updated correctly

About

Analyzer of Zero-emission Transportation Energy and Costs Documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published