-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature consideration: MDX support #30
Comments
When it comes to mdxjs, it should be possible to use demos in markdown, as they're just components. Regarding dosc in vue-book I already did something similar and I stopped moving in that direction because there was pretty much no positive feedback (myself included). What I did was binding every component to its relations and providing a way to move between component and its children. I also added description to component demo. Let's speak of today. What I can potentially do without too much of a stretch is something like this. <!-- In demo file -->
<VbDocs :component="YourComponent"> And that would display component props (with type and required) and, let's say, methods. So, while this seems like a good idea on the surface, it doesn't allow for jsdoc or any other kind of description. And, actually, is not much different from checking these in IDE. Also we have a product for generating component docs for jsdoc-ed components (https://github.com/vue-styleguidist/vue-styleguidist). Overall I'm positive as that's not the first time I was asked about component documentation, but I have to find a right spot to strike. |
I think there are a couple interconnected issues here, and it's also not clear where this functionality should live (IDE, vuedevtools, vue-book, Docute, other?). a) ability to document a component through introspection.
b) ability to call methods
My 2 cents would be:
|
would be nice to be able to document components in the book, eg using MDX:
https://mdxjs.com/
Note: not entirely clear to be if this really a feature for vue-book, or for a documentation system like Docute.
Seems to work with Vue:
mdx-js/mdx#238
The text was updated successfully, but these errors were encountered: