Skip to content

Commit

Permalink
Merge pull request #678 from vexr/auto-collapse-sidebar-categories
Browse files Browse the repository at this point in the history
Auto-collapse sidebar categories
  • Loading branch information
EmilFattakhov authored Oct 9, 2024
2 parents ae28815 + 635c5ee commit 22f6e0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 1 addition & 4 deletions docs/learn/_category_.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"label": "Learn",
"position": 1,
"link": {
"type": "generated-index",
"description": "Learn about the Autonomys Network"
}
"link": null
}
7 changes: 6 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const config = {
// Redirecting to the new root URL (/) as the previous root (/docs) is no longer in use.

// Learn
{ to: '/learn/intro', from: ['/docs/learn/intro'] },
{ to: '/learn/intro', from: ['/category/learn,', '/docs/learn/intro'] },
{ to: '/learn/security', from: ['/docs/learn/security'] },
{ to: '/learn/academy', from: ['/docs/learn/academy'] },

Expand Down Expand Up @@ -177,6 +177,11 @@ const config = {
colorMode:{
defaultMode: 'dark'
},
docs: {
sidebar: {
autoCollapseCategories: true,
},
},
navbar: {
title: 'Autonomys',
logo: {
Expand Down

0 comments on commit 22f6e0d

Please sign in to comment.