Repository navigation
Build the documentation site with the Sumi theme - #133
Merged
Merged
Conversation
MkDocs NG's own site now uses Sumi, the theme from the mkdocs-ng organization, so that the theme is used every day on a large site. - mkdocs.yml: theme sumi plus the sumi plugin, with the MkDocs NG logo (light and dark) and favicon; Pygments highlighting instead of highlight.js; drop the Google Analytics ID inherited from mkdocs.org, which contradicted "no analytics". - The home page is a Sumi landing page described in front matter, replacing the Bootstrap cards and buttons. - Replace the Bootstrap carousel and card markup on two pages, point the favicon link at the file in the repository, and trim extra.css to the rules that still apply. - The docs environment installs mkdocs-sumi.
The integration test builds the documentation site with each built-in theme. Now that the site uses Sumi, that failed: the sumi plugin isn't installed in the integration environment, and the home page uses Sumi's landing.html template. Build from a copy of mkdocs.yml with the built-in theme and without the sumi plugin, plus a hook that lets pages using Sumi's page templates fall back to main.html.
mkdocstrings resolves its search paths relative to the configuration file. From a temporary directory it found upstream MkDocs, which CI installs alongside, instead of this repository, and couldn't collect mkdocs.build.
Contributor
0.1.1 isn't on PyPI yet. 0.1.0 builds the site too (without the dark logo and the API reference styling), and the next docs build picks up 0.1.1 once it is released.
This was referenced Nov 1, 2026
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.
MkDocs NG's own documentation now uses Sumi, the theme from the mkdocs-ng organization. Using it every day on a large site with mkdocstrings, literate-nav, redirects and mkdocs-click is the best way to find what it still lacks; the first round of gaps is already fixed in mkdocs-sumi#3 (to be released as 0.1.1).
Changes
mkdocs.yml:theme: sumiwith the MkDocs NG logo (light and dark variants from Give the README a MkDocs NG header and add the logo files #132) and favicon, plus thesumiplugin. Code is highlighted with Pygments at build time instead of highlight.js. The Google Analytics ID inherited from mkdocs.org is gone; it contradicted "no analytics" in the README.<details>.getting-started.md: the "MkDocs favicon" link pointed at a file themkdocstheme used to provide; it now points at the file in the repository.extra.css: only the rules that still apply (colour forNEW:callouts, hidden attribute labels in the API reference).pyproject.toml: the docs environment installsmkdocs-sumi, which the hatch-mkdocs collector can't look up frommkdocs.yml. It accepts 0.1.0, the version on PyPI today, which builds the site too; the dark logo and the API reference styling arrive with 0.1.1, which the next docs build picks up once it is released.mkdocs.yml(next to it, so mkdocstrings finds this repository rather than upstream MkDocs) with the built-in theme and without thesumiplugin, plus a small hook that lets pages using Sumi's page templates (the home page) fall back tomain.html. So the built-in themes are still tested on the full docs site, and the integration environment doesn't need Sumi.The built-in
mkdocsandreadthedocsthemes are unchanged and still documented; this only changes the theme of this site.Checks
hatch run docs:buildpasses with mkdocs-sumi 0.1.0 from PyPI;mkdocs build --strictpasses with mkdocs-sumi from main (0.1.1).python -m mkdocs.tests.integrationpasses (both built-in themes and the test projects), also with upstream MkDocs installed alongside, as in CI.Checklist
docs/about/release-notes.mdupdated (if applicable): n/a, no change to the package