Repository navigation
Give the download pages their own menu - #774
Conversation
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>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
[Medium impact] The PR appears safe to merge.
|
|
I see the preview link above. Nice thing! |
|
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? |
|
I think the new preview makes sense. It unifies the design of the website. |
|
@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". |
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>
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, fromextra.versionon a line page orextra.tagon a release page, and renders the menu.download_menu(templates/macros/release.html:75-88): the menu. The lines come from the pages incontent/download/versions/, sorted bymajor * 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 useset_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:
/download/page)/download/9.1/page)/download/releases/v9-0-3/true)/download/releases/v9-2-0-rc2/true)/download/releases/page)The earlier revision's docs menu entry (
nav_download,docs_menu_download_sectioninconfig.toml, thenav_menuchanges and.docs-menu-releases) is gone, so the docs menu,config.tomland 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
h2style, as on docs pages ("LATEST RELEASE: VALKEY 9.1.3", "SUPPORTED VERSIONS").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
left-aside.htmlthatdownload-layout.htmloverrides with "Download menu"..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-titleso "Download" and "Documentation" look alike. Proposal: follow Route /docs/ to the topics index and link Clients and Integrations in the docs menu #742./download/, matching the docs menu's section landing entries. Alternative: "Latest releases".This was generated by AI but verified, with love, by a human.