This is the documentation site for OpenTrace, built with MkDocs Material and hosted on GitHub Pages.
- Framework: MkDocs with Material theme
- Hosting: GitHub Pages
- CI/CD: GitHub Actions
# Install dependencies
pip install -r requirements.txt
# Start local dev server (runs on http://127.0.0.1:3009)
mkdocs serve
# Build static site
mkdocs builddocs/- Markdown documentation filesmkdocs.yml- MkDocs configuration.github/workflows/- Deployment workflows
This project supports automatic preview deployments for all branches pushed to the repository.
- Main branch (
main): Deploys to the production site athttps://docs.opentrace.com/ - All other branches: Deploy to preview URLs at
https://docs.opentrace.com/preview/<sanitized-branch-name>/
Branch names are sanitized for the URL path - non-alphanumeric characters (except hyphens) are replaced with hyphens.
| Branch Name | Preview URL |
|---|---|
feature/new-docs |
https://docs.opentrace.com/preview/feature-new-docs/ |
claude/my-task-abc123 |
https://docs.opentrace.com/preview/claude-my-task-abc123/ |
fix_something |
https://docs.opentrace.com/preview/fix-something/ |
- Push your branch to the repository
- Wait for the GitHub Actions workflow to complete (check the Actions tab)
- Access your preview at:
https://docs.opentrace.com/preview/<your-sanitized-branch>/ - The deployment URL is also shown in the GitHub Actions workflow summary
Preview deployments are automatically cleaned up when their corresponding branch is deleted. Manual cleanup can also be triggered via the "Cleanup Preview Deployment" workflow if needed.
- Triggers on: push to any branch, PRs to main, manual dispatch
- Builds the MkDocs site and deploys to GitHub Pages
- Main branch: root deployment
- Other branches: preview deployment in
preview/<branch>/subfolder
- Triggers on: any branch deletion, manual dispatch
- Removes preview folders from gh-pages when branches are deleted