MCPcopy Index your code
hub / github.com/TypeStrong/typedoc

github.com/TypeStrong/typedoc @v0.28.19 sqlite

repository ↗ · DeepWiki ↗ · release v0.28.19 ↗
2,870 symbols 7,558 edges 624 files 374 documented · 13% 81 cross-repo links
README

TypeDoc

Documentation generator for TypeScript projects.

Documentation

For more detailed documentation, the changelog, and TypeDoc documentation rendered with TypeDoc, see https://typedoc.org.

Installation

TypeDoc runs on Node.js and is available as a NPM package.

npm install typedoc --save-dev

Usage

To generate documentation TypeDoc needs to know your project entry point and TypeScript compiler options. It will automatically try to find your tsconfig.json file and figure out your entry points from package.json, so you can probably run TypeDoc without any options:

typedoc

If TypeDoc does not automatically choose the entry points you wanted, you can specify them manually:

typedoc package1/index.ts package2/index.ts

If you specify a directory, TypeDoc will use the entryPointStrategy option to determine how to resolve it. By default, TypeDoc will search for a file called index under the directory.

Monorepos / Workspaces

If your codebase is comprised of one or more npm packages, you can build documentation for each of them individually and merge the results together into a single site by setting entryPointStrategy to packages. In this mode TypeDoc requires configuration to be present in each directory to specify the entry points. For an example setup, see https://github.com/Gerrit0/typedoc-packages-example

Options

TypeDoc can be configured with command line arguments or a configuration file. Visit TypeDoc's site for a list of available options. Some commonly used options are:

  • --out <path/to/documentation/>

Specifies the location the documentation should be written to. Defaults to ./docs - --json <path/to/output.json>

Specifies the location and file name a json file describing the project is written to. When specified no HTML documentation will be generated unless --out is also specified. - --options

Specify a json option file that should be loaded. If not specified TypeDoc will check for several common file names in the current directory. - --tsconfig <path/to/tsconfig.json>

Specify a typescript config file that should be loaded. If not specified TypeDoc will look for tsconfig.json in the current directory.

Theming

  • --theme <default|plugin defined theme>

Specify the theme that should be used. - --name <Documentation title>

Set the name of the project that will be used in the header of the template. - --readme <path/to/readme|none>

Path to the readme file that should be displayed on the index page. Pass none to disable the index page and start the documentation on the globals page.

Miscellaneous

  • --version

Display the version number of TypeDoc. - --help

Display all TypeDoc options.

Contributing

This project is maintained by a community of developers. Contributions are welcome and appreciated. You can find TypeDoc on GitHub; feel free to open an issue or create a pull request: https://github.com/TypeStrong/typedoc

For more information, read the contribution guide.

Extension points exported contracts — how you extend this code

Deserializable (Interface)
(no doc) [18 implementers]
src/lib/serialization/deserializer.ts
Three (Interface)
(no doc) [6 implementers]
src/test/converter2/issues/gh2466.ts
CardAProps (Interface)
(no doc)
example/src/reactComponents.tsx
OptionsReader (Interface)
(no doc) [9 implementers]
src/lib/utils/options/options.ts
Base (Interface)
(no doc) [6 implementers]
src/test/converter/inherit-param-doc/inherit-param-doc.ts
EasyFormDialogProps (Interface)
(no doc)
example/src/reactComponents.tsx
Repository (Interface)
(no doc) [4 implementers]
src/lib/converter/utils/repository.ts
DeclareGlobal (Interface)
(no doc) [5 implementers]
src/test/converter2/behavior/declareGlobal.ts

Core symbols most depended-on inside this repo

equal
called by 1434
src/test/converter2/issues/gh2444.ts
push
called by 357
src/lib/converter/plugins/TypePlugin.ts
query
called by 337
src/test/utils.ts
setValue
called by 194
src/lib/utils/options/options.ts
normalizePath
called by 138
src/lib/utils/paths.ts
toString
called by 136
src/lib/application.ts
combineDisplayParts
called by 124
src/lib/models/Comment.ts
join
called by 122
src/lib/output/formatter.tsx

Shape

Function 1,045
Method 933
Class 532
Interface 336
Enum 24

Languages

TypeScript100%

Modules by API surface

src/lib/models/types.ts160 symbols
src/lib/utils-common/jsx.elements.ts69 symbols
src/lib/output/formatter.tsx56 symbols
src/lib/output/router.ts55 symbols
src/lib/models/Reflection.ts48 symbols
src/lib/serialization/deserializer.ts44 symbols
src/lib/utils/options/declaration.ts41 symbols
src/lib/serialization/schema.ts41 symbols
src/lib/utils/html.ts36 symbols
src/lib/converter/symbols.ts33 symbols
src/lib/models/Comment.ts31 symbols
src/lib/converter/converter.ts29 symbols

Dependencies from manifests, versioned

@eslint/js10.0.1 · 1×
@gerrit0/mini-shiki3.23.0 · 1×
@types/lodash4.17.23 · 1×
@types/lunr2.3.7 · 1×
@types/markdown-it14.1.2 · 1×
@types/mocha10.0.10 · 1×
@types/node18 · 1×
@types/react19.2.14 · 1×
@types/react-dom19.2.3 · 1×
@typestrong/fs-fixture-buildergithub:TypeStrong/fs · 1×
c811.0.0 · 1×
dprint0.53.2 · 1×

For agents

$ claude mcp add typedoc \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact