diff --git a/docs/assets/extra.css b/docs/assets/extra.css index 8a6726a..6771797 100644 --- a/docs/assets/extra.css +++ b/docs/assets/extra.css @@ -146,26 +146,6 @@ body { letter-spacing: -0.01em; } -/* Code ---------------------------------------------------------------------- - JetBrains Mono draws `!=` as ≠ and `->` as an arrow unless ligatures are - off. Sumi turns them off for every code element, but its `font` shorthand - on `.sumi-prose pre` resets that, so a reader copying a block by eye sees a - character the shell does not have. Set it again after the shorthand. */ -.sumi-prose pre, -.sumi-prose pre code { - font-variant-ligatures: none; - font-feature-settings: "liga" 0, "calt" 0; -} - -/* Sumi lets inline code break anywhere, which in a table also shrinks the - column to one character: an auto-sized table then splits `message` into - `messag` and `e`. break-word still wraps a value too long for its cell, but - leaves the column wide enough for each word. */ -.sumi-prose td code, -.sumi-prose th code { - overflow-wrap: break-word; -} - /* Buttons ------------------------------------------------------------------- A primary button is Signal Blue with Ink text: white on this blue is 3.1:1, under the 4.5:1 a button label needs; Ink on it is 5.9:1. */ diff --git a/docs/index.md b/docs/index.md index 104850c..39ef147 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,10 +2,6 @@ hide: - toc template: landing.html -# Sumi gives a landing.html page the "landing" layout, which has no sidebar and -# so no menu button on a phone. "docs" keeps the button; landing.html draws -# the page itself and shows the sidebar only as the phone drawer. -layout: docs title: Commit Check seo_title: Commit Check — Commit policy as code for teams and AI agents description: Commit policy as code for teams and AI agents. Messages, branches, authors and AI attribution, checked from your commit hook to every pull request. diff --git a/docs/overrides/landing.html b/docs/overrides/landing.html index cbd8184..256c3ca 100644 --- a/docs/overrides/landing.html +++ b/docs/overrides/landing.html @@ -17,17 +17,11 @@ {% endblock %} {# - The site navigation as the phone drawer, the same one every other page has. - Sumi shows its menu button only when the page has a sidebar, so the page - keeps its navigation (no `hide: navigation`) and renders the sidebar here; - landing.css hides it on wide screens, where the landing takes the full width. + Sumi's sidebar partial gives a landing page the site navigation as the phone + drawer only; it is part of the layout block, so this override includes it. #} {% block layout %} - + {%- include "partials/sidebar.html" %}
{{ page.content }} diff --git a/docs/requirements.txt b/docs/requirements.txt index ee35ab7..a0db418 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -3,5 +3,5 @@ # depends on, and Sumi, its documentation theme. Sumi brings its own blog, # search palette and fonts, so nothing else is needed. mkdocs-ng==1.11.0 -mkdocs-sumi==0.3.1 +mkdocs-sumi==0.4.1 pymdown-extensions==12.3 diff --git a/docs/stylesheets/landing.css b/docs/stylesheets/landing.css index 4818d90..ee0a3bf 100644 --- a/docs/stylesheets/landing.css +++ b/docs/stylesheets/landing.css @@ -69,12 +69,16 @@ overflow-x: clip; } -/* The navigation drawer (see landing.html). Sumi turns `.sumi-sidebar` into - the slide-in drawer at 920px and below; above that the landing has no - sidebar, so it is not shown at all. */ -@media screen and (min-width: 921px) { - .cc-landing-drawer { - display: none; +/* Sumi narrows the header and footer of a page with no sidebar to 1200px; + here they line up with the 1220px column instead, as on the docs pages. */ +@media (min-width: 921px) { + html[data-chrome="narrow"] :is(.sumi-header-inner, .sumi-footer-inner, .sumi-footer-links) { + max-width: var(--cc-page-w); + padding-inline: 20px; + } + + html[data-chrome="narrow"] .sumi-footer-links::after { + inset-inline: 20px; } }