@@ -26,10 +26,11 @@ $ typedoc
2626## Preview
2727
2828If you want to know what a documentation created with TypeDoc looks like, head over
29- to the GitHub page of the project. It contains an api documentation of TypeDoc generated with
30- TypeDoc :
29+ to the homepage of the project. We've setup to examples demonstrating the two default
30+ themes shipped with the package :
3131
32- http://sebastian-lenz.github.io/typedoc
32+ [ http://typedoc.io/themes/default ] ( http://typedoc.io/themes/default ) <br >
33+ [ http://typedoc.io/themes/minimal ] ( http://typedoc.io/themes/minimal )
3334
3435
3536## Usage
@@ -46,161 +47,75 @@ $ typedoc --out path/to/documentation/ path/to/typescript/project/
4647
4748### Arguments
4849
49- ` --out <path/to/documentation/> `
50-
51- Specifies the location the documentation should be written to.
52-
53- ` --name <Documentation title> `
54-
55- Set the name of the project that will be used in the header of the template.
56-
57- ` --readme <path/to/readme|none> `
58-
59- Path to the readme file that should be displayed on the index page. Pass ` none ` to disable the index page
60- and start the documentation on the globals page.
61-
62- ` --module <commonjs or amd> `
63-
64- Specify module code generation: "commonjs" or "amd"
65-
66- ` --target <ES3 or ES5> `
67-
68- Specify ECMAScript target version: "ES3" (default), or "ES5"
69-
70- ` --exclude <pattern> `
71-
72- Exclude files by the given pattern when a path is provided as source
73-
74- ` --theme <path/to/theme> `
75-
76- Specify the path to the theme that should be used
77-
78- ` --includeDeclarations `
79-
80- Turn on parsing of .d.ts declaration files.
81-
82- ` --externalPattern <pattern> `
83-
84- Define a pattern for files that should be considered being external.
85-
86- ` --excludeExternals `
87-
88- Prevent externally resolved TypeScript files from being documented.
89-
90- ` --gaID `
91-
92- Set the Google Analytics tracking ID and activate tracking code.
93-
94- ` --gaSite <site> `
95-
96- Set the site name for Google Analytics. Defaults to ` auto ` .
97-
98- ` --hideGenerator `
99-
100- Do not print the TypeDoc link at the end of the page.
101-
102- ` --verbose `
103-
104- Print more information while TypeDoc is running.
50+ * ` --out <path/to/documentation/> ` <br >
51+ Specifies the location the documentation should be written to.
52+
53+ #### Source file handling
54+ * ` --exclude <pattern> ` <br >
55+ Exclude files by the given pattern when a path is provided as source
56+ * ` --includeDeclarations ` <br >
57+ Turn on parsing of .d.ts declaration files.
58+ * ` --externalPattern <pattern> ` <br >
59+ Define a pattern for files that should be considered being external.
60+ * ` --excludeExternals ` <br >
61+ Prevent externally resolved TypeScript files from being documented.
62+
63+ #### TypeScript compiler
64+ * ` --module <commonjs or amd> ` <br >
65+ Specify module code generation: "commonjs" or "amd"
66+ * ` --target <ES3 or ES5> ` <br >
67+ Specify ECMAScript target version: "ES3" (default), or "ES5"
68+
69+ #### Theming
70+ * ` --theme <default|minimal|path/to/theme> ` <br >
71+ Specify the path to the theme that should be used.
72+ * ` --name <Documentation title> ` <br >
73+ Set the name of the project that will be used in the header of the template.
74+ * ` --readme <path/to/readme|none> ` <br >
75+ Path to the readme file that should be displayed on the index page. Pass ` none ` to disable the index page
76+ and start the documentation on the globals page.
77+ * ` --hideGenerator ` <br >
78+ Do not print the TypeDoc link at the end of the page.
79+ * ` --gaID ` <br >
80+ Set the Google Analytics tracking ID and activate tracking code.
81+ * ` --gaSite <site> ` <br >
82+ Set the site name for Google Analytics. Defaults to ` auto `
83+
84+ #### Miscellaneous
85+ * ` --version ` <br >
86+ Display the version number of TypeDoc.
87+ * ` --help ` <br >
88+ Display a simple cheat sheet.
89+ * ` --verbose ` <br >
90+ Print more information while TypeDoc is running.
10591
10692
10793### Gulp
10894
109- There is a plugin available to run TypeDoc with Gulp created by Rogier Schouten. You can find it on NPM:
110- https://www.npmjs.org/package/gulp-typedoc/
95+ There is a plugin available to run TypeDoc with Gulp created by Rogier Schouten. You can find it on NPM:< br >
96+ [ https://www.npmjs.org/package/gulp-typedoc/ ] ( https://www.npmjs.org/package/gulp-typedoc/ )
11197
11298
11399### Grunt
114100
115- There is a plugin available to run TypeDoc with Grunt created by Bart van der Schoor. You can find it on NPM:
116- https://www.npmjs.org/package/grunt-typedoc
117-
118-
119- ## Document your code
120-
121- TypeDoc runs the TypeScript compiler and extracts type information from the generated compiler symbols.
122- Therefore you don't have to include additional metadata within your comments, TypeScript specific elements
123- like classes, enumerations or property types and access modifiers will be automatically detected.
124-
125- All comments are parsed as markdown. TypeDoc uses the Marked (https://github.com/chjj/marked ) markdown parser
126- and HighlightJS (https://github.com/isagalaev/highlight.js ) to highlight code blocks within markdown sections.
127- Additionally you can link to other classes, members or functions using double angle brackets.
128-
129-
130- ### JavaDoc tags
131-
132- The documentation generator currently understands these javadoc tags:
133-
134- * ``` @param <param name> ```
135- * ``` @return(s) ```
101+ There is a plugin available to run TypeDoc with Grunt created by Bart van der Schoor. You can find it on NPM:<br >
102+ [ https://www.npmjs.org/package/grunt-typedoc ] ( https://www.npmjs.org/package/grunt-typedoc )
136103
137- All other tags will be rendered as definition lists, so they are not lost.
138104
105+ ## Advanced guides and docs
139106
140- ### Function signatures
107+ Visit our homepage for advanced guides and an extensive API documentation:<br >
108+ [ http://typedoc.io ] ( http://typedoc.io )
141109
142- When writing documentation for function signatures, you don't have to repeat yourself. TypeDoc automatically
143- copies comments and tags of the function implementation to its signatures for you. Of course you can still
144- overwrite them if you wish to.
145-
146- ``` typescript
147- /**
148- * @param text Comment for parameter ´text´.
149- */
150- function doSomething(target : any , text : string ): number ;
151-
152- /**
153- * @param value Comment for parameter ´value´.
154- * @returns Comment for special return value.
155- */
156- function doSomething(target : any , value : number ): number ;
157-
158- /**
159- * Comment for method ´doSomething´.
160- * @param target Comment for parameter ´target´.
161- * @returns Comment for return value.
162- */
163- function doSomething(target : any , arg : any ): number {
164- return 0 ;
165- }
166- ```
167-
168-
169- ### Modules
170-
171- Modules can be commented like any other elements in TypeScript. As modules can be defined in multiple
172- files, TypeDoc selects the longest comment by default. One may override this behaviour with the special
173- ` @preferred ` comment tag.
174-
175- ``` typescript
176- /**
177- * Actual module comment.
178- * @preferred
179- */
180- module MyModule { }
181- ```
182-
183- ``` typescript
184- /**
185- * Dismissed module comment.
186- * This is the longer comment but will be dismissed in favor of the preferred comment.
187- */
188- module MyModule { }
189- ```
190110
111+ ## Contributing
191112
192- ### Dynamic modules
113+ Contributions are welcome and appreciated. You can find TypeDoc on GitHub, feel free to start
114+ an issue or create a pull requests:<br >
115+ [ https://github.com/sebastian-lenz/typedoc ] ( https://github.com/sebastian-lenz/typedoc )
193116
194- The first doc comment within a file is used as the doc comment of a dynamic module. However, you must
195- ensure that the first declaration also has as doc comment.
196117
197- ``` typescript
198- /**
199- * This is a doc comment for a dynamic module.
200- */
118+ ## License
201119
202- /**
203- * This is a doc comment for "someVar".
204- */
205- var someVar: string = " value" ;
206- ```
120+ Copyright (c) 2014 [ Sebastian Lenz] ( http://www.sebastian-lenz.de ) .<br >
121+ Licensed under the Apache License 2.0.
0 commit comments