How to update this wiki
Date Updated: April 15, 2025 8:50 PM
The lab wiki is hosted on the lab’s Github page. These steps will take you through how to update docs and the website:
- Have a Github account
- Get added to the lab’s github (the lab is an organization with different members)
Make sure you have git installed and your git authentication enabled
Not sure? Click here to see a tutorial on getting git credentials
In the terminal run
git clone https://holmeslab.github.io/holmeslab.git
Or, if you already have it cloned, update to the most recent version by going into the folder where you have the repository cloned and running
$
git checkout main
Make sure you’re on the correct branch$
git pull --rebase origin main
This pulls the most updated version of the repo
- Now navigate to the /docs folder
- Open the doc you want to edit, or make a new markdown doc
- You can make a markdown doc by opening any code editor and creating a new text file, and saving it as .md for markdown
- Write your doc
- Markdown files are written with just normal text.
- Any additional formatting (headings, tables, buttons, bullet lists, etc) can be found in the [markdown tutorial page][https://holmeslab.github.io/holmeslab/UsingThisWiki/UsingMarkdown].
- Figure out what folder/file you want this file to go under
- All files/folders are listed in the navigation bar on the left of the website
- The name that appears in the navigation bar which you want it to go under will be the name you’ll put in the “parent” field below
- SAVE the file named something URL-appropriate, since the page online will be (for example):
holmeslab.github.io/holmeslab/docs/folder-title/your-file
- Best practice is using “-“, all lowercase, as short as possible, descriptive
- In this case, the file is in /docs/, in a folder called folder-title/, named your-file.md
- Add this at the TOP of your markdown file (This is because the site is a Jekyll site. Read more about page layouts on the Jekyll Documentation)
--- title: your-file #This is the title which will appear on the nav bar #This doesn't have to match any content within the file #This SHOULD be the name of the file-- for clarity and consistency, but nothing will break if it isn't #This is # nav_order: 1 #This is the order they'll appear in the nav bar, lowest=first nav_enabled: true #default to true #if false the page will still be in the nav bar, # but the nav bar won't be *visible* on that page parent: folder-title # if this references an existing 'title' field, the doc will be # located as a nested doc under that doc in the nav bar ---
- If you want to make a new folder under /docs, make the folder, name it something URL-relevant formatted like
your-folder
, then within it make a file called index.md which contains the header (above),title=your-folder
, no parent. This will be then a part of the folders shown in the nav folder to the left, and is the file which will be shown when you click on a folder itself, instead of clicking on of the subfiles within the folder. - Save your markdown file into the relevant subfolderm, and make sure in the heading of your folder is a field
parent: your-folder
, otherwise it won’t show up as a page within that folder. Update the file back into the github repository like this
git add your_file.md
git commit -m "Descriptive note, for example: Adding file.md”
git push
- Github pages may take up to 10 minutes to display the changes