Skip to content

Give the download pages their own menu - #774

Merged
madolson merged 3 commits into
valkey-io:mainfrom
madolson:promote/download-under-docs
Nov 23, 2026
Merged

madolson merged 3 commits into
valkey-io:mainfrom
madolson:promote/download-under-docs

Conversation

@madolson

@madolson madolson commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

The download pages have no navigation between them. Following zuiderkwast's suggestion, they now get their own sidebar, as the blog has: a Download menu with Overview, each release line newest first, and All releases. The docs menu doesn't change. An earlier revision put Download under Getting started in the docs menu instead.

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)

The earlier revision's docs menu entry (nav_download, docs_menu_download_section in config.toml, the nav_menu changes and .docs-menu-releases) is gone, so the docs menu, config.toml and the styles match main. #742's "Documentation" menu title stays off the download pages.

The earlier revision's preview showed 9.0.7 as the latest release instead of 9.1.3, because it was built before #741 merged. This branch has main merged in.

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. Put the docs menu above the content on phones and add previous/next topic links #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".
  2. 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 #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 #742.
  3. "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.

Download stays in the top bar, and the download pages now use the docs
layout. In the docs menu, Download is a new entry at the end of Getting
started, and it expands into one link per release line (9.2 down to 7.2)
plus All releases. On any download page, Getting started is open and
Download is marked current. On a release line page, or on a single
release's page, that release line is marked current too.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Download and release pages now share a layout that displays a release menu. The menu includes the Download overview, versioned release pages, and All releases. Page headings render in the main content area.

Changes: Download navigation and pages

Layer / File(s) Summary
Configure and render the Download menu
templates/macros/release.html
The new download_menu component lists the Download overview, release-line pages, and All releases. It sorts release lines by version and sets current-link attributes based on the current path and release line.
Apply the shared download layout
templates/download-layout.html, templates/download.html, templates/release-line.html, templates/release-page.html, templates/release-section.html
The new layout passes the current path and a release line derived from page metadata to the menu. Download and release templates extend this layout and render their headings in main_content.
Merge Risk: Minimal · up to f17e7

This change moves the download pages into a layout with a release menu. No actionable problems were found, and the change is template-only and easy to revert.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 228390ba-f032-49b1-acfe-edc1ab605cd9
Commits

Reviewing files that changed from the base of the PR and between 97506d3 and f17e7a8.

Files selected for processing: 4

  • templates/download-layout.html
  • templates/download.html
  • templates/macros/release.html
  • templates/release-section.html

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

The download pages now use a left sidebar with their own release menu and titles inside the content panel.

  • Download pages share a layout with a menu for moving between releases.

The latest commit deliberately uses a separate download menu, rather than the Getting started entry described in the PR text.

Reviews (2) · Last reviewed commit: "Give the download pages their own menu i..." · Reviewed by Greptile

@github-actions

Copy link
Copy Markdown
Contributor

@zuiderkwast

zuiderkwast commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Do you have a screenshot?

I see the preview link above. Nice thing!

@zuiderkwast

Copy link
Copy Markdown
Contributor

It looks nice, but what are the pros and cons for this change?

Downloads are not exactly docs. (There is no edit link for these pages. You can't build and host them separately as man pages, standalone HTML files.) Structurally it seems wrong to put it under docs.

Downloads and Documentation are already both in the top-level menu, so it's not really hard to find them, is it?

@sarthakaggarwal97

Copy link
Copy Markdown
Contributor

I think the new preview makes sense. It unifies the design of the website.

@madolson

Copy link
Copy Markdown
Member Author

@zuiderkwast Primarily I want navigation to exist on more pages. Right now the documentation is very detached from anything. I'd consider adding navigation specifically for downloads. I also considered two top level navigation panes, "Documentation" and "Downloads".

@zuiderkwast

Copy link
Copy Markdown
Contributor

Primarily I want navigation to exist on more pages. Right now the documentation is very detached from anything. I'd consider adding navigation specifically for downloads.

Yeah, so what other pages do we have? The blog posts have their own sidebar. The remaining pages (the community pages, etc.) are more of single page style without a sidebar which is fine. Similar to blogs, I think downloads should have its own sidebar, so each top-level category (Download, Documentation, Blog, ...) has its own sidebar menu.

…r-docs

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Downloads aren't docs, so they shouldn't sit in the docs menu. The
download pages keep the left-aside layout but get a Download menu of
their own, as the blog has its own sidebar: Overview, each release
line newest first, and All releases. The docs menu, its config key and
its styles go back to main.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson changed the title Put the download pages in the docs layout, under Getting started Give the download pages their own menu Nov 18, 2026
@madolson
madolson merged commit 3acee27 into valkey-io:main Nov 23, 2026
9 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.

3 participants