Skip to content

Organize output into folders #2864

Answered by Gerrit0
ContrapunctusII asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Dayday10
Comment options

@ContrapunctusII
Comment options

@Gerrit0
Comment options

@ContrapunctusII
Comment options

Answer selected by ContrapunctusII
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants