Skip to content

Move the typedoc and typedoc-default-themes packages to a monorepo structure. #741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 124 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
5fc9f42
Moved from typedoc
sebastian-lenz Nov 19, 2014
97330b8
Moved templates
sebastian-lenz Nov 22, 2014
34ba2ec
Turn theme minimal into an independent theme
sebastian-lenz Nov 22, 2014
79d3c62
Updated typings
sebastian-lenz Nov 22, 2014
4162f30
Fixed parameter rendering
sebastian-lenz Nov 23, 2014
312665b
Changed renderer plugin model
sebastian-lenz Nov 23, 2014
a1d8427
Updated package.json
sebastian-lenz Nov 23, 2014
920d964
Output TypeLiteral
sebastian-lenz Nov 23, 2014
e3cccb0
Moved minimal theme to core package
sebastian-lenz Nov 25, 2014
b484fc4
Fixed DeepCommentHandler
sebastian-lenz Nov 26, 2014
1e8f29f
Improved TypeLiteral rendering
sebastian-lenz Nov 27, 2014
90a5f95
Added tuple type support
sebastian-lenz Nov 27, 2014
a6c47f6
Beta version number
sebastian-lenz Nov 27, 2014
acf811b
New icon set
sebastian-lenz Jan 17, 2015
1486b81
Fix: Wrong size of icon set
sebastian-lenz Jan 17, 2015
c531967
Styling Tables
Jan 20, 2015
fe68e38
Rest parameters support.
TobiaszCudnik Jan 22, 2015
c08c43f
Updated the build.
TobiaszCudnik Jan 22, 2015
5e46ebc
Add signature output to root reflection
sebastian-lenz Jan 24, 2015
11daaa2
Moved new footer to source folder
sebastian-lenz Jan 24, 2015
bd84620
Show rest parameters in signatures
sebastian-lenz Jan 24, 2015
f29d106
Parameter lists outside signatures are formatted incorrectly
sebastian-lenz Jan 24, 2015
2d18a57
Added type parameters list styling
sebastian-lenz Jan 24, 2015
0df6bbf
Recompiled
sebastian-lenz Jan 24, 2015
1a2d6f1
Add visibility dropdown
sebastian-lenz Jan 25, 2015
03d25e9
Updated dependencies
sebastian-lenz Jan 25, 2015
e4375fe
New version number
sebastian-lenz Jan 25, 2015
6872261
Adjust indention of parameter signatures
sebastian-lenz Jan 25, 2015
697623b
Added union type support
sebastian-lenz Feb 1, 2015
a862f9a
Added type alias support
sebastian-lenz Feb 1, 2015
bef112f
Show index signatures on reflection page (e.g. for interfaces)
sebastian-lenz Feb 1, 2015
0973377
Hide index if empty
sebastian-lenz Feb 1, 2015
2dc7826
Merge branch 'styling-tables' of https://github.com/YusukeHirao/typed…
sebastian-lenz Feb 1, 2015
1daeb4c
Merge branch 'styling-tables' of https://github.com/YusukeHirao/typed…
sebastian-lenz Feb 1, 2015
43fd7f1
Merge branch 'YusukeHirao-styling-tables'
sebastian-lenz Feb 1, 2015
54532b9
Merge branch 'master' of https://github.com/TobiaszCudnik/typedoc-def…
sebastian-lenz Feb 1, 2015
f4a0fb8
Merge branch 'master' of https://github.com/TobiaszCudnik/typedoc-def…
sebastian-lenz Feb 1, 2015
1d49851
Merge branch 'TobiaszCudnik-master'
sebastian-lenz Feb 1, 2015
5c1cac1
Update TypeScript version
sebastian-lenz Feb 1, 2015
10c60ad
Add reflection of type arguments for types
sebastian-lenz Feb 2, 2015
991cba6
Add "implements" and "implemented by" sections to class and interface…
sebastian-lenz Feb 2, 2015
0698cf8
Update version number
sebastian-lenz Feb 2, 2015
7d995bd
Better Getter/Setter support
sebastian-lenz Feb 7, 2015
0403bb5
New icons for private/protected declarations
sebastian-lenz Feb 8, 2015
92634a0
Bugfix: Wrong icons for types
sebastian-lenz Feb 8, 2015
65dab5a
Bugfix: Wrong icons for private members
sebastian-lenz Feb 8, 2015
862bad2
Add reflection of type arguments for types
sebastian-lenz Feb 8, 2015
7bd6bf5
Don't set links to reflections without urls
sebastian-lenz Feb 12, 2015
5d549f1
Fix: Call and index signatures are placed at the end of page
sebastian-lenz Feb 13, 2015
0dcd7f5
Add event icon
sebastian-lenz Mar 9, 2015
defbb76
Remove TypeDoc peer dependency
sebastian-lenz Mar 11, 2015
e952b16
Move output to own namespace
sebastian-lenz Mar 21, 2015
7d706c7
Fixed icon sprite size for retina displays
sebastian-lenz Mar 21, 2015
d738422
Added whitespaces for Handlebars v3
sebastian-lenz Mar 21, 2015
547ea1f
Added whitespaces for Handlebars v3
sebastian-lenz Mar 21, 2015
02b9fab
Updated version number
sebastian-lenz Mar 21, 2015
e0684ad
Add "implements" and "implemented by" sections to class and interface
sebastian-lenz Mar 29, 2015
de217fd
Update version
sebastian-lenz Mar 29, 2015
e90f4b0
Bugfix: 0.2.3+ not rendering GA, resolves https://github.com/sebastia…
sebastian-lenz Apr 2, 2015
3466998
Update version number
sebastian-lenz Apr 13, 2015
261e93d
Bugfix: Missing "[]" for array types, see https://github.com/sebastia…
sebastian-lenz Apr 25, 2015
3b421a8
Don't use types toString method, it duplicates array identifier
sebastian-lenz Apr 25, 2015
209c92e
Dont't link elements in breadcrumb if they don't have an url
sebastian-lenz Apr 29, 2015
1341c84
Adjust coloring in index to linked item type
sebastian-lenz Apr 29, 2015
dfa873a
Update version number
sebastian-lenz Apr 29, 2015
727dbfd
Render "implementation of" section
sebastian-lenz May 15, 2015
8bc4b1e
Move to version 0.3.4
sebastian-lenz Jul 6, 2015
4c020ea
Hide the exported filter if --excludeNotExported is specified, see ht…
sebastian-lenz Oct 25, 2015
7800aff
Add max width to images in README (#7)
Jun 4, 2016
72ba2b3
Add default value to member declaration (#5)
dominikstrasser Jun 4, 2016
c0ca7b9
Tweak hierarchy subtree templates
notheotherben Apr 21, 2016
a2a3794
Update package build to exclude generated files
blakeembrey Jun 4, 2016
76dd7d5
v0.4.0
blakeembrey Jun 4, 2016
97e79a3
chore(package): update typescript to version 1.8.10 (#9)
greenkeeperio-bot Jul 8, 2016
873d2c6
chore(package): update dependencies (#8)
greenkeeperio-bot Jul 8, 2016
3ef1235
Update build to match dependencies
blakeembrey Jul 8, 2016
f0994f7
Fix broken typedoc URL (#18)
kayahr Oct 30, 2016
5b656fa
chore(package): update typescript to version 2.0.6 (#19)
greenkeeperio-bot Oct 30, 2016
c721318
Remove include of missing modernizr.js (#17)
kayahr Oct 30, 2016
9dda103
chore: drop support for Node.js 0.10 (#20)
greenkeeperio-bot Oct 31, 2016
26bc6b7
Rename "overwrites" to "overrides"
blakeembrey Nov 7, 2016
17115cd
Update `package.json` license
blakeembrey Nov 7, 2016
74671df
v0.4.1
blakeembrey Nov 7, 2016
e0335f1
chore(package): update typescript to version 2.0.8 (#21)
greenkeeperio-bot Nov 8, 2016
3883acd
chore(package): update typescript to version 2.0.9 (#22)
greenkeeperio-bot Nov 11, 2016
4a7e5e7
chore(package): update typescript to version 2.0.10 (#23)
greenkeeperio-bot Nov 16, 2016
d1e0d5e
Update repo URL (#24)
pascalberger Nov 25, 2016
d43b17e
Use rimraf to clean bin dir (#26)
kamranayub Dec 6, 2016
7cbfe4f
chore(package): update typescript to version 2.1.4 (#27)
greenkeeperio-bot Dec 7, 2016
cdb33eb
Fix `Uncaught TypeError: typedoc.Application is not a constructor` (#29)
timocov Jan 10, 2017
fb74ce0
v0.4.2
blakeembrey Jan 10, 2017
59e5c4e
chore(package): update typescript to version 2.1.5 (#30)
greenkeeperio-bot Jan 12, 2017
0959fef
chore(package): update grunt-contrib-uglify to version 2.1.0 (#31)
greenkeeperio-bot Feb 8, 2017
729f40e
chore(package): update typescript to version 2.1.6 (#32)
greenkeeperio-bot Feb 9, 2017
51f78e3
chore(package): update rimraf to version 2.6.0 (#33)
greenkeeperio-bot Feb 19, 2017
22c1edd
chore(package): update typescript to version 2.2.1 (#34)
greenkeeperio-bot Feb 23, 2017
6e2e5a6
chore(package): update rimraf to version 2.6.1 (#35)
greenkeeperio-bot Feb 24, 2017
3bfe67b
chore(package): update grunt-contrib-uglify to version 2.2.0 (#36)
greenkeeperio-bot Mar 1, 2017
9663376
Add check for Union array type (#37)
nicknisi Mar 10, 2017
accf02f
v0.4.3
blakeembrey Mar 10, 2017
ce59cf9
chore(package): update typescript to version 2.2.2 (#38)
greenkeeperio-bot Apr 3, 2017
d87fa11
Minimal theme patches (#41)
thegecko Apr 14, 2017
3f5b18e
chore(package): update grunt-contrib-uglify to version 2.3.0 (#40)
greenkeeperio-bot Apr 14, 2017
6bd4a1d
0.4.4
blakeembrey Apr 14, 2017
de71015
Link minimal theme header to index page (#44)
gdelmas Apr 21, 2017
d914c48
Support for intersection types (#45)
rklfss Apr 23, 2017
c7f16d9
chore(package): update typescript to version 2.3.2 (#47)
greenkeeperio-bot Apr 29, 2017
e75a7e6
Fix client JS concat order (#43)
gdelmas May 12, 2017
bd8b16d
Support for multidimensional array (#48)
rklfss May 12, 2017
b79ff37
0.5.0
blakeembrey May 12, 2017
a71ca47
Added generic type alias styles
rklfss Oct 13, 2017
f4a0255
Fixing tag comment display.
katanacrimson Oct 17, 2017
f62b740
Minor fix to ensure that pre tags are properly aligned, with or witho…
katanacrimson Oct 17, 2017
776321f
Minor correction
katanacrimson Oct 18, 2017
eab7f18
Tab->space
katanacrimson Oct 18, 2017
6705af9
Merge pull request #52 from makana/generic-typealias
aciccarello Dec 16, 2017
f992ea3
Merge pull request #54 from damianb/fix-comment-tag-display
aciccarello Dec 16, 2017
586b1ad
Move the files under packages.
lddubeau Apr 3, 2018
08c782f
Move the files under packages.
lddubeau Apr 3, 2018
e37f7dd
Merge branch 'feature/move-to-monorepo' of ../typedoc-default-themes …
lddubeau Apr 3, 2018
e0de4d5
Create monorepo configuration.
lddubeau Apr 4, 2018
bafd1f9
Update rendering tests.
lddubeau Apr 5, 2018
a38a796
Install sass, which is required for building the themes.
lddubeau Apr 5, 2018
1ebb399
Fix wrong task name.
lddubeau Apr 6, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 4 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
.DS_Store
.idea
.tscache
.baseDir.js
.baseDir.ts
yarn.lock

/src/typings/typescript/typescript.js

/tmp/
/etc/
/examples/*/doc
/examples/definitely-typed/src/
/examples/plottable/src/
/examples/doppio/src/
/node_modules/
/typescript/
/coverage/
/dist/
/.sass-cache
/.tscache
/coverage
node_modules
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
sudo: false
language: node_js
node_js:
- 8
- 6
- 4
# The gem commands are required for installing Ruby's sass tool
# which is used by grunt-contrib-sass.
before_install:
- gem update --system
- gem install sass
script: npm run ci-test
155 changes: 23 additions & 132 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,153 +3,44 @@
> Documentation generator for TypeScript projects.

[![Build Status](https://travis-ci.org/TypeStrong/typedoc.svg?branch=master)](https://travis-ci.org/TypeStrong/typedoc)
[![NPM Version](https://badge.fury.io/js/typedoc.svg)](http://badge.fury.io/js/typedoc)
[![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)
[![Greenkeeper Enabled](https://badges.greenkeeper.io/TypeStrong/typedoc.svg)](https://greenkeeper.io/)
[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lernajs.io/)

## Installation
## Project Structure

TypeDoc runs on Node.js and is available as an NPM package. You can install TypeDoc
in your project's directory as usual:
This project is organized as a monorepo containing the following
packages:

```bash
$ npm install typedoc --save-dev
```
* [typedoc](packages/typedoc) provides the parsing and rendering
engine, and the CLI command to run them.

Like the TypeScript compiler, TypeDoc comes with a binary that can be called from anywhere
if you install TypeDoc as a global module. The name of the executable is ``typedoc``.
* [typedoc-default-themes](packages/typedoc-default-themes) provides
the default themes that typedoc uses for rendering.

```bash
$ npm install typedoc --global
$ typedoc
```
## Contributing

## Usage
This project is maintained by a community of developers. Contributions
are welcome and appreciated. You can find TypeDoc on GitHub; feel
free to start an issue or create a pull requests:<br>
[https://github.com/TypeStrong/typedoc](https://github.com/TypeStrong/typedoc)

### Shell
The monorepo is maintained with
[Lerna](https://github.com/lerna/lerna). Generally, if you want to add
or remove dependencies, or publish packages, you should get acquainted
with Lerna.

TypeDoc accepts most of the command line arguments that the TypeScript compiler accepts. One major
difference is the fact that one may pass an entire directory instead of individual files to the documentation
generator. So in order to create a documentation for an entire project you simply type:
In order to build the packages, you must first bootstrap:

```bash
$ typedoc --out path/to/documentation/ path/to/typescript/project/
$ npm bootstrap
```

### Important note

Starting with version 0.2, TypeDoc no longer can predict whether files should be treated as modules
or whether the project should be compiled into one big namespace. You must specify the `mode` argument
in order to change the behaviour of TypeDoc.


### Arguments

* `--out <path/to/documentation/>`<br>
Specifies the location the documentation should be written to.
* `--mode <file|modules>`<br>
Specifies the output mode the project is used to be compiled with.
* `--options`<br>
Specify a js option file that should be loaded. If not specified TypeDoc will look for 'typedoc.js' in the current directory.
* `--json <path/to/output.json>`<br>
Specifies the location and file name a json file describing the project is written to. When specified no documentation will be generated.
* `--ignoreCompilerErrors`<br>
Should TypeDoc still generate documentation pages even after the compiler has returned errors?

#### Source file handling
* `--exclude <pattern>`<br>
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))
* `--includeDeclarations`<br>
Turn on parsing of .d.ts declaration files.
* `--externalPattern <pattern>`<br>
Define a pattern for files that should be considered being external.
* `--excludeExternals`<br>
Prevent externally resolved TypeScript files from being documented.
* `--excludePrivate`<br>
Prevent private members from being included in the generated documentation.
* `--excludeProtected`<br>
Prevent protected members from being included in the generated documentation.

#### TypeScript compiler
* `--module <commonjs, amd, system or umd>`<br>
Specify module code generation: "commonjs", "amd", "system" or "umd".
* `--target <ES3, ES5, or ES6>`<br>
Specify ECMAScript target version: "ES3" (default), "ES5" or "ES6"
* `--tsconfig <path/to/tsconfig.json>`<br>
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|minimal|path/to/theme>`<br>
Specify the path to the theme that should be used.
* `--name <Documentation title>`<br>
Set the name of the project that will be used in the header of the template.
* `--readme <path/to/readme|none>`<br>
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.
* `--plugin`<br>
Specify the npm plugins that should be loaded. Omit to load all installed plugins, set to 'none' to load no plugins.
* `--hideGenerator`<br>
Do not print the TypeDoc link at the end of the page.
* `--gaID`<br>
Set the Google Analytics tracking ID and activate tracking code.
* `--gaSite <site>`<br>
Set the site name for Google Analytics. Defaults to `auto`
* `--entryPoint <fully.qualified.name>`<br>
Specifies the fully qualified name of the root symbol. Defaults to global namespace.
* `--gitRevision <revision|branch>`<br>
Use specified revision or branch instead of the last revision for linking to GitHub source files.

#### Content
* `--includes <path/to/includes>`<br>
Specifies the location to look for included documents. One may use <code>[[include:FILENAME]]</code>
in comments to include documents from this location.

* `--media <path/to/media>`<br>
Specifies the location with media files that should be copied to the output directory. In order to create
a link to media files use the pattern <code>media://FILENAME</code> in comments.

#### Miscellaneous
* `--version`<br>
Display the version number of TypeDoc.
* `--help`<br>
Display all TypeDoc options.

### Webpack

There is a plugin available to run TypeDoc with Webpack created by Microsoft. You can find it on NPM:<br>
[https://www.npmjs.com/package/typedoc-webpack-plugin](https://www.npmjs.com/package/typedoc-webpack-plugin)


### Gulp

There is a plugin available to run TypeDoc with Gulp created by Rogier Schouten. You can find it on NPM:<br>
[https://www.npmjs.org/package/gulp-typedoc/](https://www.npmjs.org/package/gulp-typedoc/)


### Grunt

There is a plugin available to run TypeDoc with Grunt created by Bart van der Schoor. You can find it on NPM:<br>
[https://www.npmjs.org/package/grunt-typedoc](https://www.npmjs.org/package/grunt-typedoc)

## Plugins

* [External Module Name](https://github.com/christopherthielen/typedoc-plugin-external-module-name) - Set the name of TypeDoc external modules
* [Sourcefile URL](https://github.com/gdelmas/typedoc-plugin-sourcefile-url) - Set custom source file URL links
* [Internal/External Module](https://github.com/christopherthielen/typedoc-plugin-internal-external) - Explicitly mark modules as `@internal` or `@external`
* [Single Line Tags](https://github.com/christopherthielen/typedoc-plugin-single-line-tags) - Process certain `@tags` as single lines

## Advanced guides and docs

Visit our homepage for advanced guides and an extensive API documentation:<br>
[http://typedoc.org](http://typedoc.org)


## Contributing

This project is maintained by a community of developers. Contributions are welcome and appreciated.
You can find TypeDoc on GitHub; feel free to start an issue or create a pull requests:<br>
[https://github.com/TypeStrong/typedoc](https://github.com/TypeStrong/typedoc)
Then you can build the whole project and test with:

```bash
$ npm build
```

## License

Expand Down
Loading