mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 20:17:50 +02:00
fix(v2): remove empty doc sidebar container (#1870)
This commit is contained in:
parent
68d5adfc2c
commit
11f99774e0
2 changed files with 10 additions and 7 deletions
|
@ -3,6 +3,7 @@
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
- Add sticky footer.
|
- Add sticky footer.
|
||||||
|
- Remove empty doc sidebar container
|
||||||
|
|
||||||
## 2.0.0-alpha.30
|
## 2.0.0-alpha.30
|
||||||
|
|
||||||
|
|
|
@ -23,13 +23,15 @@ function DocPage(props) {
|
||||||
return (
|
return (
|
||||||
<Layout noFooter>
|
<Layout noFooter>
|
||||||
<div className={styles.docPage}>
|
<div className={styles.docPage}>
|
||||||
<div className={styles.docSidebarContainer}>
|
{sidebar && (
|
||||||
<DocSidebar
|
<div className={styles.docSidebarContainer}>
|
||||||
docsSidebars={docsSidebars}
|
<DocSidebar
|
||||||
location={location}
|
docsSidebars={docsSidebars}
|
||||||
sidebar={sidebar}
|
location={location}
|
||||||
/>
|
sidebar={sidebar}
|
||||||
</div>
|
/>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<main className={styles.docMainContainer}>
|
<main className={styles.docMainContainer}>
|
||||||
<MDXProvider components={MDXComponents}>
|
<MDXProvider components={MDXComponents}>
|
||||||
{renderRoutes(route.routes)}
|
{renderRoutes(route.routes)}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue