Conversation
- Refactor typedoc.js to use entryPoints resolve strategy and auth0 theme - Add scripts/typedoc-plugin.js: categorizes exports and extends sidebar nav - Add scripts/typedoc-plugin-mintlify.js: injects markdown type links for Mintlify - Add typedoc.docsv2.js: JSON-only config for docs-v2 Mintlify pipeline - Add docs:docsv2 npm script for generating the Mintlify artifact
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: auth0/auth0-react/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe pull request expands TypeDoc configuration and navigation, adds Mintlify JSON link generation, updates documentation scripts, and changes package versions. ChangesTypeDoc documentation generation
Package and script updates
Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~45 minutes Change: Other Sequence Diagram(s)sequenceDiagram
participant TypeDoc
participant typedoc.js
participant typedoc-plugin-mintlify.js
participant JSONArtifact
TypeDoc->>typedoc.js: Load documentation options
TypeDoc->>typedoc-plugin-mintlify.js: Resolve documented reflections
typedoc-plugin-mintlify.js->>JSONArtifact: Append Mintlify markdown links
TypeDoc->>JSONArtifact: Write formatted JSON output
Suggested reviewers: Merge Risk: ⚪ Minimal · up to This change adds TypeDoc and Mintlify SDK reference generation and updates package versions; no concrete production-impacting risk is evidenced, so it is mergeable with normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
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. Comment |
|
Closing this PR as newer PR is up adding this changes with enhancements - #1258 |
## Summary Updates TypeDoc so the generated API reference is grouped into readable sections (Getting Started, Hooks & HOCs, Context, Errors, Reference) instead of a flat alphabetical list. Categories derive from `@category` tags on the public declarations, a plugin controls category order and warns when an own-symbol is left uncategorised, and the sidebar now surfaces `Auth0ContextInterface` members grouped by category. No runtime changes, only documentation-related updates. ## Supersedes This PR supersedes and closes the earlier docs-reference work: - #1242 — feat(docs): add foundation for automating SDK reference docs - #1210 — docs: generate a Mintlify SDK reference artifact from TypeDoc ## Changes - **Entry point**: reference is generated from `src/index.tsx` (the public contract) rather than expanding the whole `src/` tree, keeping internal modules (reducer, auth state, utils) out. - **Grouping by category**: `typedoc.js` groups the landing page and sidebar by `@category`, wired to the plugin's `CATEGORY_ORDER` and `DEFAULT_CATEGORY`. - **Plugin** (`scripts/typedoc-plugin.js`): controls category order and validates categories per reflection against level-scoped allowed-sets (top-level vs interface-member). - **Category tags**: `@category` tags added across the public surface (hooks/HOCs, provider options, context interface + its members, errors, and re-exported spa-js option/claim typesunder Reference). `Auth0ContextInterface` members are tagged so they appear grouped in the sidebar. ## Testing - `npm run docs:docsv2` — generates the Mintlify JSON artefact (exit 0; Reference holds 60 symbols, 57 re-exported). - `npm test` — 100% coverage, all tests pass. - `npm run lint` — clean. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Documentation * Added a categorized SDK reference with clearer navigation for authentication state, errors, hooks, and getting started. * Made the Getting Started and Hooks & HOCs navigation groups expanded by default when no saved preference is available. * Clarified the `useAuth0` documentation, including the returned auth state, methods, and available sub-clients. * Added a JSON documentation output alongside the existing documentation format. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Michael Perrotte <mike@mikecorp.ca>
By submitting a PR to this repository, you agree to the terms within the Auth0 Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
References
Testing
Checklist
Summary by CodeRabbit