Skip to content

Docs in the site's layout: one header and footer for every Docs page - #200

Merged
pixari merged 3 commits into
mainfrom
docs-in-site-layout
Dec 4, 2026
Merged

pixari merged 3 commits into
mainfrom
docs-in-site-layout

Conversation

@pixari

@pixari pixari commented Dec 4, 2026

Copy link
Copy Markdown
Member

The last planned part of the redesign (OpenSpec docs-in-site-layout). It depends on the app's bundle change OpenTodoApp/OpenTodo#2484 (docs-content/), and stays a draft until a release carrying it is pinned in bundle.json. With v1.14.0 the build falls back to the shipped Docs, but the moved links and redirects then point at pages that aren't built, so CI fails until the pin moves.

What changes

  • Docs built by the site. When the pinned bundle has docs-content/:
    • Every Docs page is built in Base, with the same header (Docs current), footer and analytics tag as the rest of the site.
    • The layout has:
      • the Docs tree as a sidebar from 1024 px;
      • a Docs menu disclosure below 1024 px, which works without JavaScript;
      • a breadcrumb plus the version;
      • On this page, as a rail from 1280 px and a closed disclosure below that;
      • previous and next links.
    • Docs search runs over the site's own /search.json, and no request leaves the site.
    • Only the images and linked files of the bundle's docs/ are copied. docs.css, docs.js and the shipped HTML are not.
  • User help apart from contributor material:
    • Internals, Contributing and the HTTP API guide move to /developers/docs/<slug>/.
    • One nginx rule redirects each old address, written by node scripts/moves.mjs nginx from the bundle.
    • A post-build pass points every link at the new addresses (changelog, API reference, Docs bodies), and scripts/moves.mjs links did the same for src/.
    • /developers/ gains Contribute and internals.
  • Checks taught the new paths: the claim lint, the content schemas, the structure check's bundle detection, the browser page list and social cards for Docs pages.
  • Also: a fix for main's failing nightly. /themes/kind/* had 37 words without JavaScript, below the no-JS check's minimum of 40 (from Themes: a gallery of the theme library at /themes/ #193). Those pages now get a one-line lede.
  • Spec, design and tasks now match the shipped contract. Task 4.1 (pin the release) is the one left.

Checks run locally against v1.14.0 plus the generated docs-content/ (BUNDLE_DIR):

  • Build: 607 pages, with 252 under /docs/ and 25 under /developers/docs/.
  • check:dist: links, emoji, scripts, redirects (119), SEO (606 pages) and structure (8 rules) all pass.
  • npm test: 171 pass, including the new docs-content.test.mjs (missing page, unlisted page, unknown audience, trees, link rewrite, redirect rule).
  • astro check: 0 errors.
  • Playwright: 444 pass, including the new tests/docs.spec.ts. Three home-height failures are local-only: the preview banner that BUNDLE_DIR adds is 113 px tall, and the home parts are identical to live.

🤖 Generated with Claude Code

https://claude.ai/code/session_0187cnkWrsKAfqBSHAjmQvCp

pixari and others added 3 commits December 4, 2026 06:08
When the pinned bundle carries docs-content/ (OpenTodoApp/OpenTodo#2484), the
site builds /docs/ itself: the Docs tree as a sidebar from 1024 px and as a
Docs menu below it (no JavaScript needed), a breadcrumb with the version,
On this page, previous and next, and a search over the site's index.
Contributor pages and the HTTP API guide move to /developers/docs/ with one
redirect each, and every link to them points at the new address. Without
docs-content/ the shipped Docs are served as before.

Also: the theme kind pages get a line of text (main's no-JS check).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187cnkWrsKAfqBSHAjmQvCp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187cnkWrsKAfqBSHAjmQvCp
v1.15.0 carries docs-content/, so /docs/ is built by the site. The 44 Academy
entries are recorded on 1.15.0; 13 scenes follow its new interface (Display
options for layouts and Columns, Add for a reminder, Reusable list…, the
Period button, the Assignee list, the palette's search box, Finish review on
the last step). The 1.13.3 post links the Next view page, whose section left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187cnkWrsKAfqBSHAjmQvCp
@pixari
pixari marked this pull request as ready for review December 4, 2026 10:33
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Preview: download the built site for 9e544e9, unzip it and run npx serve in the folder (kept for 14 days).

@pixari
pixari merged commit 5cbec96 into main Dec 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant