docs: add versioned documentation site built with Zensical#1011
Draft
nielspardon wants to merge 4 commits into
Draft
docs: add versioned documentation site built with Zensical#1011nielspardon wants to merge 4 commits into
nielspardon 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/.
Contributor
|
will we be able to include the documentation from the JavaDoc as well? |
Member
Author
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 |
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.
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