Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
07ea572
Show the docs menu on /docs/ and link it as Overview
madolson Nov 5, 2026
ebe1bcb
Move Download under the Documentation menu
madolson Nov 5, 2026
dfb7b8f
Make /docs/ a prose overview page like the topic pages
madolson Nov 5, 2026
63b209c
Merge docs-landing-left-bar into download-under-docs
madolson Nov 5, 2026
f517b56
Render the download pages in the docs layout
madolson Nov 5, 2026
cf03162
Route /docs/ to the introduction topic, link clients and integrations
madolson Nov 5, 2026
b745f25
Merge docs-landing-left-bar into download-under-docs
madolson Nov 5, 2026
5ad3103
Move the Clients and Integrations links below Client development
madolson Nov 5, 2026
571667f
Put download page titles in the content panel
madolson Nov 5, 2026
2dfc66b
Merge docs-landing-left-bar into download-under-docs
madolson Nov 5, 2026
374fb8a
Put Download back in the top bar
madolson Nov 5, 2026
45f38d1
Route /docs/ to the introduction topic and link Clients and Integrati…
madolson Nov 5, 2026
ad0c375
Put Download in the Getting started section of the docs menu
madolson Nov 5, 2026
586802c
Use page-title-plain for the download page titles
madolson Nov 5, 2026
7ab419d
Use docs-page-title for the download page titles again
madolson Nov 5, 2026
de59a12
Merge branch 'main' into promote/docs-landing-left-bar
madolson Nov 17, 2026
8c33599
Move the docs menu's page links into config.toml
madolson Nov 17, 2026
b9b7ca1
Link Valkey Admin from the docs menu
madolson Nov 17, 2026
1fcf2d3
Merge remote-tracking branch 'madelyn/promote/docs-landing-left-bar' …
madolson Nov 17, 2026
d48256d
Merge docs-landing-left-bar into download-under-docs
madolson Nov 17, 2026
744d444
Take the Download entry's menu section from config.toml
madolson Nov 17, 2026
6384e02
Merge remote-tracking branch 'origin/main' into HEAD
madolson Nov 17, 2026
b530163
Drop the dependency on #11
madolson Nov 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ review_list = [
"/topics/distlock/"
]

# The docs menu's Download entry, with the release lines, goes at the end of
# this nav.yml section, which the download pages open. It goes at the start of
# the menu if there's no such section.
docs_menu_download_section = "getting-started"

# Labels shown next to menu entries from other sources, by source name. Only
# modules get one; valkey-bundle isn't a module.
[extra.nav_badges]
Expand Down
5 changes: 5 additions & 0 deletions sass/_valkey.scss
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,11 @@ p {
}
}

// The release lines under Download: laid out like commands, but not code.
.docs-menu-releases li a {
@include sans-serif;
}

// A badge on a section title, for a section that comes from a module. The
// section titles are uppercase; the badge isn't. The margin keeps it away
// from the arrow.
Expand Down
23 changes: 23 additions & 0 deletions templates/download-layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% extends "left-aside.html" %}

{#- The download pages: /download/, the release list, the release line pages
and each release. They use the documentation layout, with Download current
in the menu. -#}

{% block related_content %}
{#- The release line of a line page (extra.version) or a release page (extra.tag). -#}
{% set download_line = "" %}
{% if page is defined and page.extra?.version %}
{% set download_line = page.extra.version %}
{% elif page is defined and page.extra?.tag %}
{% set download_line = (page.extra.tag | split(pat="."))[:2] | join(sep=".") %}
{% endif %}
{#- The same menu setup as docs.html and commands.html. #}
{% set nav_json %}{{< nav_merged extra={config.extra} />}}{% endset %}
{% set nav_data = load_data(literal=nav_json, format="json") %}
{% set nav_index_json %}{{< nav_command_index extra={config.extra} />}}{% endset %}
{% set nav_index = load_data(literal=nav_index_json, format="json") %}
{% set nav_map_json %}{{< nav_command_map nav={nav_data} index={nav_index} />}}{% endset %}
{% set nav_command_map = load_data(literal=nav_map_json, format="json") %}
{{< nav_menu nav={nav_data} extra={config.extra} command_map={nav_command_map} index={nav_index} download_path={current_path} download_line={download_line} />}}
{% endblock related_content %}
6 changes: 2 additions & 4 deletions templates/download.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{% extends "right-aside.html" %}
{% extends "download-layout.html" %}

{% block subhead_content%}
<h1 class="page-title">Download Valkey</h1>
{% endblock subhead_content%}
{% block main_content %}
<h1 class="docs-page-title">Download Valkey</h1>

{# The newest stable release on each major.minor line, newest line first. #}
{% set release_section = get_section(path="download/releases/_index.md") %}
Expand Down
61 changes: 59 additions & 2 deletions templates/macros/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,53 @@
</li>
{% endcomponent nav_command_reference %}

{#-
The Download entry, with a toggle that lists each release line, newest
first, then all releases. The lines are the pages in
content/download/versions/, so a new line shows up once it has a page.
It's rendered after the topics of the section whose id is
extra.docs_menu_download_section in config.toml, or at the start of the
menu if there's none.
path: the current path on the download pages, "" elsewhere. There,
Download is current and its toggle is open.
line: the release line of the current page, e.g. "9.1", or "".
Like a current topic with commands, Download isn't a link on /download/
itself: the whole row is the toggle.
-#}
{% component nav_download(path="", line="") %}
{%- set versions = get_section(path="download/versions/_index.md") -%}
{%- set_global keyed_lines = [] -%}
{%- for line_page in versions.pages -%}
{%- set parts = line_page.extra.version | split(pat=".") -%}
{%- set_global keyed_lines = [...keyed_lines, {"version": (parts[0] | int) * 1000 + (parts[1] | int), "page": line_page}] -%}
{%- endfor -%}
{%- set releases %}
<ul class="docs-menu-commands docs-menu-releases" aria-label="Valkey versions">
{%- for keyed in keyed_lines | sort(attribute="version") | reverse %}
<li><a href="{{ keyed.page.path }}"
{%- if keyed.page.extra.version == line %} class="docs-menu-current" aria-current="{{ "page" if path == keyed.page.path else "true" }}"{% endif %}>Valkey {{ keyed.page.extra.version }}</a></li>
{%- endfor %}
<li><a href="/download/releases/"{% if path == "/download/releases/" %} class="docs-menu-current" aria-current="page"{% endif %}>All releases</a></li>
</ul>
{%- endset %}
{%- if path == "/download/" %}
<li>
<details class="docs-menu-current-topic" open>
<summary class="docs-menu-current" aria-current="page"><span>Download</span></summary>
{{- releases | safe }}
</details>
</li>
{%- else %}
<li class="docs-menu-has-commands">
<a href="/download/"{% if path %} class="docs-menu-current" aria-current="true"{% endif %}>Download</a>
<details class="docs-menu-commands-toggle"{% if path %} open{% endif %}>
<summary><span class="sr-only">Valkey versions</span></summary>
{{- releases | safe }}
</details>
</li>
{%- endif %}
{% endcomponent nav_download %}

{#-
The menu.
current: slug of the current topic.
Expand All @@ -322,16 +369,23 @@
index: from nav_command_index; used to list the command categories
(groups) that have documented commands.
on_command_reference: true on the command reference page.
download_path, download_line: see nav_download. download_path also
opens the section nav_download is rendered in.
-#}
{% component nav_menu(nav, extra, current="", related="", open="", command_map={}, current_command="", index=[], on_command_reference=false) %}
{% component nav_menu(nav, extra, current="", related="", open="", command_map={}, current_command="", index=[], on_command_reference=false, download_path="", download_line="") %}
<nav class="docs-menu" aria-label="Documentation">
{%- set section_ids = [x.id for x in nav] %}
{%- set download_section = extra.docs_menu_download_section | default(value="") %}
<ul class="docs-menu-sections">
{%- if download_section not in section_ids %}
{{< nav_download path={download_path} line={download_line} />}}
{%- endif %}
{%- for section in nav %}
{%- if section.id == "command-reference" %}
{{< nav_command_reference title={section.title} index={index} on_command_reference={on_command_reference} />}}
{%- else %}
<li>
<details{% if section.id == open %} open{% endif %}>
<details{% if section.id == open or (download_path and section.id == download_section) %} open{% endif %}>
{%- set section_badge = extra.nav_badges[section.source] | default(value="") %}
<summary>{{ section.title }}{% if section_badge %} <span class="docs-menu-badge">{{ section_badge }}</span>{% endif %}</summary>
<ul>
Expand All @@ -343,6 +397,9 @@
{%- set commands = command_map[entry.topic] if entry.topic in command_map else [] %}
{{< nav_menu_item slug={entry.topic} title={entry.title} source={"" if section_badge and entry.source == section.source else entry.source} current={current} related={related} extra={extra} commands={commands} current_command={current_command} />}}
{%- endfor %}
{%- if section.id == download_section %}
{{< nav_download path={download_path} line={download_line} />}}
{%- endif %}
{%- set other_key = "section:" ~ section.id %}
{%- if other_key in command_map %}
<li>
Expand Down
7 changes: 2 additions & 5 deletions templates/release-line.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{% extends "right-aside.html" %}

{% block subhead_content %}
<h1 class="page-title">Download Valkey {{ page.extra.version }}</h1>
{% endblock subhead_content %}
{% extends "download-layout.html" %}

{% block main_content %}
<h1 class="docs-page-title">Download Valkey {{ page.extra.version }}</h1>
{% set line = page.extra.version %}

{# Every release on this line, newest first, stable and pre-release kept apart. #}
Expand Down
6 changes: 2 additions & 4 deletions templates/release-page.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{% extends "right-aside.html" %}
{% extends "download-layout.html" %}

{% block subhead_content%}
<h1 class="page-title">Download Valkey {{page.title}}</h1>
{% endblock subhead_content%}
{% block main_content %}
<h1 class="docs-page-title">Download Valkey {{page.title}}</h1>
{{< release_info date={page.date} release={page.extra} />}}
{% endblock main_content %}
6 changes: 2 additions & 4 deletions templates/release-section.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{% extends "right-aside.html" %}
{% extends "download-layout.html" %}

{% block subhead_content%}
<h1 class="page-title">Valkey Releases</h1>
{% endblock subhead_content%}
{% block main_content %}
<h1 class="docs-page-title">Valkey Releases</h1>


{% set_global release_lines = [] %}
Expand Down
Loading