mkdocs-update¶
Updates MkDocs documentation sites to reflect the current state of the codebase.
| Property | Value |
|---|---|
| Type | Scheduled |
| Default hour | 4 AM (schedules.mkdocsUpdateHour) |
| Uses AI | Yes |
| Backend | Claude (configurable via jobAi) |
| Config key | schedules.mkdocsUpdateHour |
What it does¶
The mkdocs-update job runs daily to keep MkDocs-based documentation sites in sync with source code changes. It uses AI to read recent git history, understand what changed, and update the Markdown files under the MkDocs docs directory accordingly.
Trigger¶
Scheduled to run once daily. Also runs on startup if the scheduled hour has passed since the last run.
Skips processing when:
- An open PR with a
yeti/mkdocs-update-*branch already exists for the repo - The repo does not have a
mkdocs.ymlormkdocs.yamlfile
Labels¶
This job does not interact with labels.
How it works¶
- Check for existing PR -- Skips if any open PR has a
yeti/mkdocs-update-*branch - Create worktree on branch
yeti/mkdocs-update-<datestamp>-<hex4> - Check for MkDocs config -- Skips repos without
mkdocs.ymlormkdocs.yaml - Run AI -- Instructs the AI to:
- Read
yeti/OVERVIEW.mdfor architecture context - Read the MkDocs config to understand the docs structure
- Scan recent git history for source code changes
- Read changed source files to understand what actually changed
- Update only Markdown files under the docs directory (and
mkdocs.ymlif nav changes are needed) - Commit with message
docs: update mkdocs content [mkdocs-update]
- Read
- Push and create PR -- Only if there are actual tree differences. PR titled
docs: update mkdocs content for <repo>
Source of Truth¶
The AI is instructed that source code is the single source of truth. When documentation conflicts with the code, the code is always right. The AI does not invent features or behaviors -- it only documents what exists.
Auto-merge Path¶
MkDocs update PRs created by this job are automatically merged by the auto-merger when:
- All changed files are under the docs directory or end in
.md - CI checks pass or no checks are configured
Related jobs¶
- doc-maintainer -- Updates
yeti/AI-facing documentation (separate from MkDocs user-facing docs) - auto-merger -- Merges the docs PRs this job creates