-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): updated frontmatter docs
- Loading branch information
Showing
8 changed files
with
123 additions
and
94 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,46 @@ | ||
# Block Tags Warning | ||
|
||
If using a custom tag, TypeDoc (since 0.26) will generate the following warning: | ||
|
||
```shell | ||
[warning] Encountered an unknown block tag @description | ||
``` | ||
|
||
To suppress this warning you have two options. | ||
|
||
#### 1. Using the `--blockTags` TypeDoc option: | ||
|
||
You can extend the tag defaults by using a JavaScript configuration file: | ||
|
||
```ts | ||
import { OptionDefaults } from 'typedoc'; | ||
|
||
const config = { | ||
blockTags: [...OptionDefaults.blockTags, '@description', '@author'], | ||
}; | ||
``` | ||
|
||
See https://typedoc.org/options/comments/#blocktags. | ||
|
||
#### 2. Adding a `tsdoc.json` file: | ||
|
||
You add a `tsdoc.json` file next to your `tsconfig.json` file and include the `@source` tag name. | ||
|
||
```json | ||
{ | ||
"$schema": "https://developer.microsoft.com/en-us/json-schemas/tsdoc/v0/tsdoc.schema.json", | ||
"extends": ["typedoc/tsdoc.json"], | ||
"tagDefinitions": [ | ||
{ | ||
"tagName": "@description", | ||
"syntaxKind": "block" | ||
}, | ||
{ | ||
"tagName": "@author", | ||
"syntaxKind": "block" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
See https://typedoc.org/options/configuration/#tsconfig. |
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
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
Oops, something went wrong.