From 4f0fa7cfd2894a75c90a0cf4e2fb2d61c9502891 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Tue, 11 Jan 2022 13:43:19 +0100 Subject: [PATCH] docs: move addons and (most) api docs to reference --- website/sidebars.js | 64 +++++++++++++++++++++++++-------------------- 1 file changed, 35 insertions(+), 29 deletions(-) diff --git a/website/sidebars.js b/website/sidebars.js index 0e4cd3566a..fcf730d08b 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -13,10 +13,42 @@ module.exports = { documentation: [ 'user_guide/index', { - Tutorials: ['user_guide/index'], - 'Reference documentation': ['user_guide/index'], + Tutorials: [], + 'Reference documentation': [ + { + type: 'category', + link: { type: 'doc', id: 'addons/index' }, + items: [ + 'addons/webhook', + 'addons/slack', + 'addons/teams', + 'addons/datadog', + ], + label: 'Addons', + }, + { + 'Admin API': [ + 'api/admin/features', + 'api/admin/projects', + 'api/admin/feature-toggles-v2', + 'api/admin/features-archive', + 'api/admin/strategies', + 'api/admin/metrics', + 'api/admin/events', + 'api/admin/state', + 'api/admin/feature-types', + 'api/admin/addons', + 'api/admin/context', + 'api/admin/user-admin', + ], + 'Client SDK API': [ + 'api/client/features', + 'api/client/register', + 'api/client/metrics', + ], + }, + ], 'Getting started': [ - 'user_guide/index', 'user_guide/quickstart', 'user_guide/important-concepts', 'user_guide/v4-whats-new', @@ -51,13 +83,6 @@ module.exports = { href: '/sdks#community-sdks', }, ], - Addons: [ - 'addons/index', - 'addons/webhook', - 'addons/slack', - 'addons/teams', - 'addons/datadog', - ], Advanced: [ 'advanced/strategy_constraints', 'advanced/custom_activation_strategy', @@ -89,25 +114,6 @@ module.exports = { 'api/internal/health', 'api/open_api', ], - 'Admin API': [ - 'api/admin/features', - 'api/admin/projects', - 'api/admin/feature-toggles-v2', - 'api/admin/features-archive', - 'api/admin/strategies', - 'api/admin/metrics', - 'api/admin/events', - 'api/admin/state', - 'api/admin/feature-types', - 'api/admin/addons', - 'api/admin/context', - 'api/admin/user-admin', - ], - 'Client SDK API': [ - 'api/client/features', - 'api/client/register', - 'api/client/metrics', - ], }, 'Deploy and manage': { 'Deploy & configure': [