Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
cc401fa
Turn strictNullChecks on
Gerrit0 Aug 25, 2018
752d8cf
Remove yarn error log, add to .gitignore
Gerrit0 Aug 25, 2018
93958a5
Resolve most unit test issues
Gerrit0 Aug 26, 2018
8f90d12
Restore name splitting behavior
Gerrit0 Aug 27, 2018
1735d4d
Fix missing implemented interfaces
Gerrit0 Aug 27, 2018
820077a
#837 Add contributing.md (#841)
Gerrit0 Sep 3, 2018
c109e8b
Add localization plugin to Readme.md plugin section (#850)
zdrawku Sep 3, 2018
589f15a
Use a dummy readme when testing the renderer (#857)
Towerism Sep 19, 2018
eeccb6b
Peer review comments
Gerrit0 Sep 26, 2018
f7d5683
fix(HelperStack): deactivate theme resources correctly (#865)
Aleksandyr Oct 3, 2018
f0166cf
Upgrade typescript to v3.1.x (#863)
ahocevar Oct 4, 2018
1108878
fix: No error is thrown when adding plug-ins repeatedly(#847)
Houfeng Oct 4, 2018
b371fd4
0.13.0-0
aciccarello Oct 4, 2018
7247605
0.13.0
aciccarello Oct 10, 2018
ee162c9
simplify event test types
aciccarello Oct 12, 2018
daab024
simplify types
aciccarello Oct 12, 2018
5759cb5
correct getter in EventDispatcher
aciccarello Oct 12, 2018
20c90c7
Turn strictNullChecks on
Gerrit0 Aug 25, 2018
179f5af
Remove yarn error log, add to .gitignore
Gerrit0 Aug 25, 2018
9bd8836
Resolve most unit test issues
Gerrit0 Aug 26, 2018
e1bb10c
Restore name splitting behavior
Gerrit0 Aug 27, 2018
fbe3a5a
Fix missing implemented interfaces
Gerrit0 Aug 27, 2018
fc192ce
Peer review comments
Gerrit0 Sep 26, 2018
e110441
simplify event test types
aciccarello Oct 12, 2018
4dcf9b1
simplify types
aciccarello Oct 12, 2018
4bf87f6
correct getter in EventDispatcher
aciccarello Oct 12, 2018
bc469d8
remove uncecessary type assertion
aciccarello Oct 12, 2018
cd840fb
Merge branch 'strict-null-checks' of https://github.com/Gerrit0/typed…
aciccarello Oct 12, 2018
5517705
Remove readonly on option properties
Gerrit0 Oct 18, 2018
4d4ff46
Pin highlight.js version to 9.12.0
Gerrit0 Oct 19, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# https://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Disable core.autocrlf's line ending conversion behavior to prevent test failures on Windows
* text=lf
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.baseDir.js
.baseDir.ts
yarn.lock
yarn-error.log

/src/typings/typescript/typescript.js

Expand Down
8 changes: 5 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"name": "Debug Tests",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"cwd": "${workspaceRoot}",
"args": [
"--no-timeouts"
"--no-timeouts",
"dist/test/**/*.js"
],
"outFiles": [
"${workspaceRoot}/lib/**/*.js",
"${workspaceRoot}/test/**/*.js"
],
"preLaunchTask": "build",
"sourceMaps": true
}
]
}
}
32 changes: 22 additions & 10 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "tsc",
"isShellCommand": true,
"args": ["-w", "-p", "."],
"showOutput": "silent",
"isWatching": true,
"problemMatcher": "$tsc-watch"
}
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"identifier": "build",
"type": "grunt",
"task": "default",
"problemMatcher": [
"$tsc"
]
},
{
"identifier": "build_and_test",
"type": "grunt",
"task": "build_and_test",
"problemMatcher": [
"$tsc"
]
}
]
}
118 changes: 118 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# Contributing to TypeDoc

Thanks for taking the time to contribute! TypeDoc is a volunteer-run project and we couldn't do it without your help.

This document includes a set of guidelines for contributing to TypeDoc. These are guidelines, not rules. If something seems off, please feel free to propose changes to this document in a pull request.

## Table of Contents

1. [How Can I Contribute?](#how-can-i-contribute)
- [Bug Reports](#bug-reports)
- [Suggestions](#suggestions)
- [Code](#code)
1. [Setup - Git, GitHub, and Node](#setup---git-github-and-node)
1. [Linting, Building, and Testing](#linting-building-and-testing)
1. [Pull Requests](#pull-requests)
1. [Updating Your Branch](#updating-your-branch)


## How Can I Contribute?

### Bug Reports

This section guides you through submitting a bug report for TypeDoc. Following these guidelines helps others understand your report and resolve the issue.

Before creating a bug report please check [this list][bugs] list to see if it has already been reported. If the issue is closed, please open a new issue and link to the original issue.

When creating a bug report, explain the problem and include as much additional information as necessary to help maintainers reproduce it. Ideally, provide an example project which highlights the problem.

- **Use a clear and descriptive title** for the issue to identify the problem
- **Describe your project setup**. The easier it is for maintainers to reproduce your problem, the more likely it is to be fixed quickly.
- **Explain what you expected to see instead and why**

### Suggestions

This section guides you through submitting an enhancement suggestion for Typedoc.

Before creating a feature request, please check [this list][suggestions] to see if it has already been requested.

When creating an enhancement request, explain your use case and ultimate goal. This will make it possible for contributors to suggest existing alternatives which may already meet your requirements.

- **Use a clear and descriptive title** for the issue to identify the suggestion.
- **Provide an example where this enhancement would improve TypeDoc**
- **If possible, list another documentation generator where this feature exists**

### Code

Unsure of where to begin contributing to TypeDoc? You can start by looking through the issues labeled [good-first-issue] and [help-wanted]. Issues labeled with [good-first-issue] should only require changing a few lines of code and a test or two. Issues labeled with [help-wanted] can be considerably more involved and may require changing multiple files.

For instructions on setting up your environment, see the [setup](#setup---git-github-and-node) instructions in this document.

If you have started work on an issue and get stuck or want a second opinion on your implementation feel free to reach out through [Gitter].

## Setup - Git, GitHub, and Node

If you don't already have [Git] installed, install it first. You will need it to contribute to TypeDoc. You will also need to install [Node]. TypeDoc requires at least npm 4, so if you are running Node 7.3.0 or older you will need to upgrade npm using `npm install --global npm@^4`.

#### Installation

1. Fork the TypeDoc repository - https://github.com/TypeStrong/typedoc/fork
1. Open a terminal, or "Git Bash" on Windows.
1. Use `cd` to move to the directory that you want to work in.
1. Clone your repository, replace USER with your GitHub username:
```bash
git clone https://github.com/USER/typedoc
```
1. Add the TypeDoc repo as a remote repository
```bash
git remote add typedoc https://github.com/TypeStrong/typedoc
```
1. Install dependencies and build the latest version:
```bash
npm install
```
1. Open the typedoc folder in your favorite editor. If you don't have one, try [Visual Studio Code][VSCode] or [Atom]

## Linting, Building, and Testing

Once you have cloned TypeDoc, you can lint, build, and test the code from your terminal.

#### Linting

To lint the TypeDoc code, run `npm run lint`. This will start tslint and check all files for stylistic problems. You can also install a tslint plugin for your editor to show most style problems as you type.

You can automatically fix some style problems by running `npm run lint -- --fix`.

#### Building

To compile the TypeDoc source, run `npm run grunt`. This will start the TypeScript compiler and output the compiled JavaScript to the `dist` folder. If you want to build and test in one step, run `npm run build`.

#### Testing

TypeDoc includes an extensive set of tests that describe its output. To validate any changes you have made, build the project and then run `npm test`. Alternatively, to rebuild with your changes and then immediately test, run `npm run build`.

If you have changed the TypeDoc output, it will cause tests to fail. Once you have validated that the introduced changes were intended, run `npm run grunt -- update-specs` to update the spec files for the new output.

## Pull Requests

Once you have finished working on an issue, you can submit a pull request to have your changes merged into the TypeDoc repository and included in the next release.

Before submitting a pull request, make sure that there are no linting problems (`npm run lint`), all tests pass (`npm test`), and your branch is up to date. Its also a good idea to join the TypeDoc [Gitter] room to discuss how best to implement changes.

Please do not change the project version number in a pull request.

## Updating Your Branch

If the TypeDoc repository has changed since you originally forked it, you will need to update your repository with the latest changes before submitting a pull request. To pull the latest changes from the TypeDoc repo, run `git pull typedoc master`.

[bugs]: https://github.com/TypeStrong/typedoc/labels/bug
[suggestions]: https://github.com/TypeStrong/typedoc/labels/enhancement
[good-first-issue]: https://github.com/TypeStrong/typedoc/labels/good%20first%20issue
[help-wanted]: https://github.com/TypeStrong/typedoc/labels/help%20wanted

[Gitter]: https://gitter.im/TypeStrong/typedoc
[GitHub]: https://github.com
[Git]: https://git-scm.com
[Node]: https://nodejs.org/en/
[VSCode]: https://code.visualstudio.com/
[Atom]: https://atom.io/
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ in order to change the behaviour of TypeDoc.
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.
Expand Down Expand Up @@ -137,6 +137,7 @@ There is a plugin available to run TypeDoc with Grunt created by Bart van der Sc
* [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
* [Localization](https://github.com/IgniteUI/typedoc-plugin-localization) - Generate documentation for different languages

## Advanced guides and docs

Expand All @@ -150,6 +151,8 @@ This project is maintained by a community of developers. Contributions are welco
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)

For more information, read the [contribution guide](https://github.com/TypeStrong/typedoc/contributing.md).


## License

Expand Down
28 changes: 28 additions & 0 deletions examples/basic/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Example

> Example Documentation

## Installation

Example install

```bash
$ npm install examples --save-dev
```

Example executable: ``examples``.

## Usage

### Shell

Example usage.

```bash
$ examples --out path/to/documentation/ path/to/example/project/
```

### Arguments

* `--example <project>`<br>
Example explanation.
Loading