Repository navigation
Conversation
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
madolson
added a commit
that referenced
this pull request
Nov 17, 2026
Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Owner
Author
|
Folded into #26. |
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.
A docs topic page ends with no way to keep reading, so a reader working through the docs goes back to the menu after every page. This adds Previous and Next links at the end of each topic, in the order the docs menu lists them, crossing from the end of one section into the start of the next. Command pages don't get them.
First topic (introduction), before and after:
Middle topic (large-object-getting-started), before and after:
Last topic (history), before and after:
390px wide, before and after:
AI generated details
Decisions
Order is the menu's. Each section's landing page (the menu's "Overview"), then its topics, section after section. It's computed from the same
nav_mergedresult the menu is rendered from (templates/docs-page.html:20), so module sections (Search, Large object) and module topics (bloomfilters, valkey-json, ldap, valkey-bundle) land where the menu shows them, and the two can't drift apart.Section boundaries: cross. Stopping would dead-end the last page of 13 of the 14 sections. The breadcrumb already says which section you're in. Docusaurus, MkDocs Material and VitePress all cross without marking it.
Command reference: skipped. It's a list of 457 commands, not a page you read next. After valkey-bundle (end of Getting started) comes data-types. The Clients, Integrations and Valkey Admin menu links from valkey-io#742 come from config, not
nav_merged, so they're skipped too.First and last pages. introduction shows only Next, history only Previous. No wrap-around. Next stays on the right when it's alone.
Command pages: none. 457 pages with no reading order: alphabetical puts APPEND between ACL WHOAMI and ASKING. Someone on a command page is looking it up, not reading through, and the breadcrumb and the menu's command list under the related topic already link the topic and its sibling commands.
Titles are the topic's own front matter title, the same as its H1, not the shorter menu title. Menu titles like "Getting started" and "Configuration" (Large object, Search) only make sense under their section heading.
Topic not in the menu: no links, and its would-be neighbours skip it. Today all 84 topics are in the menu.
Implementation
nav_pagercomponent,templates/macros/nav.html:230-271: flattens the menu, finds the page, renders the links. Called once at the end of the content,templates/docs-page.html:63..docs-pager,sass/_valkey.scss:2413-2464. Inside the content card under a 1px#d5d9ecrule (the menu's section divider). Padding, radius,#d1d9ffhover and#2054B2focus outline are the menu links'. The label is#444, like the topic index descriptions. No new colors. Stacks below 768px.rel="prev"andrel="next"; the block is a<nav aria-label="Previous and next topics">.Testing
A Python script recomputes the order from
nav.ymlandmodules-nav/*.ymlindependently of the templates, and checks the hrefs on every built page:With
faqremoved from a scratch copy ofnav.yml: faq has no pager and installation's Next is migration. Also built merged with valkey-io#742: same 84 of 84.Not verified: hover and focus states visually (static headless screenshots only), and screen reader output.
Overlaps
left-aside.html,.docs-asidestyles) and Route /docs/ to the topics index and link Clients and Integrations in the docs menu valkey-io/valkey-io.github.io#742 (nav_menu,.docs-menu-link) both merge cleanly with this branch.docs-page.htmlaround the markdown line (62), this PR's one added line next to it will conflict trivially.For you to decide
This was generated by AI but verified, with love, by a human.