Deploy To Private Organization Repository
This runbook publishes adamacs_documentation as a private repository and keeps it maintainable for lab operations.
1) Create private repository in GitHub org
In GitHub org
your-org, create repositoryadamacs_documentation.Set visibility to Private.
Do not initialize with default files if this local repo already exists.
2) Push local repository
From local repo root:
git remote add origin git@github.com:your-org/adamacs_documentation.git
git add .
git commit -m "Initial RTD documentation import"
git push -u origin main
If origin already exists, update it:
git remote set-url origin git@github.com:your-org/adamacs_documentation.git
3) Repository hardening
Recommended baseline:
Enable branch protection on
main.Require pull requests for direct changes.
Require status checks before merge.
Enable secret scanning and push protection.
Add CODEOWNERS for infra + ingest maintainers.
4) CI docs build (GitHub Actions)
Add a workflow to verify docs compile on every PR.
Suggested workflow name: .github/workflows/docs-build.yml
Key steps:
setup Python
install
requirements-docs.txtrun
sphinx-build -b html docs docs/_build/html
Optional: upload _build/html as workflow artifact.
5) Private Read the Docs deployment
Option A: Read the Docs with private project support
Connect GitHub account/org app in Read the Docs.
Import
your-org/adamacs_documentation.Confirm config file
.readthedocs.yamlis detected.Enable private documentation visibility.
Grant project access to lab members/groups.
Option B: GitHub-only workflow
If private RTD is unavailable, keep docs in GitHub and use local builds or CI artifacts.
6) Required files already present
.readthedocs.yamlrequirements-docs.txtdocs/conf.py
These should work for standard Sphinx + MyST + Mermaid builds.
7) Operational update cadence
When infra/process changes, update these pages together:
docs/infrastructure/architecture.mddocs/infrastructure/worker_population.mddocs/infrastructure/backups.mddocs/common/servers_access.md
8) Access model for lab users
Recommended role split:
Students: read access + PR permissions via forks/branches.
Operators/maintainers: write + merge rights.
Infra maintainers: admin rights for secrets, CI, and release controls.
9) Publish URL in lab channels
After first successful deployment, share one canonical docs URL in lab channels and pin it.
Include link in:
ingest onboarding message
analysis onboarding message
worker-policy announcement post