Skip to content

Commit

Permalink
Merge pull request #1184 from andrewnicols/fixNavbar
Browse files Browse the repository at this point in the history
Update navbar
  • Loading branch information
andrewnicols authored Nov 12, 2024
2 parents 600d8de + 9d16c8f commit 8045076
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 29 deletions.
46 changes: 43 additions & 3 deletions config/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,55 @@ const navbar = {
to: '/general/community/contribute',
label: 'Community',
position: 'left',
activeBasePath: '/general/community',
},
{
to: '/general/development/gettingstarted',
type: 'docSidebar',
position: 'left',
sidebarId: 'coding',
label: 'Coding',
docsPluginId: 'general',
},
{
type: 'docSidebar',
position: 'left',
sidebarId: 'process',
label: 'Processes',
docsPluginId: 'general',
},
{
type: 'docSidebar',
position: 'left',
sidebarId: 'moodleapp',
label: 'Moodle App',
docsPluginId: 'general',
},
{
type: 'docSidebar',
position: 'left',
sidebarId: 'releaseNotes',
label: 'Releases',
docsPluginId: 'general',
},
{
to: '/general/development/process',
label: 'Process',
type: 'dropdown',
label: 'Writing',
items: [
{
type: 'docSidebar',
// position: 'left',
sidebarId: 'contentguidelines',
label: 'Content guidelines',
docsPluginId: 'general',
},
{
type: 'docSidebar',
// position: 'left',
sidebarId: 'documentation',
label: 'Documentation',
docsPluginId: 'general',
},
],
position: 'left',
},

Expand Down
19 changes: 4 additions & 15 deletions sidebars/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,34 +49,23 @@ const sidebars = {
id: 'apis',
},
},

{
label: 'Content guidelines',
type: 'link',
href: '/general/contentguidelines',
},

{
label: 'Developer update',
type: 'doc',
id: 'devupdate',
},

{
label: 'Moodle App',
type: 'link',
href: '/general/app',
},

{
type: 'html',
value: '<hr>',
},

{
label: 'Release notes',
label: 'Content guidelines',
type: 'link',
href: '/general/releases/4.3',
href: '/general/contentguidelines',
},

{
label: 'Projects',
type: 'link',
Expand Down
13 changes: 2 additions & 11 deletions sidebars/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,8 @@ const sidebars = {
},
{
label: 'Upgrade notes',
type: 'category',
items: [
{
type: 'autogenerated',
dirName: 'development/upgradenotes',
},
],
link: {
type: 'doc',
id: 'development/upgradenotes',
},
type: 'doc',
id: 'development/upgradenotes',
},
],

Expand Down

0 comments on commit 8045076

Please sign in to comment.