mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-02 11:47:23 +02:00
* 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>
69 lines
1.4 KiB
JavaScript
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',
|
|
},
|
|
],
|
|
};
|