DocsOptions
type DocsOptions =
{
Navbar: NavbarItem list
NavbarEnd: NavbarItem list
BrandIcon: BrandIcon option
Menus: Map<string,MenuItem list>
EditUrlBase: string option
MenuLimit: int
MenuGroupLimit: int
}| Assembly | Nacara.Theme.Docs |
What a documentation theme is told about the site it draws.
The part of a theme's options every documentation theme shares: what the navbar holds, which menu each section shows, where a page's source is. A theme adds its own options beside these.
Fields
BrandIcon: BrandIcon option
BrandIcon: BrandIcon optionThe icon before the site's title in the navbar.
EditUrlBase: string option
EditUrlBase: string optionBase URL for "edit this page" links, for example
Functions and values
brandIcon (value: BrandIcon) (options: DocsOptions) : DocsOptions
brandIcon (value: BrandIcon) (options: DocsOptions) : DocsOptionsThe icon before the site's title in the navbar.
| Parameter | |
|---|---|
value | An image file or SVG markup. |
options | The options so far. |
defaults: DocsOptionseditUrl (value: string) (options: DocsOptions) : DocsOptions
editUrl (value: string) (options: DocsOptions) : DocsOptionsBase URL for the "edit this page" link.
| Parameter | |
|---|---|
value | Where an edit starts, such as https://github.com/owner/repo/edit/main/docs. |
options | The options so far. |