From 261a64f70e2cce9f74db37d7651d80cc8fa55c97 Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Thu, 11 Mar 2021 16:38:28 +0800 Subject: [PATCH] chore: update sidebars.js to force top level items to no longer be collapsed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • removed the shorthand sidebar options for this to work --- web/sidebars.js | 58 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/web/sidebars.js b/web/sidebars.js index 7c57c3d2702..f1b1ccffed1 100755 --- a/web/sidebars.js +++ b/web/sidebars.js @@ -13,13 +13,49 @@ const supabaseCli = require('./sidebar_spec_cli') const postgres = require('./sidebar_spec_postgres') module.exports = { - goTrueClient: goTrueClient.docs, - postgrestClient: postgrestClient.docs, - realtimeClient: realtimeClient.docs, + goTrueClient: [ + { + type: 'category', + label: 'Javascript', + collapsed: false, + items: goTrueClient.docs, + }, + ], + postgrestClient: [ + { + type: 'category', + label: 'Javascript', + collapsed: false, + items: postgrestClient.docs, + }, + ], + realtimeClient: [ + { + type: 'category', + label: 'Javascript', + collapsed: false, + items: realtimeClient.docs, + }, + ], supabaseClient: [ - { Postgres: postgres.docs }, - { Javascript: supabaseClient.docs }, - { CLI: supabaseCli.docs }, + { + type: 'category', + label: 'Javascript', + collapsed: false, + items: supabaseClient.docs, + }, + { + type: 'category', + label: 'Postgres', + collapsed: false, + items: postgres.docs, + }, + { + type: 'category', + label: 'CLI', + collapsed: false, + items: supabaseCli.docs, + }, ], docs: [ { type: 'category', label: 'Introduction', items: ['about', 'faq'], collapsed: false }, @@ -37,13 +73,18 @@ module.exports = { }, ], resources: [ - 'resources', + { type: 'category', label: 'Resources', items: ['resources'], collapsed: false }, + // { type: 'category', label: 'Resources', collapsed: false }, { type: 'category', label: 'Learn', + collapsed: false, items: [ { - 'Auth Deep Dive': [ + type: 'category', + label: 'Auth Deep Dive', + collapsed: false, + items: [ 'learn/auth-deep-dive/auth-deep-dive-jwts', 'learn/auth-deep-dive/auth-row-level-security', 'learn/auth-deep-dive/auth-policies', @@ -56,6 +97,7 @@ module.exports = { { type: 'category', label: 'Tools', + collapsed: false, items: [ 'gotrue/server/about', 'gotrue/client/index',