Skip to content

Give the download pages their own menu - #32

Closed
madolson wants to merge 1 commit into
mainfrom
download-sidebar
Closed

madolson wants to merge 1 commit into
mainfrom
download-sidebar

Conversation

@madolson

@madolson madolson commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

On valkey-io#774, zuiderkwast suggested each top-level section get its own sidebar, as the blog does, instead of putting Download under the docs menu. This prototypes that. The download pages move to the left-aside layout with a Download menu of their own: Overview, each release line newest first, and All releases. The docs menu doesn't change.

AI generated details

Change

  • templates/download-layout.html: the layout the four download templates now extend. It works out the current page's release line, from extra.version on a line page or extra.tag on a release page, and renders the menu.
  • download_menu (templates/macros/release.html:75-88): the menu. The lines come from the pages in content/download/versions/, sorted by major * 1000 + minor, so 9.10 would sort above 9.9 and a new line shows up once it has a page. It reuses the docs menu's link and current-page styles and doesn't use set_global.
  • download.html, release-section.html, release-line.html, release-page.html: each extends the new layout, and its title moves from the banner into the content as an <h1 class="docs-page-title">, as on docs pages. Nothing else in them changes.

What the menu marks current:

Page Marked
/download/ Overview (page)
/download/9.1/ Valkey 9.1 (page)
/download/releases/v9-0-3/ Valkey 9.0 (true)
/download/releases/v9-2-0-rc2/ Valkey 9.2 (true)
/download/releases/ All releases (page)

Against valkey-io#774

valkey-io#774 adds a Download entry to the docs menu (nav_download, a docs_menu_download_section config key, and changes to nav_menu). None of that is needed here, so the docs menu, config.toml and the styles are untouched, and valkey-io#742's "Documentation" menu title stays off the download pages.

valkey-io#774's branch predates valkey-io#741, which picks the latest release by version rather than date. Its preview, built before valkey-io#741 merged, shows 9.0.7 as the latest release instead of 9.1.3. The merged result keeps valkey-io#741's fix. This branch is cut from current main.

Behavior changes

  • The page title is in the content card instead of the purple banner.
  • Headings in the content now get the left-aside layout's compact uppercase h2 style, as on docs pages ("LATEST RELEASE: VALKEY 9.1.3", "SUPPORTED VERSIONS").
  • Below 1024px the menu comes after the content, as on docs pages on main.

All 62 download pages render the same content and title as main, apart from the layout. That was checked by diffing each page's main content.

Decisions

  1. Replace Give the download pages their own menu valkey-io/valkey-io.github.io#774 or push onto its branch. Proposal: push onto Give the download pages their own menu valkey-io/valkey-io.github.io#774's branch, so zuiderkwast's thread stays with the change.
  2. Put the docs menu above the content on phones and add previous/next topic links valkey-io/valkey-io.github.io#773 wraps the left-aside sidebar in a toggle labeled "Documentation menu" on narrow screens, which would also show on download pages. Proposal: make the label a block in left-aside.html that download-layout.html overrides with "Download menu".
  3. Menu title style. It uses the existing compact .left-aside h2. If Route /docs/ to the topics index and link Clients and Integrations in the docs menu valkey-io/valkey-io.github.io#742 merges, switch to its .docs-menu-title so "Download" and "Documentation" look alike. Proposal: follow Route /docs/ to the topics index and link Clients and Integrations in the docs menu valkey-io/valkey-io.github.io#742.
  4. "Overview" for /download/, matching the docs menu's section landing entries. Alternative: "Latest releases".

This was generated by AI but verified, with love, by a human.

The download pages had no navigation between them. They now use the
left-aside layout, like the docs and the blog, with a Download menu:
Overview, each release line newest first, and All releases. The menu
marks the current page, or a release's line on a release page. The
lines are the pages in content/download/versions/, so a new line shows
up once it has a page.

The docs menu doesn't change. Each page's title moves from the banner
into the content, as on docs pages.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson added the needs-review Staged work waiting on madolson's review label Nov 18, 2026
@github-actions

Copy link
Copy Markdown

@madolson madolson added promoted Change has been promoted upstream and removed needs-review Staged work waiting on madolson's review labels Nov 18, 2026
@madolson

Copy link
Copy Markdown
Owner Author

Moved to valkey-io#774.

@madolson madolson closed this Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

promoted Change has been promoted upstream

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant