-
Notifications
You must be signed in to change notification settings - Fork 886
Expand file tree
/
Copy pathoptions.d.ts
More file actions
47 lines (35 loc) · 1.47 KB
/
options.d.ts
File metadata and controls
47 lines (35 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
import BootstrapIcons from 'bootstrap-icons/font/bootstrap-icons.json'
import { HLJSApi } from 'highlight.js'
import { AnchorJSOptions } from 'anchor-js'
import { MermaidConfig } from 'mermaid'
import lunr from 'lunr'
export type Theme = 'light' | 'dark' | 'auto'
export type IconLink = {
/** A [bootstrap-icons](https://icons.getbootstrap.com/) name */
icon: keyof typeof BootstrapIcons,
/** The URL of this icon link */
href: string,
/** The title of this icon link shown on mouse hover */
title?: string
}
/**
* Enables customization of the website through the global `window.docfx` object.
*/
export type DocfxOptions = {
/** Configures the default theme */
defaultTheme?: Theme,
/** A list of icons to show in the header next to the theme picker */
iconLinks?: IconLink[],
/** Configures [anchor-js](https://www.bryanbraun.com/anchorjs#options) options */
anchors?: AnchorJSOptions,
/** Configures mermaid diagram options */
mermaid?: MermaidConfig,
/** A list of [lunr languages](https://github.com/MihaiValentin/lunr-languages#readme) such as fr, es for full text search */
lunrLanguages?: string[],
/** Configures [hightlight.js](https://highlightjs.org/) */
configureHljs?: (hljs: HLJSApi) => void,
/** Configures [lunr](https://lunrjs.com/docs/index.html) */
configureLunr?: (lunr: lunr.Builder) => void,
}