Repository navigation
chore: build the Mintlify docs artifact as part of npm run docs - #1284
Merged
Merged
Conversation
`npm run docs` now builds both references: the HTML site in `docs/` via `docs:html`, and the Mintlify JSON in `mintlify/` via `docs:docsv2`. Since `.shiprc` runs `npm run docs` on postbump, both stay in sync per release. The artifact moves to a flat `mintlify/auth0-react.json` and is no longer gitignored, so the release commit carries it. It stays outside `docs/` because `typedoc.js` cleans that directory on every HTML build. Added to `.prettierignore` and `.semgrepignore` alongside `docs/`, so generated output is treated consistently. Mirrors the same change in auth0-spa-js. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
yogeshchoudhary147
approved these changes
Oct 9, 2026
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.
Summary
npm run docsnow builds both API reference artifacts: the HTML site indocs/and the Mintlify JSON inmintlify/auth0-react.json. The artifact is committed rather than gitignored.Motivation
docs-v2 expects each SDK's Mintlify artifact to be present in the SDK repo itself, so it has to be tracked here and refreshed on every release.
.shiprcrunsnpm run docson postbump, so one command keeps both references in sync per release.Changes
docs→docs:html && docs:docsv2, withdocs:htmlas the HTML-only stepmintlify/auth0-react.json, kept outsidedocs/becausetypedoc.jscleans that directory on every HTML build.gitignore; added to.prettierignoreand.semgrepignorealongside the existingdocs/entryNo source or public API changes.
Testing
npm run docsemits both artifactsnpm run docs:htmlalone leaves the JSON byte-identicalnpx prettier --check mintlify/passesReferences
Mirrors auth0/auth0-spa-js#1791.