Updating this documentation
Last modified: 2023-05-06
The documentation on this site is rendered automatically by GitHub Pages.
Adding a new page to this documentation is as simple as creating a markdown file (extension .md).
Important things to remember:
- Documentation markdown files must be created inside of the
docs/directory in the GitHub reposity for this project - Do your best to keep the
docs/directory organized nicely. Some general organization conventions:- Keep file names short
- Keep the directory organized based on topics
- For example, should a group of files emerge that relate to a similar topic, please create a subdirectory with a name associated with that topic and save those related files within that directory.
Then make sure to do the below:
- Make a top-level page for that sub-directory that points to all of those related files
- Update any paths referencing files that had already been created, as they may have been broken by reorganizing the directory
- Include a
titlein the “front matter” to create a title that formats nicely.- To do this simply include the below code at the very top of your markdown file:
--- title: "The title for your documentation page goes here" --- - Note: The quotes are needed in the title above
- To do this simply include the below code at the very top of your markdown file:
- Include the date when you created/updated that documentation page
Include the
last_modifiedvariable in the front matter with the date you update the file. Then, right under it, include a “Last modified” note. It should look like the below…--- title: "The title for your documentation page goes here" last_modified: "2022-11-13" --- > Last modified: {{ page.last_modified | date: "%Y-%m-%d"}}What we are doing is setting a text string that can be accessed via
page.last_modifiedand then it is converted into whatever format we dictate to the right of the pipe (date: "%Y-%m-%d"). - Do not create front matter for the landing documentation page ->
docs/README.md
Example markdown file
The page that you are currently reading is named documentation.md within the GitHub repository and begins in the following way:
---
title: "Updating this documentation"
last_modified: "2022-11-13"
---
> Last modified: {{ page.last_modified | date: "%Y-%m-%d"}}
The documentation on this site is rendered automatically by [GitHub Pages](https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site).
**Adding a new page to this documentation is as simple as creating a [markdown file](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) (extension `.md`).**
Important things to remember: ...