Skip to content

API Docs Standardisation#124

Open
sustained wants to merge 2 commits into
vuejs:masterfrom
sustained:api-docs-standardisation
Open

API Docs Standardisation#124
sustained wants to merge 2 commits into
vuejs:masterfrom
sustained:api-docs-standardisation

Conversation

@sustained

Copy link
Copy Markdown

Rendered

This RFC relates to the inconsistencies/lack of cohesion between the different VuePress-based API docs for Vue, Vuex, Vue Router, Vue CLI etc.

@yyx990803

Copy link
Copy Markdown
Member

This is definitely a good area for improvement (especially as we are reworking the core docs for v3).

We will most likely explore generating API references automatically from TS typings (we can already generate api.json files using api-extractor for vue-next). Once we find that working well we can apply that workflow to sub projects as well.

@sustained

Copy link
Copy Markdown
Author

Thanks for the response.

That sounds promising, I will definitely have to take a closer look at this "api-extractor" and the JSON it generates for vue-next. Just to clarify, you are referring to this Microsoft tool, yes?

@yyx990803

Copy link
Copy Markdown
Member

@sustained yes, vue-next uses it to rollup types and extract API metadata.

@CyberAP

CyberAP commented Jan 29, 2020

Copy link
Copy Markdown
Contributor

@yyx990803 I think people would also appreciate if Vue 3 docs had examples written both in JS and TS, where you could toggle between those two.

@yyx990803

Copy link
Copy Markdown
Member

@CyberAP TS code and JS code will look almost the same as most of the APIs provide decent inference.

@yyx990803 yyx990803 added the docs label Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants