Skip to content

docs: add Mintlify SDK reference generation - #1715

Draft
gyaneshgouraw wants to merge 4 commits into
mainfrom
mintlify
Draft

docs: add Mintlify SDK reference generation#1715
gyaneshgouraw wants to merge 4 commits into
mainfrom
mintlify

Conversation

@gyaneshgouraw

@gyaneshgouraw gyaneshgouraw commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds tooling to generate the files required by docs-v2 to publish the auth0-spa-js API reference using Mintlify.

Mintlify supports TypeDoc JSON, but the default output creates a flat reference grouped by TypeScript kind and does not link type names. This PR improves the generated output to make the SDK reference easier to navigate.

Changes

  • Groups SDK exports into meaningful categories such as Getting Started, Clients, and Configuration.
  • Groups Auth0Client members by task and exposes client methods directly in the sidebar.
  • Adds links to type references in Mintlify pages.
  • Adds npm run docs:docsv2 to generate:
    • The TypeDoc artifact used by Mintlify.
    • The curated sidebar navigation used by docs-v2.
  • Generates both files under mintlify/docsv2/, matching the docs-v2 directory structure.
  • Adds one @category annotation in src/.
  • Existing docs/ output is intentionally not regenerated to keep this PR focused on docs-v2 tooling.

Testing

Run:

npm run docs:docsv2

This generates the following files:

Generated file docs-v2 destination
mintlify/docsv2/sdk-artifacts/auth0-spa-js.json main/sdk-artifacts/auth0-spa-js.json
mintlify/docsv2/config/navigation/generated/spa-js-reference.en.json main/config/navigation/generated/spa-js-reference.en.json

Both files should be published together because the generated navigation references pages created from the TypeDoc artifact.

- Refactor RefreshTokenMode documentation to enhance clarity and update the title to "Auth0 SPA SDK".
- Modify package.json to streamline TypeDoc command by removing unnecessary parameters.
- Introduce a new TypeDoc plugin to categorize exports and enhance sidebar navigation for better usability.
- Add custom CSS for TypeDoc to improve the appearance of the sidebar and prevent clipping of long names.
- Update global.ts to correctly categorize ClientConfiguration under "Configuration".
- Revise typedoc.js to improve entry point handling, exclude unnecessary files, and customize the documentation output.
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f7f0ffe4-d694-4398-8a1b-981203398fae

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

gyaneshgouraw and others added 2 commits August 11, 2026 14:32
Keeps this PR to tooling only. The docs/ HTML will be regenerated in a
follow-up, since nothing in CI builds it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The local preview only ever served `mint dev` against a hand-written
`mintlify/docs.json`, which was never tracked. Nothing it produced was
published, so removing it costs nothing: previewing means copying the two
generated files into a docs-v2 checkout and running `mint dev` there.

Collapses the nav script's two presets into one path, and inlines
`typedoc.mintlify.js` into `typedoc.docsv2.js`, whose only distinctive
values existed for the preview and were already overridden.

Output is unchanged: the nav file is byte-identical and the artifact differs
only in the commit SHA baked into source URLs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant