Repository navigation
Conversation
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>
Owner
Author
|
Moved to valkey-io#774. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, 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)Against valkey-io#774
valkey-io#774 adds a Download entry to the docs menu (
nav_download, adocs_menu_download_sectionconfig key, and changes tonav_menu). None of that is needed here, so the docs menu,config.tomland 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
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 valkey-io/valkey-io.github.io#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 valkey-io/valkey-io.github.io#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.