chore: update sidebars.js to force top level items to no longer be collapsed.

• removed the shorthand sidebar options for this to work
This commit is contained in:
Jonathan Summers-Muir committed 2021-03-11 16:38:28 +08:00
1 parent 79989c5f46
commit 261a64f70e
1 file changed
+50 -8
+50 -8
View File
@@ -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',