0.1.1 ā€¢ Published 23 days ago

@yookue/typedoc-raw-content v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
23 days ago

@yookue/typedoc-raw-content

NPM version Software License NPM downloads

šŸ… 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-raw-content --save-dev

Enjoy your coding journey with typedoc-raw-content. āœŒļø

Usage

  • Using in command line
$ typedoc [TARGET] --plugin @yookue/typedoc-raw-content
  • Using in typedoc.json
{
    "plugin": [
        "@yookue/typedoc-raw-content"
    ]
}

Options

Here are the available options, specified them in typedoc.json:

Render EventOption NameValue Type
head.beginrawHeadBeginsstring[]
head.endrawHeadEndsstring[]
body.beginrawBodyBeginsstring[]
body.endrawBodyEndsstring[]
content.beginrawContentBeginsstring[]
content.endrawContentEndsstring[]
sidebar.beginrawSidebarBeginsstring[]
sidebar.endrawSidebarEndsstring[]
pageSidebar.beginrawPageSidebarBeginsstring[]
pageSidebar.endrawPageSidebarEndsstring[]
footer.beginrawFooterBeginsstring[]
footer.endrawFooterEndsstring[]

Example

Take rawFooterEnds option as an example in typedoc.json:

{
    "hideGenerator": true,
    "rawFooterEnds": [
        "<div style='text-align: center'>Copyright &copy; 2024 Yookue Ltd. All rights reserved</div>"
    ]
}

Other options are all the same as the sample above.

Document

License

This project is under the MIT License.

Website

0.1.1

23 days ago

0.1.0

23 days ago