typedoc-plugin-cname
Version:
CNAME file configuration for typedoc generation
32 lines (26 loc) • 970 B
Markdown
# CNAME file configuration for typedoc

[](https://app.codecov.io/gh/JoshStern/typedoc-plugin-cname)

[](https://www.npmjs.com/package/typedoc-plugin-cname)
Github pages uses a `CNAME` file at the root of the docs directory and `typedoc` will remove the
it when regenerating docs. `typedoc-plugin-cname` allows for a CNAME host to be configured and
added to the output directory.
## Installation
```sh
npm install -D typedoc typedoc-plugin-cname
```
## Usage
This plugin adds the `cname` option which can be used to set a hostname.
### CLI
```sh
npx tsdoc --plugin typedoc-plugin-cname --cname <host> <entryPoint>
```
### Config file
```json
// typedoc.json
{
// ...
"cname": "<host>"
}
```