-
Notifications
You must be signed in to change notification settings - Fork 81
JSDoc-vue produces multiple doclets #121
Comments
Well, the doclet with range |
Hi @alexisread , can you document your Vue code without troubles even if #116 seems not yet merged ? |
Sorry for the delay, this was only exploratory, not fully developed so I had to check the latest versions (sphinx 3.5.4, jsdoc 3.6.6, jsdoc-vuejs 3.0.9), to see if it was still a problem (It is). I've attached the config files for sphinx and jsdoc, they should be able to get you up and running. The below is the same directory as your package.json Then in your js files you can reference functions, for instance: The vue files are more problematic. From the docs https://github.com/mozilla/sphinx-js only the following tags are recognized: Sample vue file So then you can simply add functions in say index.rst like: Hope this is useful. |
Great @alexisread thank you for taking time to check the current status and answer. |
Hi, sorry one slight clarification as I put in the wrong links: |
Because constructor is a reserved word in javascript/typescript.
I'm trying to use Sphinx-js alongside JSDoc-vue, to document vue components. This works bar a multiple doclets conflict as shown in the error dump below. It appears to duplicate the doclets at some step, and wondered if I was doing something wrong, or if this is a case of ignoring the errors as per #116 ?
Thanks
Error dump:
Running Sphinx v2.2.0
Exception occurred:
File "/venv/lib/python3.7/site-packages/sphinx_js/doclets.py", line 51, in gather_doclets
raise PathsTaken(conflicts)
sphinx_js.doclets.PathsTaken: Your JS code contains multiple documented objects at each of these paths:
./test.module.exports
./test.module.exports.methods.increment
We won't know which one you're talking about. Using JSDoc tags like @Class might help you differentiate them.
The full traceback has been saved in /tmp/sphinx-err-zubmk0hc.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at https://github.com/sphinx-doc/sphinx/issues. Thanks!
make: *** [Makefile:20: text] Error 2
The text was updated successfully, but these errors were encountered: