mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-25 15:07:17 +02:00
fix: change subcategory format (#1026)
* fix: change subcategory format * Fix sidebars * Refactor * Fix implementation * Change format
This commit is contained in:
parent
c277f46a60
commit
fe500dea82
19 changed files with 493 additions and 15047 deletions
|
@ -28,12 +28,13 @@ if (fs.existsSync(`../server/languages.js`)) {
|
|||
|
||||
class DocsSidebar extends React.Component {
|
||||
render() {
|
||||
const sidebar = this.props.metadata.sidebar;
|
||||
const {category, sidebar} = this.props.metadata;
|
||||
const docsCategories = readCategories(sidebar, Metadata, languages);
|
||||
const categoryName = this.props.metadata.category;
|
||||
if (!categoryName) {
|
||||
|
||||
if (!category) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Container className="docsNavContainer" id="docsNav" wrapper={false}>
|
||||
<SideNav
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue