This repository was archived by the owner on Sep 26, 2022. It is now read-only.
This repository was archived by the owner on Sep 26, 2022. It is now read-only.
New api generator discussion #26
Open
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.