Skip to content
@ng-doc/app / Interface

NgDocHighlighterConfig

Shiki configuration of the code highlighter.

DeclarationTypeScript
export interface NgDocHighlighterConfig { … }

Members

Properties

2
theme?: { light: string; dark: string; } | undefined
Deprecated

Set the theme names in shiki.themes of ng-doc.config.ts instead, and load other themes with themes. This field will be removed in a future major release.

Has no effect, and is reported in development mode.

The theme names come from shiki.themes in ng-doc.config.ts: NgDoc highlights code blocks with them when it builds the site, and passes them to the application (NG_DOC_SHIKI_THEME), so the code that the browser highlights matches the code blocks.

themes?: ThemeInput[] | undefined

Themes sources.

Symbol
Kind
Interface
Scope
@ng-doc/app
Edit this page