Modifying this guide
This guide is built using Jekyll and Markdown. The structure is defined by the header of each file in the docs folder.
All modifications
You should, if possible, create a new branch in the current repository, if you have the rights to. Otherwise, the edit link will create a fork. In both cases, submit a pull request with sufficient information to assess what you are trying to do.
Modifying an existing page
To modify an existing page, simply edit the Markdown file in the docs folder. The header of the file defines the title of the page, its parent in the menu, and its order in the menu. A link to modify each page is at the bottom of the page, as Edit on GitHub.
Adding a new page
To add a new page, create a new Markdown file in the docs folder. The header of a new file that should appear in the Procedures menu should look like this:
---
title: New Page
parent: Procedures
nav_order: 5
---
# New Page
By convention, you should also create this file in the docs/procedures folder; however, that is not strictly necessary. You can influence the order in which the file is listed within the Procedures menu by changing the nav_order value. Lower values will appear higher in the list.
Moving an existing page
If you need to move an existing page, you should change the parent value in the header of the file, as well as the actual location of the file in the docs folder.
Linking to other pages
This site does not use pretty/trailing-slash permalinks. A page at docs/<subdir>/<Name>.md is always published at /docs/<subdir>/<Name>.html (with the site’s baseurl in front of that). When linking to another page in this repo, always include both the docs/ segment and the .html extension:
- From a page in the same subfolder, a relative link like
[text](Other-Page.html)works. - From a page in a different subfolder, use a relative link through
../, e.g.[text](../emails/Some-Template.html). - For an absolute link (used on the homepage,
index.md), use/LDI-Research-Aide/docs/<subdir>/<Name>.html, or better, the Liquid form/LDI-Research-Aide/docs/%3Csubdir%3E/%3CName%3E.html, which also works correctly if the site is ever moved to a different base URL. - Never link with a bare
.mdextension, a trailing slash instead of.html, or without thedocs/segment — none of those resolve on this site. A CI check (see.github/workflows/ci.yml) will catch this class of mistake on every pull request.