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 was wondering about the possibility to output a nested json of the javascript code documentation.
For the moment, the output is flat, and it could be relevant to have a nested output based on, may be the the curly braces indentation.
Currently dox doesn't know anything about the class syntax, so that would have to be fixed first, but there's another issue in the way. Dox doesn't parse code blocks, at least no more than what it needs to determine the context of the declaration the comment is for. It has no concept of brackets and object definitions, it just processes comment blocks one at a time and assumes anything between comments belongs to the previous comment.
PR #107 (and by extension, #128) adds a bit of code for detecting some parent names on specific use cases, and #85 adds some nesting support for @lends tags, but it's all kind of hacky and only works for specific implementations.
Properly detecting nesting such as what you're looking for would require a different implementation, something more akin to esprima (which people keep saying needs to be rewritten).
That said, you could accomplish 90% of this today through the use of @memberOf tags and post-processing of the dox output to map parent->child relationships.
Hi,
First, thanks for this library.
I was wondering about the possibility to output a nested json of the javascript code documentation.
For the moment, the output is flat, and it could be relevant to have a nested output based on, may be the the curly braces indentation.
For my use case, I have es6 class, like this
And it would be great to have json like this:
This issue seems to be more or less like this PR : #73 but with and easier use of the output.
What do you think about it ?
The text was updated successfully, but these errors were encountered: