Skip to content

feat(docs): move the docs site to Zensical with a full nav and version #5152

Closed
1 of 1 issue completed

Description

@dan-petty

Problem or Motivation

The owner wrote on 2026-11-12: "my github pages seem out of date or limited as well". On the site today:

  • No page shows a version, a commit or a build date.
  • 53 of 99 pages have no link path from the home page or the nav, among them all 42 docs/commands/*.md pages.
  • The root documents are not on the site, and 183 relative links to repository files go to a 404 page.
  • The site has no search.
  • docs/MCP_TOOLS.md has 149 broken anchors, also on github.com: src/devops_cli/docs/generator.py:638 writes #ai-ask-jev, and GitHub writes the id ai_ask_jev.
  • The builder actions/jekyll-build-pages v1.0.13 is of 2024-08-06.

Proposed Solution & Architectural Design

  • Add zensical==0.1.1 to a docs dependency group in pyproject.toml.
  • Add devops docs site build [--serve] [--strict]. It stages the site source in .data/site-src/ (gitignored):
    • Copy docs/, but not docs/agent/, docs/_layouts/ or docs/_config.yml.
    • Copy README.md, ARCHITECTURE.md, CONTRIBUTING.md, SECURITY.md, RELEASE_CYCLE.md, CONTEXT.md, AGENTS.md and CHANGELOG.md to the root of the stage. The stage keeps the repository paths, so each relative link that works on github.com also works on the site.
    • Change a relative link to a file outside the stage (for example ../src/devops_cli/...) into https://github.com/<repo>/blob/<sha>/<path>. Zensical does not run MkDocs hooks, so no plugin can do this.
    • Write the build data into the staged config: the version from pyproject.toml, the short SHA with a link to the commit, the commit date and the build time in UTC.
    • Run zensical build, or zensical serve with --serve.
  • Add zensical.toml at the repository root:
    • site_url, repo_url and edit_uri, so each page has a "view source" button.
    • The toc extension with the pymdownx.slugs GitHub slugs, and the Mermaid custom fence of pymdownx.superfences.
    • A palette that follows the system theme, with a toggle.
    • validation with invalid_links and invalid_link_anchors. --strict fails the build on a warning.
    • The awesome-nav plugin with globs: Home (README.md), Guides (the guide pages, docs/roadmap/, docs/cheatsheets/), CLI reference (docs/commands/*.md, then "All commands on one page" for CLI_REFERENCE.md), Reference (Configuration, Environment variables, Errors, Telemetry, MCP tools, Knowledge base), Decisions (docs/adr/), Project (the root documents), Releases (CHANGELOG.md).
  • Add overrides/partials/footer.html. It shows the build data on each page and adds <meta name="devops-build-commit" content="<sha>">.
  • Fix generator.py:638: the MCP tool links use the heading id that GitHub writes (keep the underscores). Write docs/MCP_TOOLS.md again.
  • .github/workflows/pages.yml: build with uv run devops docs site build --strict, then upload and deploy as today. Trigger on a push to main that changes docs/**, the 8 root documents, zensical.toml, overrides/**, pyproject.toml or the workflow, and on workflow_dispatch. A release changes CHANGELOG.md and pyproject.toml, so each release builds the site. Check out with tags.
  • .github/workflows/docs-site.yml: run the same command with --strict on the same paths. Remove the Jekyll container step and the lychee step: the strict build checks the internal links and anchors, and feat(docs): check links and anchors of all documents with rumdl #4899 checks the sources with rumdl. Keep the checks for index.html and for no .md file in the output.
  • Delete docs/_config.yml, docs/_layouts/default.html and docs/assets/css/style.css. Keep docs/assets/css/tokens-*.css for feat(docs): build the docs site theme from the design tokens #4745.
  • devops gh pages verify reads zensical.toml in place of docs/_config.yml (src/devops_cli/github/pages.py:147).
  • Change the documents that name Jekyll or docs/_config.yml (for example docs/SDLC.md and the comment at the top of pages.yml).

Target Subsystem

Documentation (docs/, zensical.toml, overrides/, src/devops_cli/docs/, src/devops_cli/commands/docs.py, src/devops_cli/github/pages.py) and CI/CD (.github/workflows/pages.yml, .github/workflows/docs-site.yml).

Existing Tool Considered

Zensical 0.1.1 (MIT): native search, nav, Mermaid, link and anchor validation, strict mode, template overrides and the awesome-nav plugin. The trial build of 2026-11-12 made 107 pages in 5.03 s with README as the home page and a sitemap. Rejected: Material for MkDocs (end of life 2027-05-05), Sphinx with Furo (MyST and include directives), Astro Starlight (front matter on each page, Node), Jekyll (stale builder, a theme and front matter on each page), mike (a second deploy path). Custom code: the stage step with the link change and the build data, about 120 lines, and a 15-line footer template. Cost (estimate): about 350,000 tokens and 1 day elapsed.

Acceptance Criteria

  • uv run devops docs site build --strict exits 0 and reports 0 warnings.
  • A test stages a fixture tree and checks the link change: a link to src/x.py becomes a GitHub URL at the given SHA, and a link to docs/TESTING.md from README.md stays relative.
  • A test fails when a staged page is in no nav tab.
  • Each built page holds the version, the short SHA and the build time, and the devops-build-commit meta tag.
  • docs/MCP_TOOLS.md has 0 links to an anchor that GitHub does not write.
  • The Pages workflow and the Docs Site Build check each finish in under 5 minutes.
  • The live site has a search box and the 7 nav tabs after the merge.

Dependencies

None. After the merge, the owner sets the Pages source to GitHub Actions (owner step 1 of the tracker).

Source: #5151

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    source/agent
    on Nov 12, 2026
  2. added
    type/feature
    scope/docs
    status/new
    value/high
    effort/high
    on Nov 12, 2026
  3. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 12, 2026
  5. added
    status/in-review
    and removed
    status/in-progress
    on Nov 12, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  7. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor
  8. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 19:05 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/highpriority/p2-mediumscope/docssource/agenttype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions