Organize output into folders #2864
-
Given a project structure like that:
The Typedoc command I currently use is the following:
Inside the generated output, I want the whole Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Placing all of the entry points within a folder can't be done with a single invocation of TypeDoc as it will always place them at the top level. However, you can do this by rendering the docs to a JSON file, then merging the JSON file with your project documents in a second command. typedoc 'lib/**/*' lib/index.ts --name API --json api.json
# or likely equivalent, without potential quoting issues with globs
typedoc --entryPointStrategy expand lib --name API --json api.json
# Then actually generate the site
typedoc --entryPointStrategy merge api.json --alwaysCreateEntryPointModule --projectDocuments 'guides/*'
# Clean up
rm api.json |
Beta Was this translation helpful? Give feedback.
Placing all of the entry points within a folder can't be done with a single invocation of TypeDoc as it will always place them at the top level. However, you can do this by rendering the docs to a JSON file, then merging the JSON file with your project documents in a second command.