-
-
Notifications
You must be signed in to change notification settings - Fork 735
Using TypeDoc with projects that include JavaScript? #643
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
@dtgriscom TypeDoc gets the type information from the TypeScript compiler so the things that the compiler understands will get passed to TypeDoc. That said, I haven't tried parsing JavaScript myself so I'm not sure what level of support exists. Let us know how things work for you! |
No go:
Such is life... |
It works fine but you need to configure the TypeScript compiler:
|
I'm using the above command still it doesn't generates documentation for *.js files. |
@Manleen Can you link to a repo where we could see your code and error? |
I don't see any error. I have both .ts and .js files in the source code. When I use typedoc to generate the documentation, it just generates docs for ts files. The repo is private so I can't link it. |
@Manleen You should define typedoc options in tsconfig.json and use tsconfig.json {
"compilerOptions": {
"allowJs": true,
"module": "es2015",
"target": "es6"
},
"include": [
"src/**/*.js"
],
"typedocOptions": {
"ignoreCompilerErrors": true,
"mode": "modules",
"out": "./docs"
}
} and then
|
I'm working on a project where the shell is standard JavaScript, but most of the core code is written using TypeScript. Will TypeDoc work in such a situation?
I guess there are a number of levels of "working":
TypeDoc will tolerate JavaScript files that it encounters, but won't generate documentation for them
TypeDoc will parse JavaDoc comments in JavaScript files and add them to the documentation tree
TypeDoc will read JavaScript files, parse JavaDoc comments, and in addition figure out what it can from the symbols and argument lists, and add it all to the documentation tree
Will TypeDoc do any of this?
Thanks,
Dan
The text was updated successfully, but these errors were encountered: