chore: rebuild the dev env from the common and zensical template layers #90
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/templates-rebuild"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Applies the
commonshared layer and thezensicalbase type. First adoption for this repo. Templates revisionaa6f213; no variants (no docs variant — the base type is the docs site; no versioning, since a docs site has no version to cut).Also carried in this branch
9733df9(build(deps): update zensical to 0.0.51) was committed on localmainbut never pushed. The branch was cut off localmain, so that commit rides along here rather than being pushed tomaindirectly.Kept, not replaced
zensical.toml— the layer ships a stock config, but this repo's carries the realnav,site_url, theme and plugin setup. Replacing it would gut the site's navigation, so it is kept on the same principle the container layer keeps a realDockerfile.docs/— authored content. The layer's starterindex.md/markdown.mdapply only to a repo with no docs of its own.src/modernleft_mkdocs/— untouched; no layer provides it. See below.Publish target
docs.ymlbecomespublish-docs.yml(git records it as a rename), withsite:overridden tohttps://docs.modernleft.org/rather than the layer default of<owner>.modernleft.page/<repo>/.site_urlinzensical.tomlalready matches and is unchanged. The rename matters: adding the new file without removing the old would leave two workflows publishing on every push tomain.The job also moves from
runs-on: dockerwith a hand-pinnedimage: general-ci:0.2.0to themodernleft-general-cirunner label, so the image version stops being this repo's problem.New gates
test.yml—zensical build --stricton pull request.--strictturns a broken link or anchor into a non-zero exit; without it the build only warns, which is how this repo has been running. Deliberately nopaths-ignore: "**/*.md", since Markdown is this repo's source.code-quality.yml—uv lock --checkplusprettier --check.The
Makefilegains the fullpre-commit/lint/format/typecheck/test/cleancontract; it previously carried onlydev,format, andbuild.Manifest
zensicalmoves from a runtime dependency to thedevgroup, andpackage = falseis set — a docs site has no wheel to build. The lock resolvedzensical 0.0.51 -> 0.0.52.Prettier no longer touches
docs/The shipped
.prettierignoreexcludesdocs/. Prettier de-indents Python-Markdown admonition, content-tab, and details bodies, silently detaching them from their block, andzensical build --strictdoes not catch it. Upstream will not fix this: prettier/prettier#8640 (open since 2020) and prettier/prettier#12985 (open since 2023).Verified locally
prettier --checkpasses andzensical build --strictreportsNo issues found— no pre-existing broken links surfaced by turning strict mode on.Not for merge without review — the publish workflow deploys the live site on merge.