Skip to content

Put Clients and Integrations in the docs layout and menu - #28

Open
madolson wants to merge 1 commit into
mainfrom
docs-libraries-in-docs
Open

madolson wants to merge 1 commit into
mainfrom
docs-libraries-in-docs

Conversation

@madolson

Copy link
Copy Markdown
Owner

/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.

Clients, before Clients, after

Clients, Python filter, before Clients, Python filter, after

Integrations, before Integrations, after

Integrations, Agent frameworks filter, before Integrations, Agent frameworks filter, after

Docs menu on a topic page, before Docs menu on a topic page, after

Clients at 390px, before Clients at 390px, after

AI generated details

Options

  1. Both as entries in Application development (implemented). Both pages serve people building on Valkey, who need a client library or a framework, queue, or AI library. That section already covers using Valkey from an app: keyspace, pipelining, transactions, pub/sub. The two pages link to each other, so they stay together.
  2. Client development, where Route /docs/ to the topics index and link Clients and Integrations in the docs menu valkey-io/valkey-io.github.io#742 put them. It loses because that section (protocol, key specs, command tips) is for people writing a client, not choosing one.
  3. Clients in Getting started. introduction.md and installation.md in 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.
  4. A new website-defined Ecosystem section. It loses because a section that nav.yml doesn't know about, with two entries and no landing page, is the special item again, just one level up.

Changes

  • templates/libraries.html:1 extends left-aside.html instead of default.html. The menu is built as in docs.html (libraries.html:44-51). The configured section opens through nav_menu's existing open parameter. 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 gets docs-menu-current and aria-current="page", like a current topic. nav_menu renders it after the topics of extra.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: .catalog drops 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 h2 turns 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

Testing

  • I diffed the whole site against a main build with the same content and base URL. On the other 543 pages with the docs menu, the only change is the two new <li> rows. sitemap.xml and the search index are unchanged. Both builds have 15 client cards and 22 integration cards.
  • On both builds, a headless Chrome script checked widths from 390px to 1400px. It clicked each filter pill and the Valkey toggle, searched "glide", checked the empty state, and cleared the search. Every visible count matched counts computed from _data/libraries/, and no page scrolled sideways.
  • I built with an unknown section id, and again with no nav.yml. Both times the entries were at the top of the menu, no section opened, and the breadcrumb read Topics > Clients.
  • Not run: build/validate-libraries.py, because it needs uv. _data/libraries/ is untouched.

Decisions for madolson

  1. Section: Application development (proposal), Client development, or Getting started. Moving them is a one-line change in config.toml.
  2. Should Clients and Integrations stay in the top nav's Documentation dropdown (default.html:60-61)? Proposal: keep them, as shortcuts like Command Reference, which is also a docs page.
  3. Should Route /docs/ to the topics index and link Clients and Integrations in the docs menu valkey-io/valkey-io.github.io#742 drop docs_menu_links before it lands (proposal), or should this PR remove them afterward?

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

/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>
@madolson madolson added the needs-review Staged work waiting on madolson's review label Nov 17, 2026
@github-actions

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Staged work waiting on madolson's review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant