-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from SimplrJS/dev
v0.1.0
- Loading branch information
Showing
140 changed files
with
6,041 additions
and
3,478 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,45 @@ | ||
# ts-docs-gen | ||
# ts-docs-gen | ||
|
||
_Readme is WIP._ | ||
|
||
Generates documentation from TypeScript files. | ||
|
||
## Get started | ||
```sh | ||
npm install ts-docs-gen -g | ||
``` | ||
|
||
## CLI usage | ||
```sh | ||
ts-docs-gen -h | ||
``` | ||
|
||
### Examples | ||
|
||
#### Without config | ||
|
||
If you want to use `ts-docs-gen` without config file, `entryFile` flag is required. | ||
``` | ||
ts-docs-gen --entryFile ./src/index.ts | ||
``` | ||
|
||
Multiple entry files: | ||
``` | ||
ts-docs-gen --entryFile ./src/index.ts --entryFile ./src/internal.ts | ||
``` | ||
|
||
#### With config | ||
|
||
``` | ||
ts-docs-gen --config ./docs-gen.json | ||
``` | ||
|
||
## Configuration | ||
JSON config properties and CLI flags. | ||
|
||
| Property | CLI Flag | Required | Type | Default | Description | | ||
|-------------|-------------------|------------|----------|---------------------------|--------------------------------------------| | ||
| `entryFile` | `--entryFile` | _required_ | string[] | | TypeScript project entry files. | | ||
| `project` | `--project`, `-p` | _optional_ | string | Current working directory | Full path to TypeScript project directory. | | ||
| `output` | `--output`, `-o` | _optional_ | string | ./docs/api/ | Documentation output directory. | | ||
| `plugin` | `--plugin` | _optional_ | string[] | | Packagename or path to plugin. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"entryFile": "./src/index.ts" | ||
} |
26 changes: 0 additions & 26 deletions
26
packages/ts-docs-gen/examples/simple/docs/api/exported-functions.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.