Skip to content

Nationskollen theme overrides for documentation generated by TypeDoc

Notifications You must be signed in to change notification settings

nationskollen/typedoc-theme-overrides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeDoc theme overrides

Overrides the default theme of TypeDoc with dark mode and Nationskollen brand colors.

Initial setup

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>

Github Docs

Installation

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

Usage

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"
}