Organize output into folders #2864
Answered
by
Gerrit0
ContrapunctusII
asked this question in
Q&A
|
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. |
Answered by
Gerrit0
Feb 21, 2025
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 |
4 replies
Answer selected by
ContrapunctusII
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.