|
1
|
# react-docs-generator |
|
2
|
|
|
3
|
Tool that generates documentation for React components. It's built with [react-docgen](https://react-docgen.dev/) and [Typedoc](https://typedoc.org/). |
|
4
|
|
|
5
|
## Usage |
|
6
|
|
|
7
|
```bash |
|
8
|
yarn start --src ./path/to/src --output ./path/to/output/dir |
|
9
|
``` |
|
10
|
|
|
11
|
### Options |
|
12
|
|
|
13
|
- `--src <srcPath>`: (required) A path to a file containing React components or a directory to scan its sub-directories and files for components. |
|
14
|
- `--output <outputPath>`: (required) Path to the directory to store the output in. |
|
15
|
- `--clean`: If used, the output directory is emptied before generating the new output. |
|
16
|
- `--tsconfigPath <path>`: Path to a TS Config file which is used by Typedoc. By default, the file at `www/utils/packages/typedoc-config/ui.json` is used. |
|
17
|
- `--disable-typedoc`: Whether to disable Typedoc and generate the spec file using `react-docgen` only. Useful for debugging. |
|
18
|
- `--verbose-typedoc`: Whether to show the output of Typedoc. By default, it's disabeld. |