Skip to content

Commit

Permalink
feat(docs): always expanding collapsible sidebar menus under docs (#5608
Browse files Browse the repository at this point in the history
)

* feat(docs): always expanding collapsible sidebar menus under docs

* feat(docs): always expanding collapsible sidebar menus under docs
  • Loading branch information
santoshyadavdev committed Sep 7, 2022
1 parent 45e2912 commit 8176fb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 5 additions & 2 deletions packages/website/sidebars/sidebar.base.js
@@ -1,11 +1,12 @@
module.exports = {
docs: [
{
collapsed: false,
collapsible: false,
items: [
{
label: 'Linting with Type Information',
items: ['linting/typed-linting/monorepos'],
collapsible: false,
link: {
id: 'linting/typed-linting',
type: 'doc',
Expand All @@ -19,6 +20,7 @@ module.exports = {
id: 'linting/troubleshooting',
type: 'doc',
},
collapsible: false,
type: 'category',
items: [
'linting/troubleshooting/formatting',
Expand All @@ -36,11 +38,12 @@ module.exports = {
{
type: 'category',
label: 'Development',
collapsed: false,
collapsible: false,
items: [
{
label: 'Architecture',
type: 'category',
collapsible: false,
items: [
'development/architecture/asts',
'development/architecture/packages',
Expand Down
3 changes: 0 additions & 3 deletions packages/website/sidebars/sidebar.rules.js
Expand Up @@ -43,10 +43,7 @@ const paths = globby
});

function createCategory(label, rules, additionalItems = []) {
const collapsed = !additionalItems.length;
return {
collapsed,
collapsible: collapsed,
items: [
...rules.map(rule => {
return {
Expand Down

0 comments on commit 8176fb1

Please sign in to comment.