Repository navigation
Move the site to Zensical, and modernize its tooling - #34
Open
patrick-5546 wants to merge 19 commits into
Open
patrick-5546 wants to merge 19 commits into
patrick-5546 wants to merge 19 commits into
Conversation
pyproject.toml declares Zensical and the linters, and uv.lock pins them, taking only releases at least a week old. The Makefile runs each task through uv: serve, build, format, lint, links and clean. EditorConfig gives editors the indentation that Python Markdown nests content by, and .gitattributes LF line endings. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Zensical, from the team behind Material for MkDocs, reads the same Markdown and implements the plugins the site uses itself. zensical.toml, from the template that `zensical new` writes, replaces mkdocs.yml. - The modern theme, in teal, keeps the top-level tabs and adds the template's features: code copy buttons, breadcrumbs, footer navigation, rich tooltips, and edit, view source and "Copy as Markdown" buttons. - New plugins: llmstxt, and glightbox for images. The site drops Google Analytics. - KaTeX, from jsDelivr at an exact version, replaces MathJax and polyfill.io, whose domain was compromised in 2024. KaTeX lacks MathJax's \displaylines, so one formula uses a gathered environment instead. - Snippets appends the glossary to every page, instead of each page including it, and a missing snippet fails the build. - New extensions from the template: Mermaid diagrams, definition lists, highlighting, sub- and superscripts, smart symbols and automatic links. - Pages named *.draft.md appear only in the preview. - reference/mkdocs.md becomes reference/zensical.md, rewritten for the new setup. The old page embedded files that no longer existed. - The less command's last table row was a paragraph, as the comment above it for markdownlint ended the table. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The CI workflow lints and builds the site on every push and pull request, and deploys it to GitHub Pages with deploy-pages on every push to main, as Zensical has no gh-deploy command. The site's own links are checked by every strict build, and lychee checks the links to other sites every week and on demand, replacing the scheduled link check, whose configuration file didn't exist. The actions are pinned to commit SHAs, the jobs have only the permissions they need, and the checkouts keep no credentials; actionlint and zizmor check the workflows. Dependabot proposes weekly updates for the actions and the Python packages, a week after their release, and the release notes list them as dependency updates. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
patrick-5546
force-pushed
the
zensical
branch
from
December 1, 2026 03:25
11c0aff to
b08bf63
Compare
typos found four misspellings, beside one of which "Bread-first search" was a fifth, and rumdl found three links titled "here". lychee found eight broken URLs: - Six to dotfiles that patrick-5546/dotfiles#7 removed. The pages describe those files, so the links point to the last commit that had them. - Two to pages that no longer exist, which link to the Internet Archive's copies instead. The glossary defined RAM as "Read Access Memory", which every page's tooltip now shows, as each page gets the glossary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
VS Code recommends Zensical Studio, which previews the pages and checks their links, snippets and icons as you write, and the rumdl and typos extensions in place of markdownlint and Code Spell Checker. zensical-studio.toml turns on Studio's linter. The tasks run the Makefile's, replacing the launch configurations that ran `mkdocs serve` through debugpy. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The README covers setup, tasks, writing pages, Neovim and VS Code, updating dependencies and conventions. The Zensical page links to it for the tasks, the editors and updating dependencies, instead of repeating them, and keeps explaining how the site is built. AGENTS.md points agents to the README, and lists the checks to run before finishing. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The deploy job was part of the CI workflow, so pull requests listed it as a skipped check. The Deploy workflow runs on every push to main and on demand, as Zensical's own documentation does, with a build job that can only read the repository and a deploy job that alone can publish to GitHub Pages. CI lints and builds, the two checks that the ruleset protecting main requires. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
patrick-5546
force-pushed
the
zensical
branch
2 times, most recently
from
December 1, 2026 09:42
eb57e2a to
60d25a2
Compare
patrick-5546
commented
Dec 1, 2026
| - [Zensical Studio](https://zensical.org/studio/) previews the pages, completes links, anchors, snippets, and icons, | ||
| and reports problems such as broken links as you write; `zensical-studio.toml` configures its linter. | ||
| It reads the icons from Zensical in `.venv/`, so run `uv sync` first. | ||
| - rumdl lints and formats the other Markdown files, such as this one. Zensical Studio handles the pages in `docs/`. |
Owner
Author
There was a problem hiding this comment.
so rumdl is not used for the pages in docs/?
Owner
Author
There was a problem hiding this comment.
It is: make lint, CI and Neovim check every page with rumdl. Only rumdl's VS Code extension skips them, as Studio opens docs/*.md in its Python Markdown mode, which the extension doesn't handle; Studio lints them there instead. The README no longer goes into it (3853b00).
Owner
Author
There was a problem hiding this comment.
Is it worth adding and integrating studio free if I am mostly not using vs code? Either AI edited or in neovim? In vs code does it format on save? Should it? Also still early stages with no cli or neovim support
LICENSE.md holds CC0's plain-text legal code, whose indented paragraphs GitHub rendered as code blocks. LICENSE is the usual name, which GitHub also detects, and rumdl no longer needs to skip it. The README's License section goes too: GitHub shows the license, and the site's footer states it. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The settings came from the old markdownlint config. rumdl's MkDocs flavor already requires the four-space nesting that Python Markdown needs, and its defaults keep each file's list markers and rules consistent, so those settings go. There's no line length limit, as in Zensical's own docs. Code blocks name their language, for the right highlighting: shell commands are sh, and diagrams and pseudocode are text. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
InterviewBit's OOP interview questions page is gone, so the link goes to its last Internet Archive copy. Zensical Studio reported the bracketed "[nondeterministic]" as a missing link reference, so the brackets are escaped; the page shows them as before. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
lychee-bin, which lychee's maintainers publish on PyPI, is in its own dependency group, so only `make links` installs it, not `uv sync` or the other tasks: its Linux wheels are about 75 MB. The Links workflow runs `make links` instead of lychee-action, so CI checks with the same version, which Dependabot updates with the rest of uv.lock. It also runs on pull requests that change it or lychee.toml, so they're tested before merging. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Checking every link at once, github.com answered some with 503s, and which ones changed from run to run. Two requests at a time to each site, half a second apart, removed them, and a check takes about 30 seconds. lychee now also checks the links to files, such as the README's, which the site's build never sees. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Dependabot can't update the version in zensical.toml's URLs, so it was pinned and updated by hand. jsDelivr now serves the latest 0.x release, which updates itself, as in Zensical's own setup for KaTeX. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
In llmstxt's patterns, `*` also matches the pages in nested folders, so each section needs only one, and llms.txt, llms-full.txt and the pages' Markdown are unchanged. The nav's comments, carried over from mkdocs.yml, were notes to myself that the site never shows; the Internship Preparation page already says that it's a supplementary resource. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
VS Code has no TOML support, and Zensical Studio only handles zensical.toml in the TOML mode that an extension provides. Tombi replaces Even Better TOML, which hasn't been released since 2024, and whose maintainers say none are coming. Red Hat's YAML extension only added checks for dependabot.yml and release.yml, and unwantedRecommendations only hid a recommendation without disabling the extension, so both go. The tasks only wrapped make. The README no longer describes Neovim, as there's nothing to set up. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The page also described the repository's tooling, its lint and link check workflows, and embedded pyproject.toml and the Makefile, none of which are about Zensical. They move to a short CI section in the README, which already covers the tooling. The page keeps the site's layout, settings, plugins and features, and how it's built and deployed, and its embedding demo now embeds zensical.toml. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Studio formats the pages as Zensical's own docs are formatted: - a list item's text starts at its nested content's four-space indent - an admonition's text follows a blank line - tables' columns line up - emphasis uses underscores rumdl expected one space after a list marker, so a page formatted in VS Code failed its check. Without that rule, rumdl accepts Studio's format, and its own formatter leaves it unchanged. The pages render the same, apart from whitespace. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
On GitHub's runners, four sites refuse requests with 403, and github.com rate-limits its file pages with 503s that lychee's retries don't get past. lychee now accepts 403, 429 and 503, which also covers Stack Overflow, so only LinkedIn's 999 needs an exclude. The token goes too: lychee only uses it to check that a repository exists, which doesn't help with a file page. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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.
Moves the site from Material for MkDocs to Zensical, and brings the repository's tooling in line with md-doc-converter and rtl-project-template: uv and
pyproject.toml, a Makefile, rumdl, typos, actionlint and zizmor, SHA-pinned workflows, Dependabot with a cooldown, EditorConfig andAGENTS.md. Companion to patrick-5546/dotfiles#9 (merged), which sets Neovim up to lint and format Markdown with rumdl.Your questions
What switching to Zensical involves. Less than expected. Zensical 0.1.x builds the old
mkdocs.ymlunchanged and passes--strict. The real work was:zensical.tomlgh-deployShould Zensical Studio be used? Yes, in VS Code. The free edition previews the pages, completes links, anchors, snippets and icons, and formats and lints the pages as you write. It has no Neovim client or command line yet; both are on Zensical's roadmap. Studio takes over
docs/*.mdas "Python Markdown", which rumdl's extension doesn't handle, somake lintand CI remain the gate.Is every feature supported? Yes. All three plugins (search, git-revision-date-localized, social) are reimplemented natively. Admonitions, tabs, snippets, abbreviations, keys, math, icons, footnotes, task lists, code titles and line numbers, and
<figure markdown>all render.New features adopted:
llms.txtandllms-full.txt, plus an image lightbox*.draft.md), a site description and a CC0 footer, a logo and a faviconChanges
pyproject.tomlanduv.lock(releases at least 7 days old), a Python 3.15 pin, a Makefile (serve,build,lint,format,links,clean),.editorconfigand.gitattributes.zensical.tomlreplacesmkdocs.yml. Notable details:reference/mkdocs.mdbecomesreference/zensical.md, rewritten. Its old embeds pointed to files that no longer existed.lesstable on the Unix page.ci.ymllints and builds every push and PR. The strict build is the check for broken links, anchors and snippets.deploy.ymlbuilds again and deploys to Pages on every push to main, and on demand, as Zensical's own docs repo does. Only its deploy job can publish.links.ymlrunsmake linksweekly, on demand, and on pull requests that change it orlychee.toml. It fails only on dead links, not on sites that block GitHub's runners or rate-limit them. It replaces a scheduled check whose config file didn't exist. lychee comes from PyPI through uv, in its own dependency group, so it's locked and updated with the rest.zensical.tomlthe TOML mode Studio needs.zensical-studio.tomlturns on Studio's linter. The old debugpy launch configurations and cSpell settings go.AGENTS.mdpoints agents to it.LICENSE.mdbecomesLICENSE, as GitHub rendered its plain-text legal code with code blocks.Verification
make lintpasses, with zizmor's online audits (GH_TOKEN=$(gh auth token)).make buildpasses in strict mode with no warnings.make links(lychee 0.24.2, from uv) fails only on the README's two links to the new/reference/zensical/page, which resolve once this PR deploys. The Links check on this PR shows the same. Its first runs also failed on four sites that block GitHub's runners (403), and on github.com's rate limits (503), which lychee now accepts.katex@0resolves to. One used MathJax-only\displaylinesand now usesgathered.rumdl fmtleaves it unchanged.llms.txtsections produce the samellms.txt,llms-full.txtand page Markdown.api.github.comfor the header's star and fork counts.make serveand are left out of the build. Strict mode reports broken links duringservewithout stopping the server.After merging (I'll do these with
gh)build_type=workflow), run the Deploy workflow (gh workflow run deploy.yml), and confirm that the live site's generator is Zensical. Then limit thegithub-pagesenvironment tomain.mkdocs-material, addzensical.main.GOOGLE_ANALYTICS_KEYsecret and thegh-pagesandtest-mikebranches, and close Set up versioning #32 (mike).Follow-ups, not in this PR
reference/python.mdstill teaches pip, venv andrequirements.txt; it could cover uv.dot_config/git/config.tmpl,dot_zshrc, btop, therun_onchange_*scripts) or were removed (Alacritty)./reference/mkdocs/will 404, since redirects weren't added.