This repository was archived by the owner on Sep 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 84
New api generator discussionΒ #26
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Currently we are using sveltedoc-parser to generate JSON files that we can use in the website as API documentation.
Svelte is moving to Typescript and components too. Multiple options are available :
- Keep documenting components inside the
.svelte
file via comments. With thissveltedoc-parser
is fully functional with props/slots/events documentation. - Move documentation to the typing definitions, inside
.d.ts
files. We need to change the script to generate the JSON files. We can use native typescript compiler API, tsdoc parser, api-extractor or typedoc. With this option we can only type props until this get approved or similar.
I started to implement a mix between sveltedoc-parser and typescript compiler api in this PR : #25.
Feel free to discuss about it.
TheComputerM
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request