From a0cac48cd487fe908f1c986b4a0e8aec4a0c5b46 Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Wed, 16 Sep 2020 09:46:28 +0200 Subject: [PATCH] chore(v2): fix theme classic navbar style docs (#3448) --- website/docs/theme-classic.md | 18 ++++++++++++++++++ .../version-2.0.0-alpha.63/theme-classic.md | 18 ------------------ .../version-2.0.0-alpha.64/theme-classic.md | 18 ++++++++++++++++++ 3 files changed, 36 insertions(+), 18 deletions(-) diff --git a/website/docs/theme-classic.md b/website/docs/theme-classic.md index 6fed3f7092..d462b35cef 100644 --- a/website/docs/theme-classic.md +++ b/website/docs/theme-classic.md @@ -318,6 +318,24 @@ module.exports = { }; ``` +### Navbar style + +You can set the static Navbar style without disabling the theme switching ability. The selected style will always apply no matter which theme user have selected. + +Currently, there are two possible style options: `dark` and `primary` (based on the `--ifm-color-primary` color). You can see the styles preview in the [Infima documentation](https://facebookincubator.github.io/infima/docs/components/navbar/). + +```js {5} title="docusaurus.config.js" +module.exports = { + // ... + themeConfig: { + navbar: { + style: 'primary', + }, + // ... + }, +}; +``` +