Repository navigation
Conversation
/clients/ and /integrations/ now use the documentation layout: the docs menu on the left, and a breadcrumb like a topic's. In the menu, Clients and Integrations are the last entries of Application development (extra.docs_menu_libraries_section), which their pages open, with the current page marked like a topic. The catalog loses its own page padding, its h2s keep their case under the docs layout's uppercase h2 rule, and the toolbar's breakpoints are on the catalog's width, since the content column is narrower than the window. Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
This branch has not been deployed
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.
/clients/ and /integrations/ use a full-width layout with no docs menu, so they read as a separate site, and valkey-io#742 would link them from the menu as special rows styled like section titles. This puts both pages in the docs layout, with the docs menu and a breadcrumb like a topic's, and lists Clients and Integrations as ordinary entries at the end of Application development, marked current on their own pages. Valkey Admin stays a card on /integrations/ and gets no menu link.
Before on the left, after on the right.
AI generated details
Options
introduction.mdandinstallation.mdin valkey-doc both send readers to /clients/, so it's a natural next step. It loses because Getting started already has six entries, plus Download from Put the download pages in the docs layout, under Getting started #12, and it splits Clients from Integrations. It would also need a second config key.Changes
templates/libraries.html:1extendsleft-aside.htmlinstead ofdefault.html. The menu is built as indocs.html(libraries.html:44-51). The configured section opens throughnav_menu's existingopenparameter. The breadcrumb uses the topic pages' markup: Topics > Application development > Clients (libraries.html:20-42). The title is<h1 class="docs-page-title">, as on topic pages and Put the download pages in the docs layout, under Getting started #12's download pages. The catalog markup is unchanged.nav_libraries(templates/macros/nav.html:318) renders the two entries from the sections' own titles and paths. The current one getsdocs-menu-currentandaria-current="page", like a current topic.nav_menurenders it after the topics ofextra.docs_menu_libraries_section(config.toml:48,nav.html:366). If there's no such section, it goes at the start of the menu (nav.html:346), like Download in Put the download pages in the docs layout, under Getting started #12.sass/_catalog.scss:44:.catalogdrops its page max-width and padding, since the docs content panel has its own.sass/_catalog.scss:60:.left-aside h2(_valkey.scss:519) uppercases every h2 in the docs layout, including the card names, "Feature definitions" and the submission heading..catalog h2turns that off.sass/_catalog.scss:45,114,118: the toolbar's breakpoints are container queries on.catalog, not viewport media queries. Each is the old breakpoint minus the old 40px of padding (900 to 860, 620 to 580). With the media queries, at a 1024px window the column is 524px wide but the toolbar kept three columns, and the search box shrank to "Searc".Known look: at 1400px, cards are two per row instead of four (900px column instead of 1360px). The submission heading keeps its 3rem bold, which now outweighs the docs-style page title. The feature legend keeps its viewport breakpoints, so it has three narrow columns at 1024px, which are still readable.
Overlaps
docs_menu_linksfrom Route /docs/ to the topics index and link Clients and Integrations in the docs menu valkey-io/valkey-io.github.io#742 entirely. That's the three[[extra.docs_menu_links]]inconfig.toml,nav_page_linksand its three call sites innav_menu, and.docs-menu-linkand.docs-menu-externalin_valkey.scss. Clients and Integrations are covered here, and Valkey Admin is already a card on /integrations/ (_data/libraries/integrations/valkey-admin.json). The /docs/ redirect and breadcrumbs are left, and they don't touch this. If Route /docs/ to the topics index and link Clients and Integrations in the docs menu valkey-io/valkey-io.github.io#742 lands first as it is, this PR removes those pieces instead. A trial merge of its current head conflicts in 3 hunks ofnav_menu.docs_menu_download_sectionanddocs_menu_libraries_sectioneach name a section, and the entry goes at its end, or at the start of the menu if the section is missing.download_pathandlibraries_pathare the current path on those pages. One difference: these pages open their section throughopen, while Put the download pages in the docs layout, under Getting started #12 hasnav_menuinfer it fromdownload_path. A trial merge conflicts in 3 hunks ofnav_menu. All three are additions on both sides, so the fix is to keep both. The merged site builds, with Download in Getting started and Clients and Integrations in Application development, and each page opens its own section. Put the download pages in the docs layout, under Getting started #12's download pages have no breadcrumb; these do.Testing
<li>rows.sitemap.xmland the search index are unchanged. Both builds have 15 client cards and 22 integration cards._data/libraries/, and no page scrolled sideways.build/validate-libraries.py, because it needsuv._data/libraries/is untouched.Decisions for madolson
config.toml.default.html:60-61)? Proposal: keep them, as shortcuts like Command Reference, which is also a docs page.docs_menu_linksbefore it lands (proposal), or should this PR remove them afterward?This was generated by AI but verified, with love, by a human.