You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to document a ES6 module, but I cannot get documentationjs to group it correctly. The module I'm trying to document looks something like this:
/** @module moduleName */importmodulefrom"module"/** x */exportconstx={}/** y */exportfunctiony(){}
This placed every member of the module on the root like this:
root
└─ moduleName
└─ x
└─ y
But I want this format:
root
├─ moduleName
│ └─ x
│ └─ y
I also tried@namespace, that did the exact same. Then I tried @alias, @name with and without @member, to try and get the exported functions, variables and constants grouped under the module name, but this also place them after each other under the root, even with names like module:moduleName#function or moduleName.function
After that I tried to create a dummy class with the name of the module to see if it tried to group them to the class but still no succes.
I'm not sure if this not yet supported, or if this is a bug. Either way I would really like to know how to resolve this. I think this might be solved using the documentation.yml, but I'm not really sure how to use it.
What version of documentation.js are you using?: 5.1.0
How are you running documentation.js (on the CLI, Node.js API, Grunt, other?): Using CLI
The text was updated successfully, but these errors were encountered:
Thanks for the report! This is a duplicate of a previous issue, #803, so I'm closing it in favor of that issue. You're right that the module syntax does not work as it does in JSDoc currently, and I'd happily review a PR that fixes it if you'd like to help.
I'm trying to document a ES6 module, but I cannot get documentationjs to group it correctly. The module I'm trying to document looks something like this:
I initially tried the example over at http://usejsdoc.org/howto-es2015-modules.html to modify my module to something like this:
This placed every member of the module on the root like this:
root
└─ moduleName
└─ x
└─ y
But I want this format:
root
├─ moduleName
│ └─ x
│ └─ y
I also tried
@namespace
, that did the exact same. Then I tried@alias
,@name
with and without@member
, to try and get the exported functions, variables and constants grouped under the module name, but this also place them after each other under the root, even with names like module:moduleName#function or moduleName.functionAfter that I tried to create a dummy class with the name of the module to see if it tried to group them to the class but still no succes.
I'm not sure if this not yet supported, or if this is a bug. Either way I would really like to know how to resolve this. I think this might be solved using the documentation.yml, but I'm not really sure how to use it.
The text was updated successfully, but these errors were encountered: