-
Notifications
You must be signed in to change notification settings - Fork 486
Docs for a class couldn't be generated after require statements #795
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
Comments
These examples correctly produce the same documentation in my local environment. Can you elaborate on "it couldn't produce docs": is there an error, or is it blank? What version of documentation.js are you using, and how are you invoking it? |
version is 4.0.0-rc1. command I used is:
Lint result is:
The generated docs files are attached. |
Okay, so to be clearer, the issue is that the |
OK, I found the reason. The problem is resolved by adding semicolon to the last of the I think this problem should be resolved. I'm using ESLint with JavsScript Standard Style. The standard style don't allow adding unnecessary semicolon in the last of statements. So, please fix this problem in the next release :) Thank you for your response. |
I certainly hope to, and agree that this is an important issue! Might I also suggest that, as a community project, you might be interested in helping out? You can test the AST that this example generates in astexplorer.net - most likely, if the AST changes depending on that semicolon but the JavaScript's behavior is the same, the appropriate resolution would be to file a bug report and testcase upstream at babylon's repository, the JavaScript parser that documentation.js uses. |
I've just tested on astexplorer.net. In babylon-6.17.1 it works well. Current version of |
Thanks for digging in! I've just pushed a Thanks again - makes my day to get some help on this project 💕 ! |
Successfully generates docs for the following code:
But, just adding a
require
statement results that it couldn't generate docs for the Table class.How can I fix this problem?
The text was updated successfully, but these errors were encountered: