diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 4befbb2edc..b47113dfb4 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -129,6 +129,11 @@ gtag('config', 'UA-24637628-7'); }, nav: [ { text: 'Docs', link: '/' }, + { + text: 'User Guide', + link: '/user-guide/overview/data-studio-app', + activeMatch: '/user-guide', + }, // { text: 'Cookbook', link: '/cookbook/add-a-recipe', activeMatch: '/cookbook/' }, { text: 'Website', link: 'https://directus.io/' }, { text: 'Cloud', link: 'https://directus.cloud/' }, @@ -142,6 +147,7 @@ gtag('config', 'UA-24637628-7'); sidebar: { // '/cookbook/': sidebarCookbooks(), '/': sidebar(), + '/user-guide/': sidebarUserGuide(), '/packages/': sidebarTypedocs(), }, editLink: { @@ -219,10 +225,6 @@ function sidebar() { text: 'Resources', link: '/getting-started/resources', }, - { - text: 'Glossary', - link: '/getting-started/glossary', - }, ], }, { @@ -230,66 +232,6 @@ function sidebar() { collapsible: true, collapsed: true, items: [ - { - link: '/app/overview', - text: 'Overview', - }, - { - link: '/app/content', - text: 'Content', - type: 'page', - items: [ - { - link: '/app/content/collections', - text: 'Collection Page', - type: 'page', - }, - { - link: '/app/content/items', - text: 'Item Page', - }, - { - link: '/app/content/shares', - text: 'Shares', - }, - ], - }, - { - link: '/app/user-directory', - text: 'User Directory', - }, - { - link: '/app/file-library', - text: 'File Library', - }, - { - link: '/app/insights', - text: 'Insights', - }, - { - link: '/app/settings', - text: 'Settings', - }, - { - link: '/app/display-templates', - text: 'Display Templates', - }, - { - link: '/app/filters', - text: 'Filters', - }, - { - link: '/app/layouts', - text: 'Layouts', - }, - { - link: '/app/import-export', - text: 'Import / Export', - }, - { - link: '/app/project-settings', - text: 'Project Settings', - }, { link: '/app/data-model', text: 'Data Model', @@ -336,32 +278,6 @@ function sidebar() { }, ], }, - { - link: '/app/users-roles-permissions', - text: 'Users, Roles & Permissions', - items: [ - { - link: '/app/users-roles-permissions/users', - text: 'Users', - }, - { - link: '/app/users-roles-permissions/roles', - text: 'Roles', - }, - { - link: '/app/users-roles-permissions/permissions', - text: 'Permissions', - }, - ], - }, - { - link: '/app/presets-bookmarks', - text: 'Presets & Bookmarks', - }, - { - link: '/app/translation-strings', - text: 'Translation Strings', - }, { link: '/app/webhooks', text: 'Webhooks', @@ -381,10 +297,6 @@ function sidebar() { }, ], }, - { - link: '/app/activity-log', - text: 'Activity Log', - }, ], }, { @@ -724,3 +636,186 @@ function sidebar() { }, ]; } + +function sidebarUserGuide() { + return [ + { + text: 'Overview', + items: [ + { + text: 'Data Studio App', + link: '/user-guide/overview/data-studio-app', + }, + { + text: 'Quickstart Guide', + link: '/user-guide/overview/quickstart', + }, + { + text: 'Glossary', + link: '/user-guide/overview/glossary', + }, + ], + }, + { + text: 'Content Module', + collapsible: true, + collapsed: true, + items: [ + { + link: '/user-guide/content-module/content', + text: 'Managing Content', + type: 'page', + items: [ + { + link: '/user-guide/content-module/content/collections', + text: 'Collection Page', + type: 'page', + }, + { + link: '/user-guide/content-module/content/items', + text: 'Item Page', + }, + { + link: '/user-guide/content-module/content/shares', + text: 'Shares', + }, + ], + }, + { + text: 'Layouts', + link: '/user-guide/content-module/layouts', + }, + { + text: 'Import/Export', + link: '/user-guide/content-module/import-export', + }, + { + text: 'Filters', + link: '/user-guide/content-module/filters', + }, + { + text: 'Translation Strings', + link: '/user-guide/content-module/translation-strings', + }, + { + text: 'Display Templates', + link: '/user-guide/content-module/display-templates', + }, + ], + }, + { + text: 'User Management', + collapsible: true, + collapsed: true, + items: [ + { + link: '/user-guide/user-management/users-roles-permissions', + text: 'Users, Roles & Permissions', + type: 'page', + items: [ + { + text: 'Users', + link: '/user-guide/user-management/users', + }, + { + text: 'Roles', + link: '/user-guide/user-management/roles', + }, + { + text: 'Permissions', + link: '/user-guide/user-management/permissions', + }, + ], + }, + { + text: 'User Directory', + link: '/user-guide/user-management/user-directory', + }, + ], + }, + { + text: 'File Library', + collapsible: true, + collapsed: true, + items: [ + { + text: 'Files', + link: '/user-guide/file-library/files', + }, + { + text: 'Folders', + link: '/user-guide/file-library/folders', + }, + ], + }, + { + text: 'Insights', + collapsible: true, + collapsed: true, + items: [ + { + text: 'Dashboards', + link: '/user-guide/insights/dashboards', + }, + { + text: 'Panels', + link: '/user-guide/insights/panels', + }, + { + text: 'Charts', + link: '/user-guide/insights/charts', + }, + ], + }, + { + text: 'Directus Cloud', + collapsible: true, + collapsed: true, + items: [ + { + text: 'Overview', + link: '/user-guide/cloud/overview', + }, + { + text: 'Projects', + link: '/user-guide/cloud/projects', + }, + { + text: 'Teams', + link: '/user-guide/cloud/teams', + }, + { + text: 'Accounts', + link: '/user-guide/cloud/accounts', + }, + { + text: 'Project Settings', + link: '/user-guide/cloud/project-settings', + }, + { + text: 'Glossary', + link: '/user-guide/cloud/glossary', + }, + ], + }, + { + text: 'General Settings', + collapsible: true, + collapsed: true, + items: [ + { + text: 'Settings', + link: '/user-guide/settings/settings', + }, + { + text: 'Preset and Bookmarks', + link: '/user-guide/settings/presets-bookmarks', + }, + { + text: 'Activity Log', + link: '/user-guide/settings/activity-log', + }, + ], + }, + ]; +} diff --git a/docs/.vitepress/theme/DocLayout.vue b/docs/.vitepress/theme/DocLayout.vue index 2d37d85c1a..9190de58d9 100644 --- a/docs/.vitepress/theme/DocLayout.vue +++ b/docs/.vitepress/theme/DocLayout.vue @@ -1,7 +1,7 @@