Skip to content

Add experimental lean-render build mode to drop repeated chrome - #2660

Merged
chalin merged 5 commits into
docsy:mainfrom
chalin:chalin-m24-lean-render-2026-0616
Jun 17, 2026
Merged

chalin merged 5 commits into
docsy:mainfrom
chalin:chalin-m24-lean-render-2026-0616

Conversation

@chalin

@chalin chalin commented Jun 17, 2026 •

Copy link
Copy Markdown
Collaborator
  • Contributes to Experimental shared chrome build mode (client-side chrome restoration) #2659
  • Adds an experimental td.lean_render build mode that drops repeated chrome (navbar, footer, left-nav) so a link checker reaches each unique link once instead of once per page.
  • Keeps one copy of each element where it can vary: navbar and footer on the locale home page, the left-nav on the locale's docs landing page.
  • Opt-in and a no-op when off: with lean render disabled (the default), the build output is byte-for-byte unchanged.
  • Adds a best-practices guide, a changelog highlight, and test coverage.

chalin added 5 commits June 17, 2026 11:12
- Contributes to docsy#2659
- Adds an experimental `td.lean_render` build mode that omits repeated chrome (navbar, footer, left-nav) so any HTML link checker reaches each unique link once instead of once per page:
  - Introduces `_partials/lean-render.html` as the gate (`"remove"` mode, case-insensitive; any falsy or unknown value leaves output byte-for-byte unchanged)
  - Wraps `navbar.html`, `footer.html`, and `sidebar.html` in the gate
- Documents the mode in the user guide as experimental (with a caution noting its assumptions, including the `version_menu_pagelinks` case) and adds a lean changelog highlight; the best-practices section now uses natural page order (drops stale `weight: 9` front matter)
- Renames the shared `mono-site` test harness to `fixture-site` and adds lean-render tests; updates `package.json` scripts and maintainer notes
- Fixes an incidental Goldmark capitalization and adds a `goldmark` cspell entry
- Softens the "full coverage" claim to "keep its repeated links reachable", since some chrome links fall outside lean render's assumptions
- Documents that the navbar language selector's per-page translation links stay covered by the destination locale's left-nav
- Notes that navbar/footer links are config-defined apart from the language selector and optional version menu
- Adds a fixture test that enables lean render through params.td.lean_render in site config, guarding the documented config path alongside the existing  environment overrideHUGOx
@chalin
chalin merged commit 487050c into docsy:main Jun 17, 2026
15 checks passed
@chalin
chalin deleted the chalin-m24-lean-render-2026-0616 branch June 17, 2026 15:51
chalin added a commit to chalin/docsy that referenced this pull request Jun 26, 2026
- Contributes to docsy#2615
- Adds an experimental "shared chrome build mode" section to the 0.16.0 release
  report, with a highlights entry, a release-summary bullet, and an Actions
  block; links to the Chrome build modes guide and flags it experimental
  (docsy#2659, docsy#2660, docsy#2662).
- Bumps the project Hugo build from 0.163.1 to 0.163.2 across both posts (docsy#2658).
- Documents the 0.163.2 PostCSS/Netlify ERR_ACCESS_DENIED fix and the niche
  Pandoc/reStructuredText build-failure change in the Hugo upgrade guide.
chalin added a commit to chalin/docsy that referenced this pull request Jun 26, 2026
- Contributes to docsy#2615
- Bumps last-main-commit to b3ce927 and adds ledger rows for the five commits
  since f312828: Hugo 0.163.2 (docsy#2658), the Russian locale sync (docsy#2590),
  lean-render (docsy#2660), the link-check matrix (docsy#2661), and the shared chrome
  build mode (docsy#2662).
- Records the shared chrome build mode as the headline experimental feature,
  routed as one blog section spanning docsy#2660 and docsy#2662, with docsy#2661 as internal
  tooling.
- Updates the Hugo theme summary and decisions for the 0.163.2 build bump.
chalin added a commit to chalin/docsy that referenced this pull request Jun 26, 2026
- Renames the stale "mono-site" wording to "fixture-site" in the 0.16.0 release post, matching the test harness renamed on main.
- Adds docsy#2660 and docsy#2662 to the changelog's experimental shared-chrome entry for traceability, matching the blog post and the other changelog entries.
- Updates the chrome-render.html comment from "configured chrome" to "config-defined" to match the published Chrome build modes docs.
chalin added a commit to chalin/docsy that referenced this pull request Jun 26, 2026
- Renames the stale "mono-site" wording to "fixture-site" in the 0.16.0 release post, matching the test harness renamed on main.
- Adds docsy#2660 and docsy#2662 to the changelog's experimental shared-chrome entry for traceability, matching the blog post and the other changelog entries.
- Updates the chrome-render.html comment from "configured chrome" to "config-defined" to match the published Chrome build modes docs.
@chalin chalin added this to the 0.16.0 milestone Jun 26, 2026
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