Description
Problem or Motivation
#5183 (closes #5152) moved the docs site from Jekyll to Zensical. The Pages source of the repository is now GitHub Actions, and .github/workflows/pages.yml is the one deploy path. But some commands, text and tests still serve the legacy branch-source build. On 2026-11-12 the owner said: "no need for old redirects, clean up legacy tooling and workflows and configs".
Evidence at origin/main 8fdeea0 (GET requests through uv run devops gh api):
repos/dan-petty/devops-cli/pagesgives"build_type":"workflow"and"source":{"branch":"main","path":"/docs"}. GitHub does not usesourcefor a workflow build.repos/dan-petty/devops-cli/pages/buildsstops at f4b1d73 (2026-11-12T17:29:45Z). That record is the last run of the GitHub-managed workflowpages-build-deployment(id 352778591). After it, pages.yml deployed 490513f, 6ef4336, ed1d2e2, 64b7199 and aeb33d6. None of these deploys is in/pages/builds. Thegithub-pagesdeployments continue to 8fdeea0 (18:52:36Z)..github/workflows/pages.yml:28hasworkflow_dispatch:. A manual run of pages.yml replaces a manual build request.
The legacy items:
devops gh pages build(src/devops_cli/commands/gh.py:1114-1134) and the MCP toolgh_pages_build(src/devops_cli/config/constants.py:360) sendPOST repos/{repo}/pages/builds. This endpoint requests a build from the branch source.devops gh pages builds(src/devops_cli/commands/gh.py:1080-1111) readsGET repos/{repo}/pages/builds. The list holds only legacy builds, so the command shows an old history as the current history.devops gh pages statusprints "Source Branch: main (path: /docs)" next to "Build Type: workflow" (src/devops_cli/commands/gh.py:1072).GitHubPagesInfosets the legacy defaultsbuild_type="legacy",branch="main"andpath="/"when the API omits a field (src/devops_cli/github/pages.py:27-29,73-75).- Text teaches the legacy build or names the deleted Jekyll files (see "Correct the text" below).
tests/github/test_github_pages.py:217-226also asserts thatdocs/holds no*.y*mlfile, as a guard against a returned Jekyll settings file. AGENTS.md rule 11 permits such a guard only when an outside constraint blocks the fix. No constraint applies. Also, pathlib glob matches dot files, so the guard refuses a correctdocs/.nav.yml.
Redirects: no file links to an old page address (*.html), and zensical.toml has no redirect plugin. This change adds no redirect.
Proposed Solution & Architectural Design
The project is alpha: delete the old path and add no shim. Plan the change in openspec/changes/<issue>-remove-the-legacy-pages-build-tooling/, and record the evidence above in ## Feasibility.
Delete the legacy build commands
src/devops_cli/github/pages.py:35-45,85-125,128-144: deleteGitHubPagesBuildInfo,_parse_single_build,pages_builds_args,pages_builds_requests,get_pages_builds,pages_build_args,pages_build_requestsandrequest_pages_build. Remove the imports that become unused (Any,ConfigDict,Field).src/devops_cli/commands/gh.py:71,73,74,76,1080-1134: deletepages_builds_cmd,pages_build_cmdand their imports.src/devops_cli/lang/en/help.py:1250-1251: deletepages_buildsandpages_build.src/devops_cli/config/constants.py:360: delete the MCP exposure row("gh", "pages", "build"). Keep rows 361 (status) and 362 (verify).tests/fixtures/swallowed_failures_ceilings.json:79: the deletion removes theexcept Exceptionatpages.py:123. Lower the ceiling ofpages.pyfrom 2 to 1 with the--lowercommand oftests/gate/swallowed_failures.py:28-31, in the same commit. Do not edit the file by hand.- Tests: delete
tests/github/test_github_pages.py:62-75,110-139and the imports at lines 14, 16 and 18. Deletetests/commands/test_gh_cmd.py:151-167. Intests/github/test_gh_project_views_pages_dry_run.py, delete lines 24-25, 38-39, 164-165 and 186-193 (REQUEST_PLAN_COMMANDSgoes from 10 to 8 rows). Delete"gh_pages_build"attests/ai/mcp/test_mcp_tool_registry.py:169.
Correct devops gh pages status
Write the tests first (AGENTS.md rule 4).
src/devops_cli/github/pages.py:22-32,60-82:build_type,branchandpathdefault toNone. Do not invent legacy values. Keep thebuild_typefield, because feat(roadmap): a Pages health step finds deploy faults and missing pages #5154 reads it.src/devops_cli/commands/gh.py:1068-1077: print "Source Branch" only whenbuild_typeislegacy. Forworkflow, print that a GitHub Actions workflow deploys the site.src/devops_cli/commands/gh.py:1056andsrc/devops_cli/lang/en/help.py:1244-1249: remove "branch" and "builds" from the help, for example "Inspect GitHub Pages deployment status, URL, build type, and HTTPS enforcement."src/devops_cli/ai/mcp/server.py:190: remove "build health" from the docstring ofresource://gh/pages/status. At lines 457-459, remove the fixed tool count "151". The count is already wrong, and this change makes it change again.src/devops_cli/github/pages.py:1: the module docstring says "build lifecycle". Change it to "GitHub Pages site status and local verification of the docs site settings."- Tests: change the payloads at
tests/github/test_github_pages.py:46-59,77-97andtests/commands/test_gh_cmd.py:132-148frombuild_typelegacytoworkflow. Add one case for each build type.
Correct the text
src/devops_cli/ai/knowledge_base/devops_cli/tasks/github_project_management.md:- Delete lines 50-54 (the two commands). Add the manual deploy:
devops gh api -X POST 'repos/{owner}/{repo}/actions/workflows/pages.yml/dispatches' -f ref=main. - Line 6: remove "build history, manual build dispatching".
- Line 21: the arrow to the deployment is
pages.yml: devops docs site build --strict, notdevops gh pages verify. - Line 131: remove "publishing root". Say that
docs/holds Markdown pages. - Line 132: the API field is
https_enforced, notenforce_https. - Line 183: remove
gh_pages_build. Line 192: remove "build health".
- Delete lines 50-54 (the two commands). Add the manual deploy:
docs/ROUTINE_TASKS.md:142: replace "thedocs/publishing root" with "thatdocs/holds Markdown pages". "Publishing root" is a term of the branch source.docs/DESIGN.md:78: the docs site CSS with color literals was the deleteddocs/assets/css/style.css. Say that feat(docs): build the docs site theme from the design tokens #4745 extends the rule to theextra_cssfile that it adds.docs/KNOWN_ISSUES.md:34: change{% raw %}${{ secrets.* }}{% endraw %}to${{ secrets.* }}. Zensical and GitHub do not run Liquid, so the tags show as text.README.md:40: on the Zensical site, README.md is the home page anddocs/index.mdis the Guides overview (.nav.yml:5-8). Change the label to "Documentation Overview (docs/index.md)". This line is not in the command matrix of docs(cli): turn CLI_REFERENCE into an index of the command group pages #5163.docs/adr/0024-the-project-owns-its-design-tokens-in-the-dtcg-format-and-style-dictionary-builds-them.md: add an amendment line under the title, in the form of ADR 0012:5: "Amended on 2026-11-12 (#5152): Zensical builds the docs site, not Jekyll. The site build does not run Style Dictionary, so decision 4 holds." Do not change line 20.tests/github/test_github_pages.py:217-226: keep theverify_pages_configuration(REPO_ROOT)assertion. Remove thedocs/*.y*mlassertion and the Jekyll sentence of the docstring.
OpenSpec deltas
command-dry-run-class: MODIFIED requirementgh-project-views-pages-request-plans. "ten" becomes "eight". The scenario "Dry run on gh pages build" becomes "Dry run on gh pages status" withdevops gh pages status --dry-run.github-pages: ADDED requirement.devops gh pages statusshows the source branch only for alegacybuild.
Regenerate (never edit by hand)
uv run devops docs generate:docs/MCP_TOOLS.md,docs/commands/gh.mdanddocs/CLI_REFERENCE.md.uv run pytest tests/ai/mcp/test_mcp_tool_listing.py --snapshot-update --snapshot-file-lock: the MCP listing snapshot.
Out of scope
- docs(cli): turn CLI_REFERENCE into an index of the command group pages #5163 owns the README command matrix,
devops docs --sync-readmeand the form ofdocs/CLI_REFERENCE.md. The matrix lists only the groupdevops gh pages, so this change does not touch it. - feat(docs): build the docs site theme from the design tokens #4745 owns the token CSS of the docs site and its map to the Zensical theme.
- Records stay as they are:
CHANGELOG.md, the superseded ADRs 0010, 0011 and 0012,docs/agent/archive/,openspec/changes/archive/and the frozen fixtures intests/fixtures/. .github/workflows/docs-site.yml:73-85("Verify Built Site Pages") stays. The specgithub-pages(lines 23-31) requires it, and it passed on the Zensical builds.
Target Subsystem
SDLC, Git & PR Governance (devops gh pages, the docs site and the knowledge base).
Existing Tool Considered
- The GitHub Actions
workflow_dispatchof.github/workflows/pages.ymlreplacesdevops gh pages build. - The GitHub REST endpoints
actions/workflows/pages.yml/runsanddeployments?environment=github-pagesreplacedevops gh pages builds.devops gh apisends them under the rate limiter. - This change builds nothing, so it has no build cost. A short command for the deploy history (for example
devops gh run list --workflow, the gh name) is a separate item if a person asks for it.
Acceptance Criteria
uv run devops gh pages --helplists onlystatusandverify.git grep -n -E 'pages_builds?\b|request_pages_build|get_pages_builds|GitHubPagesBuildInfo' -- src tests docs openspec/specs ':!docs/agent/archive'returns nothing.git grep -n -E 'gh pages builds?\b|pages/builds' -- . ':!CHANGELOG.md' ':!openspec/changes/archive' ':!docs/agent/archive' ':!tests/fixtures' ':!tests/github/test_github_rate_limiter.py'returns nothing.git grep -n -i jekyll -- . ':!CHANGELOG.md' ':!openspec/changes/archive' ':!docs/adr' ':!docs/agent/archive' ':!tests/fixtures'returns nothing.git grep -n -E '\{%-? ?(end)?raw' -- . ':!CHANGELOG.md' ':!openspec/changes/archive'returns nothing.git grep -n -i -E 'publishing root|enforce_https|build health|build history|manual build dispatching' -- src docs ':!docs/agent/archive'returns nothing.uv run devops gh pages status --repo dan-petty/devops-cliprints "Build Type: workflow" and no "Source Branch" line.uv run pytest tests/github/test_github_pages.py tests/commands/test_gh_cmd.py tests/github/test_gh_project_views_pages_dry_run.py tests/github/test_github_contract.py tests/ai/mcp tests/docs/test_docs_knowledge_base_argv.pypasses. The status tests hold one case forworkflowand one forlegacy.uv run devops ci --check --only swallowed-failurespasses, andtests/fixtures/swallowed_failures_ceilings.jsongivessrc/devops_cli/github/pages.pythe ceiling 1.uv run devops docs checkanduv run devops openspec checkpass. Afteruv run devops docs generate,git status --porcelain -- docsis empty.git diff origin/main -- 'docs/adr/0024-*.md'shows only added lines, and one added line is the amendment that names feat(docs): move the docs site to Zensical with a full nav and version #5152.- The required checks and the Docs Site Build check (
docs-site.yml) pass on the pull request. After the merge,uv run devops gh api 'repos/dan-petty/devops-cli/actions/workflows/pages.yml/runs?branch=main&per_page=1' --jq '.workflow_runs[0].conclusion'printssuccess.
Related
- feat(docs): move the docs site to Zensical with a full nav and version #5152 and feat(docs): move the docs site to Zensical with a full nav and version #5183: the move to Zensical.
- docs(cli): turn CLI_REFERENCE into an index of the command group pages #5163: owns the README command matrix,
devops docs --sync-readmeand the CLI reference index. The pull request that merges second runsdevops docs generateagain. - feat(docs): build the docs site theme from the design tokens #4745: owns the token theme on Zensical.
- feat(roadmap): a Pages health step finds deploy faults and missing pages #5154: its Pages health step must read the pages.yml runs or the
github-pagesdeployments, not/pages/builds. - fix(docs): the pages site has a home page, its layout links reach built pages, and it publishes no source markdown #2070: the built-site check that stays in
docs-site.yml. - Owner direction 2026-11-12: no redirects for old page URLs; clean up legacy tooling, workflows and configs.
Source: #5152
Activity
dan-petty commentedon Nov 12, 2026
Cleanup of dead code that misleads users but does not block a workflow or break a build.Both concern GitHub Pages build paths; #4656 added the workflow build, this candidate removes the now-obsolete branch-build commands.