Repository navigation
Conversation
GitHub nests the blocks of a list item at the column of its text, 2 spaces after "- " and 3 after " * ". Python-Markdown, which builds the documentation site, nests them at 4 spaces per level: it rendered the nested lists and the code blocks of these files out of their items. Their items are written like the pages of doc/ write them, "- text", with a blank line between a nested block and the next item of a loose list. Only whitespace changes: GitHub renders both files the same.
doc/, README.md, UPGRADE-2.0.md and CHANGELOG.md become a site, built by Zensical with its theme: a light and a dark mode, a search, the fonts of the system, and no request to Google Fonts. Zensical reads the pages from a single directory, which can't be the root of the repository, and runs no hooks: tools/zensical/pages.py copies them to var/docs first, and rewrites the links between the files of the root and doc/, which stay relative paths of the repository, as GitHub shows them. The Documentation workflow builds the site, strictly, on the pull requests changing it, and deploys it to GitHub Pages from main. Dependabot updates its Python dependencies. zensical.toml stays out of the archive Composer installs.
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.
This PR publishes the documentation as a site, on GitHub Pages, built by Zensical.
Commits
doc/,README.md,UPGRADE-2.0.mdandCHANGELOG.mdbecome the pages of the site, with the theme of Zensical: a light and a dark mode, following the system or chosen, a search, a copy button on code blocks, a table of contents that follows the scrolling. The fonts are the ones of the system: no request to Google Fonts.tools/zensical/pages.py, about 70 lines of Python without dependency, copies them tovar/docsfirst, and rewrites the links between the files of the root anddoc/. They stay relative paths of the repository: GitHub shows the same files as before.Documentationworkflow builds the site in strict mode, where a broken link or anchor fails, on the pull requests that change it, and deploys it frommain. Dependabot updates the Python dependencies oftools/zensical/requirements.txt.zensical.tomlstays out of the archive Composer installs.To preview the site, with the packages of
tools/zensical/requirements.txt:Why Zensical
It is the successor of Material for MkDocs, by its team: Material is in maintenance mode, and MkDocs 1.x is no longer maintained, while MkDocs 2.0, in pre-release, drops plugins. Zensical is at 0.0.70, released often:
requirements.txtpins it, and Dependabot proposes the updates.Before merging
Known limits
zensical serveshows the copies ofpages.py: a change to the pages needs it again.$of the shell examples too.startinline, a<?phpat the start of an example is colored as text.On a phone, in the dark mode