Repository navigation
Commit 02216db
authored
ci(docs): build the docs site in Actions and stop committing generated docs (#2874)
* ci(docs): build the docs site in Actions and stop committing generated docs
Stop tracking docs build output and let .github/workflows/docs.yml build and
publish it, so docs PRs stop conflicting on docs/search-index.json and
docs/llms-full.txt (output computed from every page, never from the page the PR
touches).
- remove docs/*.html, docs/.nojekyll, docs/assets/, docs/llms.txt,
docs/llms-full.txt, docs/search-index.json from the tree (history kept) and
gitignore them; main now tracks only docs/*.md + docs/nav.json
- docs.yml: build on push to main for docs/** + workflow_dispatch, concurrency
group docs, contents:read on build, pages:write/id-token:write only on deploy,
upload-pages-artifact + deploy-pages, no commit-back, explicit --repo-url, and
if: github.ref == 'refs/heads/main' on both jobs so a manual run cannot publish
a branch
- docs-guard.yml: fail a PR that adds/modifies/copies/renames any docs path
except **/*.md and nav.json (deletions allowed — the migration is a deletion);
-z diff parsing so non-ASCII and newline-containing paths cannot slip through
- CONTRIBUTING.md/AGENTS.md: edit the .md, never run pi-docsite in a PR; drop
the now-dead generated-docs globs from .pr_agent.toml
Refs #2873
Assisted-by: PI (rits/deepseek-ai/DeepSeek-V4.1-Flash-1017)
Signed-off-by: Meni Yakove <myakove@gmail.com>
* fix(docs): harden the docs workflows per review
- guard: run on pull_request_target and read the changed paths from the REST API
instead of a git diff, so a PR can no longer rewrite the check that inspects it
(a pull_request workflow definition comes from the PR under review). Nothing is
checked out, so no PR code executes; typechanges and non-ASCII/newline paths are
covered as API statuses and JSON strings
- docs.yml: pin pi-docsite@4.18.0 — the build output is what `deploy` publishes, so
@latest would let an upstream release change the live site with no commit here;
persist-credentials: false on checkout so the token is not left in .git/config for
the third-party generator; rebuild when docs.yml itself changes (it carries the
tagline)
- CONTRIBUTING.md: pin the local build command to the same version
Refs #2873
Assisted-by: PI (rits/deepseek-ai/DeepSeek-V4.1-Flash-1017)
Signed-off-by: Meni Yakove <myakove@gmail.com>
* docs(contributing): document the Pages publishing prerequisites
The docs guard and the deletion of the generated output only make sense when
Pages builds from the workflow: record how to check build_type, that Pages keeps
serving the last successful deployment until the next one replaces it, that the
merge push is what triggers the first workflow deploy, and the live-URL check.
Refs #2873
Assisted-by: PI (rits/deepseek-ai/DeepSeek-V4.1-Flash-1017)
Signed-off-by: Meni Yakove <myakove@gmail.com>
* fix(docs): fail closed when a PR is too large for the files API
The changed-files endpoint returns at most 3,000 entries, so on a larger PR a
generated docs path could sit outside the returned set and the guard would report
a pass without having listed it. Read changed_files from the PR object first and
refuse to certify anything above the cap, with a message pointing at manual
review.
Refs #2873
Assisted-by: PI (rits/deepseek-ai/DeepSeek-V4.1-Flash-1017)
Signed-off-by: Meni Yakove <myakove@gmail.com>
* docs(contributing): verify the live page matches the build, not just HTTP 200
Pages keeps serving the last successful deployment when a new one fails, so a
200 on quickstart.html can describe the previous page. Document comparing the
served page with a local build of the merged commit, alongside the workflow run
lookup, and say why a status code alone is not a freshness check.
Refs #2873\n\nAssisted-by: PI (rits/deepseek-ai/DeepSeek-V4.1-Flash-1017)
Signed-off-by: Meni Yakove <myakove@gmail.com>
---------
Signed-off-by: Meni Yakove <myakove@gmail.com>1 parent 24c632f commit 02216db
40 files changed
Lines changed: 212 additions & 33283 deletions
File tree
- .github/workflows
- docs
- assets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
45 | 47 | | |
46 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | | - | |
| 55 | + | |
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
59 | 70 | | |
60 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
61 | 102 | | |
62 | 103 | | |
63 | 104 | | |
64 | 105 | | |
65 | 106 | | |
66 | | - | |
67 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
68 | 113 | | |
69 | 114 | | |
70 | 115 | | |
| |||
Whitespace-only changes.
This file was deleted.
This file was deleted.
0 commit comments