docusaurus/website/sidebars.js
Joe Previte 07b9e9cd62
feat(v2): expanded sidebar categories by default (#2682)
* feat: update sidebar categ to  take collapsed prop

* feat: add extra sidebars collapsed test

* fix: only mutate item.collapsed if necessary

* feat: update docs for SidebarItemCategory

* fix: update snapshots

* fix: update json to match new sidebar schema

* fix: update last snapshot

* refactor: check if item should be expanded

* docs: update sidebar categories section

* refactor: use new collpased on docusaurus

* feat: only highlight category for active page

* fix: check for window

* refactor: use ExecutionEnviornment

* refactor: make isCategoryOfActivePage pure

* fix: rename docs to docs-introduction in sidebars

* Update docs.md

* misc: remove setting for every sidebar

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-05-28 13:17:19 +08:00

69 lines
1.4 KiB
JavaScript

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = {
docs: [
{
type: 'category',
label: 'Docusaurus',
items: ['introduction', 'design-principles', 'contributing'],
},
{
type: 'category',
label: 'Getting Started',
collapsed: false,
items: ['installation', 'configuration'],
},
{
type: 'category',
label: 'Guides',
items: [
'creating-pages',
'styling-layout',
'static-assets',
{
Docs: ['docs-introduction', 'markdown-features', 'versioning'],
},
'blog',
'search',
'deployment',
'migrating-from-v1-to-v2',
],
},
{
type: 'category',
label: 'Advanced Guides',
items: ['using-plugins', 'using-themes', 'presets'],
},
{
type: 'category',
label: 'API Reference',
items: [
'cli',
'docusaurus-core',
'docusaurus.config.js',
'lifecycle-apis',
'theme-classic',
],
},
],
community: [
'support',
'team',
'resources',
{
type: 'link',
href: '/showcase',
label: 'Showcase',
},
{
type: 'link',
href: '/feedback',
label: 'Feedback',
},
],
};