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
Error: The output directory "/home/euber/Github/mongoback/docs" exists but does not seem to be a documentation generated by TypeDoc.
Make sure this is the right target directory, delete the folder and rerun TypeDoc.
Error: Documentation could not be generated due to the errors above.
In the last one, it seems that the value for --out, which is docs/documentation/html, gets taken as an entrypoint. Furthermore, I think that typedoc accepts entrypoint specified between two --options, which could be difficult to see.
Actual Behavior
I think that the --help command should be clearer, that putting entryPoints between --options should not be possible and that the last path (--out my/path) should be properly parsed.
It fails to parsing the command.
The help
Steps to reproduce the bug
Environment
Typedoc version: 0.20.1
TypeScript version: 4.1.3
Node.js version: 14
OS: ubuntu 20
The text was updated successfully, but these errors were encountered:
But it does not say if the --options will be before or after the entry.
It doesn't matter.
The key issue here is that $GA_TOKEN is either not set, or is the empty string, so when typedoc gets your arguments, instead of seeing --gaID (something) --out, it sees --gaID --out, and then takes the next value as an entry point. 0.20.2 includes a debug print (--logLevel Debug) with the arguments which TypeDoc sees.
I expected that your first usage would have provided a warning due to a missing value for the --gaID option, but apparently that was missed a few updates ago when rebuilding the options... 0.20.2 will include a warning there.
I agree that putting entryPoints between flags is a bad idea from a maintainability standpoint, but it is really useful when trying out a bunch of different options, and it is consistent with most other argument parsers, so that behavior is going to stay. (I usually use the CLI only for specifying entry points + single run overrides for testing, and a typedoc.json file for all other options)
Search terms
configuration options parsing entryPoint
Expected Behavior
The
--help
is not clear, because it says:But it does not say if the --options will be before or after the entry.
However, by running:
typedoc source/index.ts --name mongoback --excludeExternals --includeVersion --out docs/documentation/html --plugin none --tsconfig source/tsconfig.json --gaID $GA_TOKEN
I have the correct behaviour, by running:
typedoc --name mongoback --excludeExternals --includeVersion --out docs/documentation/html --plugin none --tsconfig source/tsconfig.json --gaID $GA_TOKEN source/index.ts
I obtain:
Error: No entry points provided
, by running:typedoc source/index.ts --name mongoback --excludeExternals --includeVersion --plugin none --tsconfig source/tsconfig.json --gaID $GA_TOKEN --out docs/documentation/html
I obtain:
In the last one, it seems that the value for
--out
, which isdocs/documentation/html
, gets taken as an entrypoint. Furthermore, I think that typedoc accepts entrypoint specified between two --options, which could be difficult to see.Actual Behavior
I think that the
--help
command should be clearer, that putting entryPoints between --options should not be possible and that the last path (--out my/path
) should be properly parsed.It fails to parsing the command.
The help
Steps to reproduce the bug
Environment
The text was updated successfully, but these errors were encountered: