Skip to content

ThemeOptions

type ThemeOptions =
    {
        Docs: DocsOptions
        HeadExtra: ReactElement list
        Styles: StyleLayer list
        Css: string list
        Footer: ReactElement option
        FavIcon: string option
        SocialImage: string option
        Parts: ThemeParts
    }
AssemblyNacara.Theme.Default

Options of the default theme.

Fields

Docs: DocsOptions

What every documentation theme is told: navbar, menus, where a page's source is.

HeadExtra: ReactElement list

Extra markup injected at the end of <head>.

Styles: StyleLayer list

The layers of the theme's stylesheet, first one lowest.

Css: string list

CSS added to every page, outside any layer, so it wins over the theme's own.

For a rule or two. A stylesheet of your own belongs in a file, shipped as a static asset and linked from HeadExtra.

Footer: ReactElement option
FavIcon: string option

Path of the favicon, relative to the site root.

SocialImage: string option

The image a link to a page is shown with on social sites, for a page that names none, by its path relative to the site root or an absolute url.

Parts: ThemeParts

What renders each part of a page.