Repository navigation
Description
The problem
Mintlify is currently configured with no build step — it reads files directly from a branch (main for prod, update-docs for preview). This works perfectly for the hand-authored static content in PR #601.
PR #611 introduces a generated API reference that cannot follow the same model. The docs are built from Python source by tooling/docs-autogen/ and must be regenerated on every release. They are excluded from git tracking (.gitignore) precisely so they are never hand-edited or accidentally committed.
The tension: Mintlify will never see the API docs unless we either add a build step or commit the generated output somewhere it can read from.
Options
A — Commit generated output on each release (minimal change)
Keep docs-autogen-pr.yml: CI generates the API docs on each tag and commits them via a PR. Mintlify needs no config change. Generated files re-enter the repo on every release — requires the .gitignore approach in #611 to be revisited (or replaced with a convention).
B — Dedicated publish branch (clean, more work)
A docs-publish branch is never directly committed to. On each release, CI combines the static content from main with freshly generated API docs and pushes the result to docs-publish. Mintlify is reconfigured to read from that branch. main stays clean. Requires a Mintlify config change and a pipeline step to carry the static content across.
C — Mintlify custom build step (investigate)
If Mintlify supports running an arbitrary build command, the pipeline could run there with no branch changes needed. Needs investigation.
When to decide
After PR #601 and PR #611 have both merged, since the Mintlify branch config and the .gitignore boundary are established by those PRs respectively. Option B is the cleanest long-term answer; Option A is lowest friction to unblock publishing.
Activity
planetf1 commentedon Mar 11, 2026
I'm ok to set this up, though wanted to get agreement. I don't think I'll need repo admin, but will need to have mintlify access, or for someone else to change the source mintlify reads from
A further tweak is to make this version specific but I don't know how mintlify handles this - can look, but probably simplest to skip until after release.
psschwei commentedon Mar 11, 2026
Just to level-set a bit:
For the short term, we need to publish the API for v0.4
For the middle term, we need to be able to:
In the middle to long term, we also want to revisit the tooling we are using to publish the docs and where they are hosted.
For the short term (i.e. the next week), I would go with the minimal approach A. Lets get the API docs published. Then the first week of April, we do a design session and figure out what our ideal docs strategy should be. wdyt?
[-]docs: decide on generated API docs commit strategy (build-time vs publish-time)[/-][+]docs: implement publishing pipeline[/+]planetf1 commentedon Mar 12, 2026
There are complications with A (triggering CI, permissions) easily avoided I think by B. Therefore I propose to try that first as it's less work (I know the original post suggested more, but I've had time to think)
Once we get the other PRs merged I'll start this
planetf1 commentedon Mar 12, 2026
Architecture Update: Mintlify Docs Publishing Strategy
To clear up some confusion regarding our documentation deployment, here is the technical rationale for using isolated deployment branches.
The Challenge: Mintlify requires a Git branch to sync
.mdxfiles from. Our documentation combines two distinct sources:The Solution: We will use GitHub Actions to compile both sources into a single directory tree and push the finalized output to dedicated, automated orphan branches. The workflow triggers will be:
main: Triggers a build that pushes the output todocs/staging.docs/production.(Note: These specific branch names are placeholders and subject to change).
We have existing scripts handling parts of this process, which will be consolidated into a single, unified workflow. Mintlify will then be configured to sync exclusively from these deployment branches.
Why this is the best approach (Pros):
mainClean: Committing generated artifacts directly tomainpollutes our Git history with automated commits every time a Python docstring changes.gh-pagesdeployment model used to bridge source code and Git-based hosting.Trade-offs & Mitigations (Cons):
.mdxfiles, which the next pipeline run would instantly overwrite._DO_NOT_EDIT_.mdfile at the root of these branches, pointing developers back tomainas the source of truth.Mintlify Configuration
To connect this architecture to Mintlify, the configuration relies on the structure of our target branches and the Mintlify dashboard settings:
docs/stagingand production todocs/production).mint.jsonFile: Our GitHub Actions pipeline must ensure that ourmint.jsonfile is copied to the root of the target branch during the build step, alongside the compiled.mdxfiles.Because Mintlify operates via a GitHub App integration, it simply listens for webhooks on the branches we specify. Once the GitHub Actions pipeline pushes the combined docs to
docs/stagingordocs/production, Mintlify will detect the commit and automatically trigger the corresponding environment deployment.@nrfulton @jakelorocco @HendrikStrobelt @psschwei
psschwei commentedon Mar 12, 2026
could we document the docs pipeline in the repo ?
docs: implement publishing pipeline (generative-computing#617)
docs: implement publishing pipeline (generative-computing#617)
planetf1 commentedon Mar 13, 2026
I've added in a draft PR. However it's not really ready for review yet -- I need to get the other PRs merged.
I've now completed the mandatory ones (for the main docs review I've fixed many, but offloaded some issues to separate issues so we can get the pipeline in place asap)
planetf1 commentedon Mar 13, 2026
Opened #645 - we should track making sure that second-pass is done prior to the release.
planetf1 commentedon Mar 13, 2026
From PR #611 review — two items deferred to this issue:
workflow_dispatchfor manual CI runs (psschwei)tooling/docs-autogen/test/subdirectory (psschwei)docs: implement publishing pipeline (generative-computing#617)
docs: implement publishing pipeline (generative-computing#617)
docs: implement publishing pipeline (#617) (#646)
docs: implement publishing pipeline (generative-computing#617) (gener…