docs: add versioned documentation site built with Zensical#1011
docs: add versioned documentation site built with Zensical#1011nielspardon wants to merge 4 commits into
Conversation
Add a user-facing documentation site under docs/, built with Zensical and published as multi-version docs via the Zensical-compatible fork of mike. Tooling and layout mirror substrait-io/substrait-python. - pixi.toml: a docs environment (zensical + mike fork) exposing docs-build / docs-serve tasks; Python and dependencies are managed with pixi - zensical.toml: Material theme, explicit nav for the four modules, and the mike version provider for the version selector - docs/: comprehensive guides for core, isthmus, isthmus-cli, and spark, plus a landing page and getting-started - .github/workflows/docs.yml: build-check on pull requests and pushes to main - .github/workflows/docs-deploy.yml: on release tags, publishes the minor version series to the gh-pages branch via mike and updates the latest alias Enabling GitHub Pages is a one-time manual step: after the first deploy creates the gh-pages branch, set Settings -> Pages -> Deploy from a branch -> gh-pages.
Tell agents that the user guide under docs/ must be kept in sync with the code as substrait-java evolves, describe the Zensical + pixi tooling and how to preview/build it, and add "update the docs/ page" to the feature-addition checklist.
The CLI example output was carried over from the module README, which predates the Substrait extension URI -> URN migration. Update the PROTOJSON snippets to the current format: extensionUrns / extensionUrnAnchor / urn (e.g. extension:io.substrait:functions_comparison) and extensionUrnReference, matching what the tool emits today.
The isthmus-cli README example output predates the Substrait extension URI -> URN migration. Update the PROTOJSON snippets to the current format (extensionUrns / extensionUrnAnchor / urn / extensionUrnReference), matching the CLI usage guide under docs/.
|
will we be able to include the documentation from the JavaDoc as well? |
probably something we can investigate in a follow-up. technically, it is included via links but need to check what Zensical currently supports in terms of embedding it |
|
Is there output we can look at where you have run this on your fork so we don't have to manually stand up and run the doc build process to review it? |
I don't have this deployed. Running it locally is straightforward if you have pixi installed: |
|
It would give some confidence that the GitHub Actions workflows are good if they were run in a fork before merging here, although I guess it should not break any other part of the build. I suspect some repository settings might need to change to allow the workflow to run successfully and published documentation to be viewable. Any changes can be identified and documented by testing in a fork. |
I have everything prepared. I can not finalize the repo settings without this being merged and run. |
What
Adds a user-facing documentation site under
docs/, built withZensical (from the Material for MkDocs team) and published
as multi-version docs via the Zensical-compatible fork of
mike. There was previously no user-facingguide — users learned the API from the READMEs and tests. Tooling and layout
mirror
substrait-io/substrait-pythonso the two repositories stay consistent.Contents
docs/— comprehensive guides segmented into the four modules:SubstraitBuilderDSL), types, expressions,relations, serialization, extended expressions, function & type extensions.
the type system, customization, and supported SQL.
plans, supported features, and the end-to-end example.
real APIs and tests rather than invented.
zensical.toml— Material theme,site_url, explicitnav, and themikeversion provider (renders the version selector).
pixi.toml— adocsenvironment (zensical+ themikefork) withdocs-build/docs-servetasks. Python and the docs dependencies are managedwith pixi.
.github/workflows/docs.ymlbuild-checks the docs on every PR and pushto
main..github/workflows/docs-deploy.ymlpublishes versioned docs to thegh-pagesbranch viamikeon release tags (the bareX.Y.Ztag publishes theminor series
X.Yand updates thelatestalias), and can be run manually viaworkflow_dispatch.readme.md/CONTRIBUTING.md— a Documentation section (hosted URL, localpreview/build, authoring guidelines).
Building locally
Enabling GitHub Pages (one-time, after merge)
Versioned publishing needs the
gh-pagesbranch to exist before Pages can pointat it:
gh-pages), orlet the next release tag create it.
gh-pages/ (root).latestalias. Adjustsite_urlinzensical.tomlif the site is served froma custom domain.
Verification
pixi run docs-buildcompletes with no issues (Zensical includes link validation).mike deploy+mike set-defaultlocally (no push): correctgh-pageslayout (
<version>/,latest/,.nojekyll,versions.json, root redirect).until GitHub Pages is enabled.
🤖 Generated with AI