From 4eb21d46b518c7fdb01a8dd69a00b84cb2bb35d4 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 29 Aug 2021 18:42:57 +0100 Subject: [PATCH] Updates sidebar and footer links --- docusaurus.config.js | 19 +++++++++---------- sidebars.js | 33 +++++++++++++++++++++++++-------- 2 files changed, 34 insertions(+), 18 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 57c17f62..e1164f6a 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -60,9 +60,9 @@ module.exports = { { title: 'Feature Docs Pt 1', items: [ - { label: 'Authentication', to: '/docs/deployment' }, - { label: 'Alternate Views', to: '/docs/configuring' }, - { label: 'Backup & Restore', to: '/docs/management' }, + { label: 'Authentication', to: '/docs/authentication' }, + { label: 'Alternate Views', to: '/docs/alternate-views' }, + { label: 'Backup & Restore', to: '/docs/backup-restore' }, { label: 'Icons', to: '/docs/icons' }, ], }, @@ -78,9 +78,9 @@ module.exports = { { title: 'Community', items: [ - { label: 'Developing', to: '/docs/deployment' }, - { label: 'Development Guides', to: '/docs/configuring' }, - { label: 'Contributing', to: '/docs/management' }, + { label: 'Developing', to: '/docs/developing' }, + { label: 'Development Guides', to: '/docs/development-guides' }, + { label: 'Contributing', to: '/docs/contributing' }, { label: 'Showcase', to: '/docs/showcase' }, { label: 'Credits', to: '/docs/credits' }, ], @@ -88,9 +88,9 @@ module.exports = { { title: 'Misc', items: [ - { label: 'Privacy & Security', to: '/docs/deployment' }, - { label: 'License', to: '/docs/configuring' }, - { label: 'Legal', to: '/docs/management' }, + { label: 'Privacy & Security', to: '/docs/privacy' }, + { label: 'License', to: '/docs/license' }, + { label: 'Legal', to: 'https://github.com/Lissy93/dashy/blob/master/.github/LEGAL.md' }, { label: 'Code of Conduct', to: '/docs/code-of-conduct' }, { label: 'Changelog', to: '/docs/changelog' }, ], @@ -109,7 +109,6 @@ module.exports = { { docs: { sidebarPath: require.resolve('./sidebars.js'), - // Please change this to your repo. editUrl: externalUrl.editUrl, }, theme: { diff --git a/sidebars.js b/sidebars.js index 981a73cd..4478f1bb 100644 --- a/sidebars.js +++ b/sidebars.js @@ -10,17 +10,34 @@ */ module.exports = { - // By default, Docusaurus generates a sidebar from the docs folder structure - tutorialSidebar: [{type: 'autogenerated', dirName: '.'}], + // tutorialSidebar: [{type: 'autogenerated', dirName: '.'}], - // But you can create a sidebar manually - /* - tutorialSidebar: [ + dashySidebar: [ { type: 'category', - label: 'Tutorial', - items: ['hello'], + label: 'Running Dashy', + items: ['quick-start', 'deployment', 'configuring', 'management', 'troubleshooting'], + }, + { + type: 'category', + label: 'Community', + items: ['showcase', 'contributing', 'developing', 'development-guides'], + }, + { + type: 'category', + label: 'Feature Docs', + items: [ + 'icons', 'theming', 'status-indicators', + 'authentication', 'searching', 'alternate-views', + 'multi-language-support', 'backup-restore', + ], + }, + { + type: 'category', + label: 'Misc', + items: ['privacy', 'changelog', 'license', 'code-of-conduct'], }, ], - */ + }; +