See GitHub Creating a Repository from a Template.
Replace this with the name of your new repository derived from this template.
Specifically will need to update the following files:
Makefile mkdocs.yml pyproject.toml README.mdIn the Settings for your repository in GitHub.com under the Pages section, ensure the
sourceis set to Deploy from a branch and selectgh_pagesas the branch.
The documents in this repository are published to https://gig-cymru-nhs-wales.github.io/documentation-site-template/.
There are several ways to set up your development environment:
The fastest way to start contributing:
This provides:
- A pre-configured VS Code environment (with useful extensions installed)
- All required dependencies installed
- Automatic port forwarding for preview
- Git integration
Once you have successfully launched Codespaces you can run the development server from the VS Code Terminal:
make runYou will be prompted to Open in Browser to view the locally running site.
See the Quickstart Guide for more information.
Note: It can take a few minutes to fully launch Codespaces the first time, but is faster on subsequent launches as the environment is then cached.
Prerequisites:
- Python 3.11 or higher
- uv for package/env management
- Git
Setup Steps:
Clone the repository:
git clone https://github.com/GIG-Cymru-NHS-Wales/documentation-site-template.git
cd documentation-site-templateInstall uv (if not already installed):
curl -LsSf https://astral.sh/uv/install.sh | shSet up environment and dependencies:
uv syncStart the development server:
uv run mkdocs serveView the documentation at: http://127.0.0.1:8000/
If you prefer using containers:
Prerequisites:
Setup Steps:
Build the container:
podman build --tag mkdocs .Run the development server:
podman run -p 8000:8000 mkdocsView the documentation at: http://127.0.0.1:8000/
For those familiar with Make:
# See available commands
make help
# Full build and serve
makeView the documentation at: http://127.0.0.1:8000/
Our documentation is built using Material for MkDocs.
- Choose your preferred development environment from above
- Create a new branch for your changes
- Make your changes
- Test your changes locally
- Submit a Pull Request
This repository is licensed under the MIT License