git checkout -b <branch-name>
To the .qmd
file add a YAML header with a title and subtitle.
---
title: Contribute to the docs
subtitle: "How to add a new page to the documentations site using Quarto?"
---
Open the _quarto.yml
configuration file and find the sidebar
config code.
sidebar:
- id: nav
style: "floating"
collapse-level: 3
align: left
contents:
Under the contents:
object add a new section (if required), a string lable for your page, and a link to the .qmd
file itself.
- section: "RAP"
contents:
- text: "Reproducible Analytical Pipelines"
file: intro-to-rap.qmd
::: {.callout-warning appearance="simple" collapse="false"}
Remember to render your changes locally using R-Studio before publishing :::
Commit your changes locally
git commit -m 'Added new page to docs'
Then push your changes to the remote branch
git push origin <branch-name>
Finally, open a Pull Request (PR) https://github.com/nhsengland/nhs-r-reporting/pulls