A Sphinx documentation template for creating advISO-branded guides, hosted on Read the Docs. Each guide in the advISO series is built from a fork of this repository.
-
Fork this repository on GitHub.
-
Rename the forked repo to match your guide (e.g.
advISO_validation_guide). -
Edit the guide settings at the top of
docs/conf.py. These are the only values you need to change to brand your guide:Setting Description Example guide_nameFull title shown in the browser tab and index page 'advISO Validation Guide'guide_subtitleShort name that appears on the logo and buttons 'Validation Guide'sidebar_colorHex colour for the sidebar and button backgrounds '#5C9AD0'github_repoURL of your GitHub repository 'https://github.com/advISO-project/advISO_validation_guide'authorAuthor name for metadata 'advISO'copyrightCopyright line '2026, licensed under CC BY-NC-SA 4.0'release/versionGuide version numbers '1.0'/'1.0.0'under_developmentShow the "under development" banner on the index page TrueorFalse -
Update the content:
File Purpose docs/intro.mdIntroduction section included on the index page docs/toc.mdTable of contents — add your pages here docs/pages/example_page.mdA sample content page — rename or replace with your own docs/contributors.ymlList of authors, maintainers and contributors -
Connect to Read the Docs. Import the new repository on readthedocs.org. The included
.readthedocs.ymlhandles the build configuration automatically.
The logo, buttons, and sidebar CSS are generated automatically at build time from the settings in conf.py — you never need to edit these files by hand.
| Asset | Generated from | Output |
|---|---|---|
| Sidebar logo | base/logo_base.png + guide_subtitle |
images/logo.png |
| Horizontal button | base/button_base.png + guide_subtitle + sidebar_color |
brand/button_horizontal.png |
| Website banner (16:9) | base/logo_base_16x9.png + guide_subtitle + sidebar_color |
brand/button_website.png |
| Sidebar CSS | sidebar_color |
custom.css |
| Contributors page | contributors.yml + github_repo |
pages/contributors.md |
| Brand settings snippet | guide_subtitle + sidebar_color |
_brand_assets/_settings.html |
The generation scripts are in docs/_scripts/. The base images in docs/_static/base/ are shared across all guides and should not be modified.
Generated files are listed in .gitignore — they are rebuilt on every Sphinx run and should not be committed.
docs/
├── conf.py # Guide settings and Sphinx configuration
├── index.md # Index page
├── intro.md # Introduction (edit this)
├── toc.md # Table of contents (add your pages here)
├── requirements.txt # Python dependencies for Read the Docs
│
├── pages/ # Content pages — add your guide pages here
│ └── example_page.md
│
├── _includes/ # Shared fragments (do not edit)
│ ├── guide_series.md
│ └── project_partners.md
│
├── _brand_assets/ # Brand assets page (hidden, accessible via direct URL)
│ └── brand_assets.md
│
├── _scripts/ # Build-time asset generation
│ ├── generate_logo.py
│ ├── generate_buttons.py
│ └── generate_contributors.py
│
├── _templates/ # Custom Jinja2 templates
│ └── footer.html # Footer with CC license and contributors link
│
├── _static/
│ ├── base/ # Template base images (do not modify)
│ │ ├── button_base.png
│ │ ├── logo_base.png
│ │ └── logo_base_16x9.png
│ ├── brand/ # Generated brand assets (gitignored)
│ │ ├── button_horizontal.png
│ │ └── button_website.png
│ ├── images/ # Content images
│ │ ├── logo.png # Generated sidebar logo (gitignored)
│ │ ├── guide_series_button_horizontal.png
│ │ └── partner_logos.png
│ ├── custom.css # Generated sidebar CSS (gitignored)
│ └── extra.css # Guide-specific styles (footer arrows, etc.)
│
├── contributors.yml # Authors, maintainers & contributors
Pages are written in Markdown using MyST, which adds Sphinx directives to standard Markdown. reStructuredText (.rst) files are also supported. The template includes several Sphinx extensions:
- MyST Parser — write Markdown instead of reStructuredText
- sphinx-design — grids, cards, tabs, badges
- sphinx-tabs — tabbed content blocks
- sphinx.ext.ifconfig — conditional content (used for the "under development" banner)
To add a new page, create a .md or .rst file in docs/pages/ and add it to the toctree in docs/toc.md.
Each guide has a contributors page that is auto-generated from docs/contributors.yml at build time. The page is linked from the site footer and displays GitHub profile cards for everyone involved.
Edit docs/contributors.yml to list the people behind your guide:
intro: >
A short paragraph introducing your contributors page.
authors:
- name: Jane Smith
github: janesmith
maintainers:
- name: advISO Project
github: advISO-project
contributors:
- name: John Doe
github: johndoeEach person needs a name and their github username. The username is used to fetch their profile picture and link to their GitHub page. All three sections (authors, maintainers, contributors) are optional — omit any you don't need.
cd docs
pip install -r requirements.txt
make htmlThe built site will be in docs/_build/html/. Open index.html to preview.
A hidden page at _brand_assets/brand_assets.html in the built docs shows all generated assets for review. It is not linked from the navigation — share the direct URL with anyone who needs the logos.
This project is licensed under CC BY-NC-SA 4.0. See LICENSE.md for details.