Contributing
Anyone in the lab can edit this site. Small fixes can be made in the browser on GitHub. Bigger changes are easier on your own computer.
GitHub Pages sites can be read by anyone with the link. Never put passwords, app tokens, server addresses that should stay private, or unpublished data on any page.
Quick fix in the browser
Click Edit this page (under the table of contents on the right) on any page. GitHub opens the source file. Make the change and open a pull request. The site rebuilds after the pull request is merged into main.
Working on your own computer
- Install Quarto. RStudio and Positron already include it.
- Clone this repository.
- From the repository folder, run:
quarto previewThe site opens in your browser and reloads every time you save a file.
Adding a page
- Copy
_templates/page.qmdinto the folder for the section it belongs in, for exampleprotocols/fruit-firmness.qmd. Use lowercase file names with hyphens. - Fill in
title,description, andorderat the top of the file. - Save. The page appears in the sidebar on its own. You do not need to edit
_quarto.yml.
To add a whole new section, make a new folder containing an index.qmd. That page’s title becomes the sidebar heading, and its order sets where the section appears.
Images
Put images in an images/ folder inside the section and always write alt text. See Quarto syntax for the format.
Pages that run code
If a page runs R or Python code, render it on your computer before pushing (quarto render path/to/page.qmd) and commit the _freeze/ folder along with your page. The GitHub build reuses those stored results and never runs your code, so it does not need R, Python, or your packages.
Submitting changes
git switch -c fix-nextcloud-page # new branch
# ...edit, preview, save...
git add .
git commit -m "Update Nextcloud folder structure"
git push -u origin fix-nextcloud-pageThen open a pull request on GitHub. Once it is merged into main, the site publishes in a few minutes.
Writing guidelines
- One topic per page.
- Write steps that someone new can follow without asking you.
- Link to the source of truth (Breedbase, a pipeline’s own repository) instead of copying details that change.
- If a step has a common failure, add a Troubleshooting section rather than burying it in the steps.