@yookue/typedoc-plugin-raw-content v0.1.8
@yookue/typedoc-plugin-raw-content
š Generates extra raw html contents during typedoc compilation š
Features
ā
Support hooking head.begin event
ā
Support hooking head.end event
ā
Support hooking body.begin event
ā
Support hooking body.end event
ā
Support hooking content.begin event
ā
Support hooking content.end event
ā
Support hooking sidebar.begin event
ā
Support hooking sidebar.end event
ā
Support hooking pageSidebar.begin event
ā
Support hooking pageSidebar.end event
ā
Support hooking footer.begin event
ā
Support hooking footer.end event
Quickstart
You can install this package in your typescript project as follows:
$ npm install @yookue/typedoc-plugin-raw-content --save-devEnjoy your coding journey with typedoc-plugin-raw-content āļø
Usage
- Using in command line
$ typedoc [TARGET] --plugin @yookue/typedoc-plugin-raw-content- Using in
typedoc.json
{
"plugin": [
"@yookue/typedoc-plugin-raw-content"
]
}Options
Here are the available options, specified them in typedoc.json:
| Option Name | Value Type | Render Event |
|---|---|---|
| rawHeadBegins | string[] | head.begin |
| rawHeadEnds | string[] | head.end |
| rawBodyBegins | string[] | body.begin |
| rawBodyEnds | string[] | body.end |
| rawContentBegins | string[] | content.begin |
| rawContentEnds | string[] | content.end |
| rawSidebarBegins | string[] | sidebar.begin |
| rawSidebarEnds | string[] | sidebar.end |
| rawPageSidebarBegins | string[] | pageSidebar.begin |
| rawPageSidebarEnds | string[] | pageSidebar.end |
| rawFooterBegins | string[] | footer.begin |
| rawFooterEnds | string[] | footer.end |
Example
Take rawFooterEnds option as an example in typedoc.json:
{
"hideGenerator": true,
"rawFooterEnds": [
"<div style='text-align: center'>Copyright © 2024 Yookue Ltd. All rights reserved</div>"
]
}Other options are all similar to the sample above.
Document
- GitHub pages: https://yookue.github.io/typedoc-plugin-raw-content
License
This project is under the MIT License.
Website
- Yookue: https://yookue.com