Documentation Ops¶
This page is the source of truth for how the Reading between the Lines documentation site is built and published.
The site is a single MkDocs Material project in this GraphRAG repository. It has a hub homepage plus two product tabs: GraphRAG (markdown in docs/ here) and Airflow (markdown maintained in the data-collection repo and copied in at build time). GitLab Pages on this project is the only public URL.
Published URL: https://new-momentum.gitlab.io/reading-between-the-lines/rbtl_graphrag/
Local Tooling¶
Install (or update) the documentation toolchain in a virtualenv:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Key packages:
mkdocs– static site generatormkdocs-material– UI thememkdocs-mermaid2-plugin– renders Mermaid diagramsmkdocs-glightbox– lightbox support for screenshotspymdown-extensions– extra Markdown features (superfences, details blocks, etc.)
Airflow pages are not committed here. Sync them from a sibling checkout, then serve:
bash scripts/sync_airflow_docs.sh
python scripts/export_openapi.py # refresh API reference for MkDocs
mkdocs serve # live reload at http://127.0.0.1:8000
mkdocs build --strict
sync_airflow_docs.sh copies ../rbtl_data_collection_gitlab/docs/ into docs/airflow/. Override the source with AIRFLOW_DOCS_SRC if the Airflow clone lives elsewhere.
Run mkdocs build --strict locally before opening a merge request so broken links or missing Airflow pages fail fast.
Dual-repo workflow¶
| Content | Edit in | Lands on the site as |
|---|---|---|
Hub, GraphRAG pages, theme (rbtl.css, mkdocs.yml) |
this repo (docs/, mkdocs.yml) |
/, /getting-started/, … |
| Airflow pages | rbtl_airlflow docs/ |
/airflow/ |
The GitLab project slug is rbtl_airlflow (that spelling). Locally the clone is often named rbtl_data_collection_gitlab.
Do not commit a long-lived copy of Airflow markdown in this repo (docs/airflow/ is gitignored). Theme and navigation stay here so both products share one brand and one Pages job.
GitLab Pages pipeline (this repo)¶
The pages job on main:
- Clones the Airflow repo with
CI_JOB_TOKEN. - Runs
scripts/sync_airflow_docs.sh. - Exports OpenAPI (
scripts/export_openapi.py). - Runs
mkdocs build --strict -d public.
GitLab Pages then serves the public/ artifact.
The Pages job only git-clones Airflow main. It does not start the Airflow pipeline, and it does not wait for Airflow validate or deploy. If Airflow CI is red or skipped, the docs site still publishes as long as docs/ exists on Airflow main.
One GitLab setting (Owner/Maintainer, one-time): Airflow project → Settings → CI/CD → Job token permissions → allow inbound CI job tokens from rbtl_graphrag. Without that, a private clone returns 404.
Publishing after Airflow-only doc edits¶
There is no Airflow job that rebuilds this site. After docs/ is on Airflow main, republish from this project: push to GraphRAG main, or Build → Pipelines → Run pipeline on main. That Pages job clones the latest Airflow markdown and rebuilds.
Visual system¶
The docs theme follows the Reading between the Lines site (Kadence WordPress). Tokens live in docs/stylesheets/rbtl.css and are wired from mkdocs.yml.
| Token | Value | Use |
|---|---|---|
| Ochre | #e4a001 |
Primary actions, active nav, diagram accents |
| Gold hover | #ffd95e |
Hover / highlight |
| Charcoal | #1c1d1f |
Dark canvas, header, footer |
| Slate | #383e49 |
Secondary surfaces |
| Paper | #e9e7e7 |
Body text on dark, light-mode page |
| Blue | #1159af |
Light-mode links, info |
| Sky | #6eb6ff |
Dark-mode links |
| Orange | #f7630c |
Warnings, collage accent |
| Headings | Oswald | h1–h3, header wordmark, buttons |
| Body | Inter Tight | Running text |
| Code | Roboto Mono | Fences and inline code |
Brand images used by the theme live in docs/assets/brand/ (no spaces in filenames). The source dump in docs/website/ is not linked from nav. Dust texture is limited to header, footer, and the homepage hero; collage photos are framed art, not page wallpaper.
When changing colours or type, update rbtl.css and this table together. Do not switch Material's named primaries (indigo, amber, …) — they will not match ochre and sky blue.
Contribution Tips¶
- GraphRAG: keep content changes close to the code they describe; update
docs/in the same merge request. - Airflow: edit
docs/in the Airflow repo, merge tomain, then run this project's Pages pipeline (or push GraphRAGmain) so the clone picks up the new files. - Favor relative links so navigation works locally and on Pages.
- When adding diagrams, use Mermaid or put exports in
docs/assets/(GraphRAG) and reference them with relative paths.