Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(v2): fix theme classic navbar style docs
Browse files Browse the repository at this point in the history
Simek committed Sep 14, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 9bf4dfb commit 74888e9
Showing 3 changed files with 36 additions and 18 deletions.
18 changes: 18 additions & 0 deletions website/docs/theme-classic.md
Original file line number Diff line number Diff line change
@@ -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',
},
// ...
},
};
```

<!--
## Footer
18 changes: 0 additions & 18 deletions website/versioned_docs/version-2.0.0-alpha.63/theme-classic.md
Original file line number Diff line number Diff line change
@@ -304,24 +304,6 @@ 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',
},
// ...
},
};
```

<!--
## Footer
18 changes: 18 additions & 0 deletions website/versioned_docs/version-2.0.0-alpha.64/theme-classic.md
Original file line number Diff line number Diff line change
@@ -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',
},
// ...
},
};
```

<!--
## Footer

0 comments on commit 74888e9

Please sign in to comment.