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
[](https://gitter.im/TypeStrong/typedoc?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
8
8
9
+
## Documentation
10
+
Visit our website for more complete documentation and example API documentation:<br>
11
+
[https://typedoc.org](https://typedoc.org).
12
+
13
+
There you can find an [installation guide](https://typedoc.org/guides/installation/) explaining
14
+
how to use typedoc from the cli, webpack, grunt, or gulp. There are additional guides explaining
15
+
how to extend typedoc using [plugins](https://typedoc.org/guides/plugins/) and
16
+
[themes](https://typedoc.org/guides/themes/).
17
+
9
18
## Installation
10
19
11
20
TypeDoc runs on Node.js and is available as an NPM package. You can install TypeDoc
@@ -35,48 +44,30 @@ generator. So in order to create a documentation for an entire project you simpl
Starting with version 0.2, TypeDoc no longer can predict whether files should be treated as modules
41
-
or whether the project should be compiled into one big namespace. You must specify the `mode` argument
42
-
in order to change the behaviour of TypeDoc.
43
-
44
47
### Arguments
45
48
46
-
For a complete list of the command line arguments run `typedoc --help` or read [here](https://typedoc.org/guides/arguments/).
49
+
For a complete list of the command line arguments run `typedoc --help` or visit [our website](https://typedoc.org/guides/options/).
47
50
48
51
*`--out <path/to/documentation/>`<br>
49
-
Specifies the location the documentation should be written to.
52
+
Specifies the location the documentation should be written to. Defaults to `./docs`
50
53
*`--mode <file|modules>`<br>
51
54
Specifies the output mode the project is used to be compiled with.
52
55
*`--options`<br>
53
-
Specify a js option file that should be loaded. If not specified TypeDoc will look for 'typedoc.js' in the current directory.
56
+
Specify a json option file that should be loaded. If not specified TypeDoc will look for 'typedoc.json' in the current directory.
54
57
*`--json <path/to/output.json>`<br>
55
58
Specifies the location and file name a json file describing the project is written to. When specified no documentation will be generated.
56
59
*`--ignoreCompilerErrors`<br>
57
-
Should TypeDoc still generate documentation pages even after the compiler has returned errors?
60
+
Allows TypeDoc to still generate documentation pages even after the compiler has returned errors.
58
61
59
62
#### Source file handling
60
63
*`--exclude <pattern>`<br>
61
64
Exclude files by the given pattern when a path is provided as source. Supports standard minimatch patterns (see [#170](https://github.com/TypeStrong/typedoc/issues/170))
62
65
*`--includeDeclarations`<br>
63
66
Turn on parsing of .d.ts declaration files.
64
-
*`--externalPattern <pattern>`<br>
65
-
Define a pattern for files that should be considered being external.
66
67
*`--excludeExternals`<br>
67
-
Prevent externally resolved TypeScript files from being documented.
68
-
*`--excludeNotExported`<br>
69
-
Prevent symbols that are not exported from being documented.
70
-
*`--excludePrivate`<br>
71
-
Prevent private members from being included in the generated documentation.
72
-
*`--excludeProtected`<br>
73
-
Prevent protected members from being included in the generated documentation.
68
+
Do not document external files, highly recommended if turning on `--includeDeclarations`.
74
69
75
70
#### TypeScript compiler
76
-
*`--module <commonjs, amd, system or umd>`<br>
77
-
Specify module code generation: "commonjs", "amd", "system" or "umd".
78
-
*`--target <ES3, ES5, or ES6>`<br>
79
-
Specify ECMAScript target version: "ES3" (default), "ES5" or "ES6"
80
71
*`--tsconfig <path/to/tsconfig.json>`<br>
81
72
Specify a typescript config file that should be loaded. If not specified TypeDoc will look for 'tsconfig.json' in the current directory.
82
73
@@ -88,70 +79,13 @@ For a complete list of the command line arguments run `typedoc --help` or read [
88
79
*`--readme <path/to/readme|none>`<br>
89
80
Path to the readme file that should be displayed on the index page. Pass `none` to disable the index page
90
81
and start the documentation on the globals page.
91
-
*`--plugin`<br>
92
-
Specify the npm plugins that should be loaded. Omit to load all installed plugins, set to 'none' to load no plugins.
93
-
*`--hideGenerator`<br>
94
-
Do not print the TypeDoc link at the end of the page.
95
-
*`--gaID`<br>
96
-
Set the Google Analytics tracking ID and activate tracking code.
97
-
*`--gaSite <site>`<br>
98
-
Set the site name for Google Analytics. Defaults to `auto`
99
-
*`--entryPoint <fully.qualified.name>`<br>
100
-
Specifies the fully qualified name of the root symbol. Defaults to global namespace.
101
-
*`--gitRevision <revision|branch>`<br>
102
-
Use specified revision or branch instead of the last revision for linking to GitHub source files.
103
-
*`--toc EntryClass,ImportantInterface`<br>
104
-
Define the contents of the top level table of contents as a comma-separated list of global symbols.
105
-
106
-
#### Content
107
-
*`--includes <path/to/includes>`<br>
108
-
Specifies the location to look for included documents. One may use <code>[[include:FILENAME]]</code>
109
-
in comments to include documents from this location.
110
-
111
-
*`--media <path/to/media>`<br>
112
-
Specifies the location with media files that should be copied to the output directory. In order to create
113
-
a link to media files use the pattern <code>media://FILENAME</code> in comments.
114
82
115
83
#### Miscellaneous
116
84
*`--version`<br>
117
85
Display the version number of TypeDoc.
118
86
*`--help`<br>
119
87
Display all TypeDoc options.
120
88
121
-
### Webpack
122
-
123
-
There is a plugin available to run TypeDoc with Webpack created by Microsoft. You can find it on NPM:<br>
*[External Module Name](https://github.com/christopherthielen/typedoc-plugin-external-module-name) - Set the name of TypeDoc external modules
141
-
*[Sourcefile URL](https://github.com/gdelmas/typedoc-plugin-sourcefile-url) - Set custom source file URL links
142
-
*[Internal/External Module](https://github.com/christopherthielen/typedoc-plugin-internal-external) - Explicitly mark modules as `@internal` or `@external`
143
-
*[Single Line Tags](https://github.com/christopherthielen/typedoc-plugin-single-line-tags) - Process certain `@tags` as single lines
144
-
*[Localization](https://github.com/IgniteUI/typedoc-plugin-localization) - Generate documentation for different languages
145
-
146
-
A list of all published Typedoc plugins can be found on NPM:<br>
0 commit comments