Skip to content

Commit 7a30161

Browse files
author
Martynas Žilinskas
authored
Merge pull request #33 from SimplrJS/dev
v0.1.0
2 parents 1c99f99 + a2db630 commit 7a30161

File tree

140 files changed

+6041
-3478
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+6041
-3478
lines changed

common/config/rush/npm-shrinkwrap.json

Lines changed: 581 additions & 512 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ts-docs-gen/.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"**/.hg": true,
88
"**/CVS": true,
99
"**/.DS_Store": true,
10-
"tests/**/__tests__/**/*.test.ts": true
10+
"tests/cases/__tests__/**/*.test.ts": true
1111
}
1212
}

packages/ts-docs-gen/README.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,45 @@
1-
# ts-docs-gen
1+
# ts-docs-gen
2+
3+
_Readme is WIP._
4+
5+
Generates documentation from TypeScript files.
6+
7+
## Get started
8+
```sh
9+
npm install ts-docs-gen -g
10+
```
11+
12+
## CLI usage
13+
```sh
14+
ts-docs-gen -h
15+
```
16+
17+
### Examples
18+
19+
#### Without config
20+
21+
If you want to use `ts-docs-gen` without config file, `entryFile` flag is required.
22+
```
23+
ts-docs-gen --entryFile ./src/index.ts
24+
```
25+
26+
Multiple entry files:
27+
```
28+
ts-docs-gen --entryFile ./src/index.ts --entryFile ./src/internal.ts
29+
```
30+
31+
#### With config
32+
33+
```
34+
ts-docs-gen --config ./docs-gen.json
35+
```
36+
37+
## Configuration
38+
JSON config properties and CLI flags.
39+
40+
| Property | CLI Flag | Required | Type | Default | Description |
41+
|-------------|-------------------|------------|----------|---------------------------|--------------------------------------------|
42+
| `entryFile` | `--entryFile` | _required_ | string[] | | TypeScript project entry files. |
43+
| `project` | `--project`, `-p` | _optional_ | string | Current working directory | Full path to TypeScript project directory. |
44+
| `output` | `--output`, `-o` | _optional_ | string | ./docs/api/ | Documentation output directory. |
45+
| `plugin` | `--plugin` | _optional_ | string[] | | Packagename or path to plugin. |

packages/ts-docs-gen/docs-gen.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"entryFile": "./src/index.ts"
3+
}

packages/ts-docs-gen/examples/simple/docs/api/exported-functions.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)