The documents in this repository are published to https://gigcymru.github.io/product-briefs/.
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 git@github.com:GIGCymru/product-briefs.git
cd product-briefsInstall 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/
This repository includes a GitHub workflow to automatically convert specific Markdown files into Microsoft Word documents. This is useful for sharing formatted documents with stakeholders who may prefer Word format.
The conversion is handled by Pandoc, a universal document converter.
The GitHub Action workflow is defined in .github/workflows/markdown-to-word.yml.
It is triggered on pushes to the main branch for files to be converted.
When triggered, the workflow creates a new release with the converted .docx files.
You can also run the conversion manually. This is helpful for testing changes to the templates or the style reference file before pushing to the repository.
Prerequisites:
- Pandoc installed on your local machine.
Command:
To convert the documents, run the following command from the root of the repository:
# Convert all markdown files to word documents
make wordThe appearance of the generated Word documents is controlled by a reference
document: .github/workflows/markdown-to-word-styles.docx. To change the
styling (e.g., fonts, headings, spacing), you can edit the styles within
this .docx file in Microsoft Word, save your changes, and commit the updated
file. Pandoc will then use the styles from this reference document during
conversion.
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