Commit 4677db8
feat(docs): scripts/ship-prep.sh — one-command pre-PR doc render chain (#315)
Closes #312.
Before this PR, every fork-ahead branch needed the same hand-driven
sequence after a rebase (or any test-count-affecting change):
1. sed-bump README's "<N> tests pass on `main`" phrase
2. python scripts/render-docs.py --target all
3. python scripts/render-llms-full.py
4. python scripts/render-api-docs.py
5. bash scripts/check-docs.sh
Five steps, four scripts, one sed. Easy to forget step 4 (API docs)
because the failure surfaces only as "website/reference/python-api/
is stale" in CI. Easy to forget the test-count bump because adding
or removing tests is incidental to the PR's intent.
ship-prep.sh bundles them into one invocation. The pytest-discovery
matches scripts/check-docs.sh's fallback chain (#311), so it works
from a worktree without an activated venv. The test-count bump is
idempotent — it's a no-op when the number is already correct, so
re-running after follow-up commits is safe.
--no-check skips the trailing check-docs.sh pass when you want to
inspect the regenerated diff before re-running checks.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f753ec4 commit 4677db8
5 files changed
Lines changed: 325 additions & 162 deletions
File tree
- docs
- scripts
- website/public
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
27 | 50 | | |
28 | 51 | | |
29 | 52 | | |
| |||
0 commit comments