@unikue/typedoc-plugin-raw-content
v1.0.0
Published
Generates extra raw html contents during typedoc compilation
Downloads
7
Maintainers
Readme
@unikue/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
✅ Support hooking comment.beforeTags event
✅ Support hooking comment.afterTags event
Quickstart
You can install this package in your typescript project as follows:
$ npm install @unikue/typedoc-plugin-raw-content --save-devEnjoy your coding journey with typedoc-plugin-raw-content ✌️
Usage
- Using in command line
$ typedoc [TARGET] --plugin @unikue/typedoc-plugin-raw-content- Using in
typedoc.json
{
"plugin": [
"@unikue/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 | | rawCommentBeforeTags | string[] | comment.beforeTags | | rawCommentAfterTags | string[] | comment.afterTags |
Example
Take rawFooterEnds option as an example in typedoc.json:
{
"hideGenerator": true,
"rawFooterEnds": [
"<div style='text-align: center'>Copyright © 2025 Unikue Ltd. All rights reserved</div>"
]
}Other options are all similar to the sample above.
Document
- GitHub pages: https://unikueltd.github.io/typedoc-plugin-raw-content
License
This project is under the MIT License.
Copyright
Beijing Unikue Network Technology Ltd.
Website
- Unikue: https://unikue.cn
