-
Notifications
You must be signed in to change notification settings - Fork 16
Update kompendium #3708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update kompendium #3708
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 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 |
5199126 to
68a62db
Compare
9d7703d to
88e506c
Compare
After upgrading Kompendium (which upgraded TypeDoc from 0.17 to 0.23), many types were missing from documentation. TypeDoc 0.23 changed how it follows exports and removed the `isExported` flag. Root cause: - Examples import from '@limetech/lime-elements' causing circular imports - Stencil's generated components.d.ts included these circular imports - TypeDoc couldn't parse the entry point when tsconfig excluded dist/ Solution: Two-step build process 1. Build dist with stencil.config.dist.ts (excludes examples via tsconfig.dist.json) 2. Build docs with stencil.config.docs.ts (uses clean dist/types from step 1) Changes: - Update tsconfig.docs.json to include dist/types in TypeScript program - Update docs:build script to run dist build before docs build - Point both configs to dist/types/index.d.ts for consistent type resolution - Remove duplicate exports from interface.ts already in components.d.ts (FormError, ValidationError, ValidationStatus, ListSeparator) - Add explanatory comments to config files documenting the architecture Result: All public API types now documented (ChartItem, Tab, ListItem, FormSchema, PickerValue, CustomColorSwatch, Link, etc.) Dev build (npm start) will have imperfect docs due to circular imports from examples, but production docs (npm run docs:build) are complete.
This reverts commit ec4fc3d.
3e5e0fb to
7e59507
Compare
🚨 Test-PR for updates in Kompendium.
See jgroth/kompendium#150
@coderabbitai summary
Review:
Browsers tested:
(Check any that applies, it's ok to leave boxes unchecked if testing something didn't seem relevant.)
Windows:
Linux:
macOS:
Mobile: