Overrides the default theme of TypeDoc with dark mode and Nationskollen brand colors.
This only has to be done once and then it will work for all repositories. If it is already setup, you can skip to "Installation".
Package is published using Github Packages and requires authentication to both read and write.
First, create a new Personal token in your Github settings:
Settings > Developer Settings > Personal access tokens
Select the write:packages
and read:packages
scopes and click "Generate
token".
Create a new file in your home directory ~/.npmrc
containing the following:
//npm.pkg.github.com/:_authToken=<personal access token>
Create .npmrc
in your project root (same directory as package.json
)
containing the following:
@nationskollen:registry=https://npm.pkg.github.com/
Install the library:
npm install --save @nationskollen/typedoc-theme-overrides
Set the theme and syntax highlighting theme in your typedoc config.
In typedoc.json
in your project root (same as package.json
):
{
"theme": "./node_modules/@nationskollen/typedoc-theme-overrides",
"highlightTheme": "github-dark"
}