Skip to content

Commit

Permalink
feat(docs): always expanding collapsible sidebar menus under docs (#5554
Browse files Browse the repository at this point in the history
)
  • Loading branch information
santoshyadavdev committed Sep 3, 2022
1 parent dce56b4 commit f5092a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/website/sidebars/sidebar.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
{
label: 'Linting with Type Information',
items: ['linting/typed-linting/monorepos'],
collapsed: false,
link: {
id: 'linting/typed-linting',
type: 'doc',
Expand All @@ -19,6 +20,7 @@ module.exports = {
id: 'linting/troubleshooting',
type: 'doc',
},
collapsed: false,
type: 'category',
items: [
'linting/troubleshooting/formatting',
Expand All @@ -41,6 +43,7 @@ module.exports = {
{
label: 'Architecture',
type: 'category',
collapsed: false,
items: [
'development/architecture/asts',
'development/architecture/packages',
Expand Down
3 changes: 0 additions & 3 deletions packages/website/sidebars/sidebar.rules.js
Original file line number Diff line number Diff line change
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 f5092a8

Please sign in to comment.