mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-27 23:17:56 +02:00
Add separate on-page navigation sidebar (#475)
This commit is contained in:
parent
f093790947
commit
4ff2fe280e
5 changed files with 127 additions and 2 deletions
|
@ -11,6 +11,7 @@ const HeaderNav = require('./nav/HeaderNav.js');
|
|||
const Head = require('./Head.js');
|
||||
const Footer = require(process.cwd() + '/core/Footer.js');
|
||||
const translation = require('../server/translation.js');
|
||||
const classNames = require('classnames');
|
||||
|
||||
const CWD = process.cwd();
|
||||
|
||||
|
@ -63,7 +64,11 @@ class Site extends React.Component {
|
|||
title={title}
|
||||
url={url}
|
||||
/>
|
||||
<body className={this.props.className}>
|
||||
<body
|
||||
className={classNames({
|
||||
[this.props.className]: true,
|
||||
separateOnPageNav: this.props.config.onPageNav == 'separate',
|
||||
})}>
|
||||
<HeaderNav
|
||||
config={this.props.config}
|
||||
baseUrl={this.props.config.baseUrl}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue