Skip to content

Commit 4d8f2c7

Browse files
committed
Merge branch 'simplify-readme' of https://github.com/TypeStrong/typedoc
2 parents 5bf4525 + df63978 commit 4d8f2c7

File tree

1 file changed

+14
-80
lines changed

1 file changed

+14
-80
lines changed

README.md

Lines changed: 14 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
[![NPM Version](https://badge.fury.io/js/typedoc.svg)](https://badge.fury.io/js/typedoc)
77
[![Chat on Gitter](https://badges.gitter.im/TypeStrong/typedoc.svg)](https://gitter.im/TypeStrong/typedoc?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
88

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+
918
## Installation
1019

1120
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
3544
$ typedoc --out path/to/documentation/ path/to/typescript/project/
3645
```
3746

38-
### Important note
39-
40-
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-
4447
### Arguments
4548

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/).
4750

4851
* `--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`
5053
* `--mode <file|modules>`<br>
5154
Specifies the output mode the project is used to be compiled with.
5255
* `--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.
5457
* `--json <path/to/output.json>`<br>
5558
Specifies the location and file name a json file describing the project is written to. When specified no documentation will be generated.
5659
* `--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.
5861

5962
#### Source file handling
6063
* `--exclude <pattern>`<br>
6164
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))
6265
* `--includeDeclarations`<br>
6366
Turn on parsing of .d.ts declaration files.
64-
* `--externalPattern <pattern>`<br>
65-
Define a pattern for files that should be considered being external.
6667
* `--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`.
7469

7570
#### 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"
8071
* `--tsconfig <path/to/tsconfig.json>`<br>
8172
Specify a typescript config file that should be loaded. If not specified TypeDoc will look for 'tsconfig.json' in the current directory.
8273

@@ -88,70 +79,13 @@ For a complete list of the command line arguments run `typedoc --help` or read [
8879
* `--readme <path/to/readme|none>`<br>
8980
Path to the readme file that should be displayed on the index page. Pass `none` to disable the index page
9081
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.
11482

11583
#### Miscellaneous
11684
* `--version`<br>
11785
Display the version number of TypeDoc.
11886
* `--help`<br>
11987
Display all TypeDoc options.
12088

121-
### Webpack
122-
123-
There is a plugin available to run TypeDoc with Webpack created by Microsoft. You can find it on NPM:<br>
124-
[https://www.npmjs.com/package/typedoc-webpack-plugin](https://www.npmjs.com/package/typedoc-webpack-plugin)
125-
126-
127-
### Gulp
128-
129-
There is a plugin available to run TypeDoc with Gulp created by Rogier Schouten. You can find it on NPM:<br>
130-
[https://www.npmjs.com/package/gulp-typedoc/](https://www.npmjs.com/package/gulp-typedoc/)
131-
132-
133-
### Grunt
134-
135-
There is a plugin available to run TypeDoc with Grunt created by Bart van der Schoor. You can find it on NPM:<br>
136-
[https://www.npmjs.com/package/grunt-typedoc](https://www.npmjs.com/package/grunt-typedoc)
137-
138-
## Plugins
139-
140-
* [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>
147-
[https://www.npmjs.com/search?q=keywords:typedocplugin](https://www.npmjs.com/search?q=keywords:typedocplugin)
148-
149-
## Advanced guides and docs
150-
151-
Visit our homepage for advanced guides and an extensive API documentation:<br>
152-
[https://typedoc.org](https://typedoc.org)
153-
154-
15589
## Contributing
15690

15791
This project is maintained by a community of developers. Contributions are welcome and appreciated.

0 commit comments

Comments
 (0)