Skip to content

Contributing

Code

  1. Branch from main using feat/, fix/, or docs/ prefixes.
  2. Keep DAG files in dags/ and shared logic in helpers/ so Airflow does not parse helpers as DAGs.
  3. Run bash scripts/validate.sh (compileall) before opening a merge request.
  4. Do not commit .env, API keys, or environment_variables.json.

Documentation

Airflow pages live in this repo under docs/. They are copied into the GraphRAG MkDocs site at Pages build time and published at a single GitLab URL.

  • Match the GraphRAG tone: short sentences, tables, admonitions, Mermaid where a diagram helps.
  • Use relative links between Airflow pages (../getting-started.md). Links to GraphRAG pages use ../getting-started.md from docs/index.md after copy (one extra ../ from nested folders, e.g. ../../operations/docs.md).
  • After merge to main, republish from the GraphRAG project (push main or Run pipeline). Pages git-clones this docs/ folder; Airflow CI does not need to pass. If the clone 404s, check the job-token allowlist (CI/CD).

To preview the full branded site locally, clone GraphRAG as a sibling and run:

cd ../rbtl_graphrag_gitlab
bash scripts/sync_airflow_docs.sh
source venv/bin/activate
mkdocs serve