Improved and redesigned header now allows making the header fixed and adding a logo image.
Inside doczrc.js
file there is a themeConfig.header.fixed
option:
//doczrc.jsexport default {themeConfig: {header: {fixed: true,},},};
Name | Type | Default | Description |
---|---|---|---|
fixed | boolean | false | Specify if the header should be fixed at the top. |
Inside doczrc.js
file there is a themeConfig.logo
option with a possibility to define logos for light and dark theme.
public
folder or the provided option has to be an url address.//doczrc.jsexport default {themeConfig: {logo: {src: '/public/logo.svg',width: 50,},},};
Example with an url:
//doczrc.jsexport default {themeConfig: {logo: {src: 'https://www.my-website.com/logo.svg',width: 50,},},};
Example with a light and dark theme logo option:
//doczrc.jsexport default {themeConfig: {logo: {src: {light: '/public/logo.svg',dark: 'https://www.my-website.com/logo-dark.svg',},width: 50,},},};
Name | Type | Default | Description |
---|---|---|---|
src | string | object | — | Specify the image source as an path or url. |
width | string | number | 75px | Specify the image width. |
Inside doczrc.js
file there is a themeConfig.header.icons
option:
//doczrc.jsexport default {themeConfig: {header: {icons: 'minimal',},},};
Name | Type | Default | Description |
---|---|---|---|
icons | 'minimal' | 'default' | default | Specify the header icons style. |