Skip to content

Put the download pages in the docs layout, under Getting started - #12

Closed
madolson wants to merge 23 commits into
mainfrom
download-under-docs
Closed

madolson wants to merge 23 commits into
mainfrom
download-under-docs

Conversation

@madolson

@madolson madolson commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

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.

AI generated details

Pages

The 61 pages under /download/ use four templates: download.html, release-section.html, release-line.html (6 line pages), and release-page.html (53 releases). All four now extend templates/download-layout.html, which extends left-aside.html and renders the docs menu. Each page's title is now an <h1 class="docs-page-title"> at the top of the content panel. #10, merged upstream as valkey-io#743, styles that class. Content and release selection are unchanged.

Menu entry

nav_download (templates/macros/nav.html:324) builds the release lines from the pages in content/download/versions/. It sorts them by major * 1000 + minor with the highest first, the same key the homepage uses, so 9.10 sorts above 9.9. I checked this with a temporary 9.10 page. Using the line pages means every link has a page behind it, and a new line appears in the menu as soon as its page is added. A line page added before its first release will show up too, and release-line.html already handles that case.

All releases comes last in the list. Without it, /download/releases/ would have nothing in the menu to mark current. It's also the menu's only route to the full archive, which includes security fixes for older versions.

What's marked current on each page:

Page Download Line entry
/download/ current: the row is the toggle, as for a current topic with commands none
/download/9.1/ current (aria-current="true") 9.1 (page)
/download/releases/v9-0-7/ current (true) 9.0 (true)
/download/releases/ current (true) All releases (page)
other pages collapsed, not current none

On other pages, Getting started opens only when one of its topics is the current page, as before. The section comes from extra.docs_menu_download_section (config.toml:53). If nav.yml has no such section, Download goes at the top of the menu (nav.html:380).

With topics initialized, builds take 1.48s against 1.25s on main (median of 5), from the menu on the 61 download pages; emptying nav_download makes no measurable difference.

The sub-list reuses the styles of a topic's command list. .docs-menu-releases (sass/_valkey.scss:725) switches its font from monospace back to the menu's regular font.

Known look

The download pages' h2s ("Latest release", "Supported versions") now get the docs layout's h2 style (sass/_valkey.scss:519), so "Supported versions" sits right under the binary links.

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

/docs/ was a full-width block page without the documentation menu. It
now uses the left-aside docs layout with the menu, and the menu starts
with an "Overview" link to /docs/ on every docs page, marked as current
on /docs/ itself. The routing blocks wrap to fit the narrower column.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
The top bar loses an item. Download becomes the first entry in the
Documentation submenu and the first card on /docs/, which the submenu
mirrors, so it stays reachable where hover is unavailable.

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

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b4d70a15-574d-4abb-af3e-ac2641205819

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

Per review: no boxes. /docs/ is now a short introduction plus brief
sections on Clients and Integrations. Command reference and topics are
already in the menu, and Valkey Admin is listed under Integrations.

The template extends docs-page.html and only replaces the parts that
read a valkey-doc topic, so /docs/ gets the same title banner and
content styling as the topic pages. The .block-menu styles are unused
now and removed.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
content/docs/index.md takes the docs-landing-left-bar version. /docs/ is
prose now, so the Download card line is gone.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
/download/, the release list, the release line pages and each release
page now use the documentation layout with the left menu. The menu gets
a Download link under Overview, current on all of those pages. Page
content and release selection are unchanged.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Per review: drop the /docs/ landing page and send /docs/ to
/topics/introduction/ instead. The redirect is an alias in the
introduction topic's custom front matter, like /about/ for history.
The top nav's Documentation link points at the introduction directly.

The menu's Overview entry would duplicate Introduction, so it's gone.
For now, the menu starts with links to Clients and Integrations, so
nothing from the old page is lost.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson changed the title Move Download under the Documentation menu Put the download pages in the docs layout Nov 5, 2026
@madolson
madolson changed the base branch from main to docs-landing-left-bar November 5, 2026 04:14
docs-landing-left-bar drops Overview and starts the menu with Clients and
Integrations links. Download joins them as the first .docs-menu-link, so
the copied .docs-menu-download style goes. default.html takes
/topics/introduction/ for Documentation and keeps Download first in its
submenu.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Per review, the links go lower in the menu: right after the section
with the id "client-development", or at the end of the menu if there's
no such section. They're defined once, in nav_page_links.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
The blue styled-title banner is going away site-wide, so each download
page's title is now a docs-page-title h1 at the top of the main content,
like the docs pages.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
docs-landing-left-bar moves the Clients and Integrations links into
nav_page_links, after Client development. Download stays a link of its
own at the top of the menu rather than joining that group.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Download returns as a top-level link, and the Documentation submenu goes
back to what it was.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
…ons in the docs menu

The Documentation link in the top nav goes to /docs/, a full-width page
of link boxes outside the docs layout, with no docs menu. This drops
that page: /docs/ now redirects to the Introduction topic, and the top
nav links there directly. The docs menu gets Clients and Integrations
links below Client development, so the two links from the old page that
the menu didn't cover stay one click away. The command reference and
topics were already in the menu, and Valkey Admin is listed under
Integrations.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Download moves from the top of the docs menu to the end of Getting
started, with a toggle listing each release line, newest first, and All
releases. The lines come from the release line pages, ordered by
version number, so a new line appears once its page exists. On the
download pages Getting started is open, Download is current, and so is
the line of a line or release page. Without a Getting started section,
Download goes at the top of the menu.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson changed the title Put the download pages in the docs layout Put the download pages in the docs layout, under Getting started Nov 5, 2026
#10 renamed docs-page-title to page-title-plain and styles it. The title
lines now match #10's, so merging it only moves them.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
This reverts commit 586802c. #10 is docs-only again and its class is
docs-page-title.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson added approved madolson approved; ready to promote upstream and removed needs-review Staged work waiting on madolson's review labels Nov 5, 2026
@madolson

madolson commented Nov 5, 2026

Copy link
Copy Markdown
Owner Author

Before (main) and after:

12-download
12-download-line

madolson added a commit that referenced this pull request Nov 5, 2026
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
The Clients and Integrations links and the section they follow were
hard-coded in nav_page_links. They are now extra.docs_menu_links, each
with the nav.yml section id it goes after, so adding or moving one is a
config change. The built site is byte-identical.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
The /docs/ boxes linked it and the menu didn't, so it was lost with
them.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
…into kfix-12-base

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

# Conflicts:
#	templates/macros/nav.html
nav_download's section was the id getting-started in three places in
nav_menu. It is now extra.docs_menu_download_section, next to
extra.docs_menu_links. The built site is byte-identical.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
This branch was stacked on the docs landing change (#11,
valkey-io#742). Its changes are removed here, so this
PR stands on main: the Download entry no longer sits after #11's
nav_page_links component, and nav_menu defines the section_ids it needs.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson
madolson changed the base branch from docs-landing-left-bar to main November 17, 2026 01:54
@madolson madolson closed this Nov 17, 2026
@madolson madolson reopened this Nov 17, 2026
@github-actions

Copy link
Copy Markdown

@madolson madolson added promoted Change has been promoted upstream and removed approved madolson approved; ready to promote upstream labels Nov 17, 2026
@madolson

Copy link
Copy Markdown
Owner Author

Promoted upstream: valkey-io#774

@madolson madolson closed this Nov 17, 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