feat: add auto-update documentation system #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add a GitHub Actions workflow and sync script to automatically update docs.openadapt.ai when sub-package READMEs change.
Components
In this repo (openadapt-ml):
.github/workflows/trigger-docs-update.yml: Workflow that triggers on push to main (when README.md, docs/**, or CHANGELOG.md changes). Sends arepository_dispatchevent to the main OpenAdapt repo.For the main OpenAdapt repo (reference files included):
scripts/sync_package_docs.py: Python script that fetches READMEs from sub-packages and transforms them into MkDocs-compatible docs. This should be copied todocs/_scripts/in the main repo.docs/workflows/sync-package-docs.yml: Reference workflow file that should be copied to.github/workflows/in the main repo. Receives repository_dispatch events and creates PRs with updated docs.Documentation:
docs/auto-docs-update.md: Complete setup guide explaining how the system works and how to configure it.How It Works
Setup Required
After merging this PR:
contents:writepermission on OpenAdaptAI/OpenAdaptDOCS_UPDATE_TOKENto this repo (or as org secret)scripts/sync_package_docs.py->docs/_scripts/sync_package_docs.pydocs/workflows/sync-package-docs.yml->.github/workflows/sync-package-docs.ymlTest Plan
Generated with Claude Code