Skip to content
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

Use jsdoc (or another tool?) to document .vue files #640

Open
kinow opened this issue Apr 6, 2021 · 2 comments
Open

Use jsdoc (or another tool?) to document .vue files #640

kinow opened this issue Apr 6, 2021 · 2 comments
Milestone

Comments

@kinow
Copy link
Member

kinow commented Apr 6, 2021

Describe exactly what you would like to see in an upcoming release

At the moment jsdoc is parsing our .js files, but not the .vue files. I noticed this when I was writing some docs some days ago for @giulianoserrao . I wanted to update our Wiki here with auto-generated docs, instead of writing manually about each component.

I thought since we had jsdoc it would be just a copy and paste job until we had some GH action updating gh-pages or the Wiki, but alas it's not working as expected.

Additional context

Pull requests welcome!

@kinow kinow added this to the 0.4.0 milestone Apr 6, 2021
@kinow kinow self-assigned this Apr 6, 2021
@kinow
Copy link
Member Author

kinow commented Apr 6, 2021

  • 👎 jsdoc-vuejs
    • was the first search hit I found; it's not part of the vue org, and while it has ~9 contributors, not sure whether it'd be compatible with Vue3 and going forward. Tested and installed it, but without success trying to run it to generate docs for our existing components.
  • 🤔 vuepress
  • 👎 propdocs
  • 👎 Storybook
    • looks interesting, but also way more powerful than what we need; also appears to require creating files with the docs for each component, so I guess docs & code could get out-of-sync?
  • 👎 jsdoc
    • I think, in theory, that there should be some way to tell jsdoc to use the webpack+babel generated files (i.e. the js files generated after the .vue components are processed), but after looking at existing ways of doing that, I couldn't find anyone doing it, and implementing from scratch doesn't sound simple (nor easy for myself or others to maintain IMO) — it would make sense to keep it simple and use jsdoc; I tried it before jsdoc-vuejs (above)

@oliver-sanders oliver-sanders modified the milestones: 0.4.0, 0.5.0 Apr 16, 2021
@kinow
Copy link
Member Author

kinow commented Apr 28, 2021

95% done with Vuepress for now. Looking good IMO, but some of what I'm doing probably overlaps with the UI guide I think (the one we have within Cylc UI, accessible to users). Maybe they should converge somehow?

@kinow kinow mentioned this issue Apr 28, 2021
6 tasks
@oliver-sanders oliver-sanders modified the milestones: 0.5.0, 1.0 Jul 16, 2021
@kinow kinow modified the milestones: 1.0, 2.0 Sep 10, 2021
@kinow kinow removed their assignment Oct 6, 2021
@oliver-sanders oliver-sanders modified the milestones: 2.0.0, Pending Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants