From 74888e96dfe456b4ae7f8c7a02ecc925541b9b90 Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Mon, 14 Sep 2020 17:56:46 +0200 Subject: [PATCH] chore(v2): fix theme classic navbar style docs --- 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 6fed3f709204..d462b35cef0d 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', + }, + // ... + }, +}; +``` +