Repository navigation
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
An eager import of griffe from the uninstalled docs dependency group causes invoke deps.install to fail on fresh checkouts, blocking local setup and fresh CI jobs.
1 open issue
What changed in this PR
Migrates the library’s documentation from MkDocs and Read the Docs to Astro/Starlight on GitHub Pages, bringing documentation builds into the existing mise and GitHub Actions workflow.
Changes:
- Carries over existing guides and loads changelog and contributing content from root files.
- Adds a griffe-based API reference generator with fixture-based unit tests.
- Adds documentation build/deployment jobs and removes the old documentation toolchain.
| File | Description |
|---|---|
uv.lock |
Replaces MkDocs dependencies with griffe. |
tests/unit/tasks/reference/test_generator.py |
Tests generated pages, signatures, links, and warnings. |
tests/unit/tasks/reference/fixtures/acme/kit/surface/widgets.py |
Supplies public and private object fixtures. |
tests/unit/tasks/reference/fixtures/acme/kit/surface/tools.py |
Supplies exported-module fixtures. |
tests/unit/tasks/reference/fixtures/acme/kit/surface/nested/parts.py |
Supplies nested object definitions. |
tests/unit/tasks/reference/fixtures/acme/kit/surface/nested/__init__.py |
Exercises aliases and nested exports. |
tests/unit/tasks/reference/fixtures/acme/kit/surface/helpers.py |
Supplies an unexported function fixture. |
tests/unit/tasks/reference/fixtures/acme/kit/surface/extras/__init__.py |
Supplies a public subpackage fixture. |
tests/unit/tasks/reference/fixtures/acme/kit/surface/_hidden/__init__.py |
Exercises private subpackage exclusion. |
tests/unit/tasks/reference/fixtures/acme/kit/surface/__init__.py |
Defines public-surface fixture exports. |
tests/unit/tasks/reference/fixtures/acme/kit/signatures/__init__.py |
Exercises generic and callable signatures. |
tests/unit/tasks/reference/fixtures/acme/kit/references/reports.py |
Supplies method cross-reference fixtures. |
tests/unit/tasks/reference/fixtures/acme/kit/references/__init__.py |
Exercises cross-package and external references. |
tests/unit/tasks/reference/fixtures/acme/kit/minimal/__init__.py |
Supplies a minimal package fixture. |
tests/unit/tasks/reference/fixtures/acme/kit/docstrings/__init__.py |
Exercises docstring sections and parser warnings. |
tests/unit/tasks/reference/fixtures/acme/kit/_internal/__init__.py |
Exercises private top-level package exclusion. |
tasks/reference/warnings.py |
Collects griffe parsing warnings. |
tasks/reference/surface.py |
Discovers public objects and canonical paths. |
tasks/reference/signatures.py |
Renders typed API signatures. |
tasks/reference/rendering.py |
Assembles reference pages and anchors. |
tasks/reference/links.py |
Resolves API cross-references. |
tasks/reference/docstrings.py |
Renders Google-style docstring sections. |
tasks/reference/code.py |
Escapes and links rendered code tokens. |
tasks/reference/__init__.py |
Coordinates reference generation. |
tasks/docs.py |
Generates references before serving or building Astro. |
README.md |
Updates documentation badge and links. |
pyproject.toml |
Updates documentation dependencies, URLs, and tooling paths. |
mkdocs.yml |
Removes MkDocs configuration. |
mise.toml |
Pins Node and adds documentation task prerequisites. |
meta/work/2026-11-03-starlight-docs-site.md |
Records migration scope and design. |
meta/work/2026-11-03-starlight-docs-site-tickets.md |
Records implementation and rollout tasks. |
docs/tsconfig.json |
Configures Astro TypeScript support. |
docs/stylesheets/readthedocs.css |
Removes Read the Docs styling. |
docs/src/loaders.ts |
Loads root Markdown documents into the site. |
docs/src/content/docs/index.md |
Adds the landing page and installation instructions. |
docs/src/content/docs/guides/finalising-state.md |
Carries over the finalising-state guide. |
docs/src/content/docs/getting-started.md |
Adds the current asynchronous usage example. |
docs/src/content.config.ts |
Configures documentation content and root pages. |
docs/public/favicon.svg |
Adds the site favicon. |
docs/package.json |
Defines Astro dependencies and scripts. |
docs/overrides/main.html |
Removes the MkDocs template override. |
docs/javascript/readthedocs.js |
Removes Read the Docs integrations. |
docs/index.md |
Removes the old single-page documentation. |
docs/astro.config.mjs |
Configures Starlight navigation, hosting, and link validation. |
CONTRIBUTING.md |
Updates the documentation URL. |
changelog.d/20261103_133510_phelma_docs_starlight_site.md |
Announces the documentation migration. |
.readthedocs.yaml |
Removes Read the Docs build configuration. |
.gitignore |
Ignores Astro artifacts and generated reference pages. |
.github/workflows/pr-checks.yaml |
Adds a build-only documentation check. |
.github/workflows/docs.yaml |
Builds and deploys documentation to GitHub Pages. |
Review effort: Balanced
Comment on lines
+6
to
+25
| from .reference import generate_reference | ||
|
|
||
| REFERENCE_DIRECTORY = Path("docs/src/content/docs/reference") | ||
| PACKAGE_ORDER = [ | ||
| "store", | ||
| "types", | ||
| "projection", | ||
| "processing", | ||
| "persistence", | ||
| "query", | ||
| "sources", | ||
| "testing", | ||
| "utils", | ||
| ] | ||
|
|
||
|
|
||
| @task | ||
| def reference(context: Context): | ||
| """Generates the API reference pages from the source.""" | ||
| shutil.rmtree(REFERENCE_DIRECTORY, ignore_errors=True) |
phelma
force-pushed
the
docs-starlight-site
branch
from
November 4, 2026 11:26
6f6e98f to
2bcceff
Compare
phelma
force-pushed
the
docs-starlight-site
branch
from
November 4, 2026 12:08
2bcceff to
ee13f13
Compare
Pin Node 24 in mise and add an Astro and Starlight project in docs with Home and Getting started pages carried over from the README and the existing docs index. Point the docs invoke tasks at the Astro build, and add a docs workflow that builds with mise and deploys to GitHub Pages on pushes to main and docs/starlight-site. The MkDocs and Read the Docs setup is left in place for now.
phelma
force-pushed
the
docs-starlight-site
branch
from
November 4, 2026 14:38
ee13f13 to
4bdcb60
Compare
Builds from force-docs-publish show a banner on every page saying the site is a preview for feedback, linking to the PR and the commit built. Builds from main are unchanged.
phelma
force-pushed
the
docs-starlight-site
branch
from
November 4, 2026 16:42
db8e528 to
869ee44
Compare
The generator wrote headings as raw HTML, which Astro does not collect,
so the "On this page" list held only Overview. It now writes Markdown
headings with {#id} attributes, keeping the dotted anchors, and the
Markdown processor is configured to accept them.
Show the values of class attributes and enum members, use the exported name in signatures of renamed re-exports, document behavioural dunder methods, and skip packages with nothing to document rather than generating an empty page.
Astro components, driven by Motion, that illustrate event sourcing using a shared shopping cart example.
Any branch can be force-pushed to it to deploy a preview, however the changes are split across branches and PRs.
phelma
force-pushed
the
docs-starlight-site
branch
from
November 4, 2026 16:57
dbb2121 to
70e9d9f
Compare
3 tasks
Contributor
Author
|
Closed in favour of #148, which combines the whole docs stack into one PR. |
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.

Replaces the MkDocs and Read the Docs site with an Astro and Starlight site, published to GitHub Pages at https://logicblocks.github.io/event.store/.
Spec:
meta/work/2026-11-03-starlight-docs-site.md. Tickets:meta/work/2026-11-03-starlight-docs-site-tickets.md.What's in it
docs/: Node 24 is pinned in mise and the npm lockfile is committed. It uses Starlight's default theme, Pagefind search, the GitHub link and "Edit this page" links.starlight-links-validatorfails the build on any broken internal link.CHANGELOG.mdandCONTRIBUTING.mdat build time.tasks/reference/, one page per public package, from__all__. Anchors are the dotted import paths, and links between packages work. The output is gitignored and regenerated bymise run docs:serveandmise run docs:build. It is covered by fixture-based unit tests intests/unit/tasks/.Docsworkflow builds with mise and deploys withactions/deploy-pages, and PR checks gain a build-onlydocsjob.mkdocs.yml,.readthedocs.yaml, the MkDocs overrides, scripts and styles, and the mkdocs dependencies. The README badge and links, the contributing guide and the PyPIDocumentationURL now point to the new site. There is a changelog fragment under "Changed".Comparing old and new
While this PR is open, the
Docsworkflow also deploys fromdocs-starlight-site, and thegithub-pagesenvironment allows that branch. Read the Docs only buildsmain, so https://eventstore.readthedocs.io/ keeps serving the old site until this is merged.Before and after merging
docs-starlight-sitefrom theon.push.brancheslist in.github/workflows/docs.yaml, either as the last commit before merging or straight after.Docsrun onmaindeploys successfully.docs-starlight-sitefrom thegithub-pagesenvironment's deployment branch policy.Notes
logicblocks.event.utilshas no__all__, so its reference page is empty. Adding one is a source change and is left for the separate docstrings effort.docs-starlight-site, notdocs/starlight-site, because adocsbranch already exists on the remote.