From db34f369cd36bb77264def4ed0336b177cc1a383 Mon Sep 17 00:00:00 2001 From: Paul Copplestone Date: Tue, 17 Aug 2021 15:05:52 +0800 Subject: [PATCH] cleans up the routing - now everything is on a base route rather than "/docs" --- about/docs/about.md | 10 -- about/docs/careers/snippets/roles.mdx | 12 +- about/docs/handbook.mdx | 10 ++ about/docusaurus.config.js | 167 +++++++++++++------------- about/sidebars.js | 2 +- 5 files changed, 98 insertions(+), 103 deletions(-) delete mode 100755 about/docs/about.md create mode 100755 about/docs/handbook.mdx diff --git a/about/docs/about.md b/about/docs/about.md deleted file mode 100755 index 19f5d1822c2..00000000000 --- a/about/docs/about.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -id: about -title: About -description: 'What is Supabase?' -slug: / ---- - -## What it this? - -This is the internal Supabase guide. It is a work in progress. diff --git a/about/docs/careers/snippets/roles.mdx b/about/docs/careers/snippets/roles.mdx index 6028250ef86..54e08c84b86 100644 --- a/about/docs/careers/snippets/roles.mdx +++ b/about/docs/careers/snippets/roles.mdx @@ -1,40 +1,40 @@ - +

Ex-Founders

Create your own role.

- +

Postgres Experts

Postgres application engineers, support engineers, technical writers.

- +

Cloud Platform Engineers and SRE's

Build our cloud platform.

- +

Developer Advocates and Community Managers

Get more developers interested in Postgres and Supabase.

- +

Developer Support and QA Engineers

Build internal tooling, automated tests, and support processes.

- +

Full-stack engineers

Build our Dashboard, tools, and tests.

diff --git a/about/docs/handbook.mdx b/about/docs/handbook.mdx new file mode 100755 index 00000000000..52da1020c95 --- /dev/null +++ b/about/docs/handbook.mdx @@ -0,0 +1,10 @@ +--- +id: handbook +title: Handbook +description: 'What is the Supabase Handbook?' +slug: /handbook +--- + +## What it this? + +This is the internal Supabase guide. It is a work in progress. diff --git a/about/docusaurus.config.js b/about/docusaurus.config.js index e300eb48a9a..4c0a97c3f6f 100755 --- a/about/docusaurus.config.js +++ b/about/docusaurus.config.js @@ -68,15 +68,15 @@ module.exports = { position: 'right', }, { - label: 'Overview', - to: '/docs', - activeBaseRegex: '(^/docs$)|(/docs/faq)|(^/docs/guides/examples)', + label: 'Careers', + to: '/careers', + activeBasePath: '/careers', position: 'left', }, { - label: 'Jobs', - to: '/docs/careers', - activeBasePath: '/docs/careers', + label: 'Handbook', + to: '/handbook', + activeBaseRegex: '(^/docs$)|(/docs/faq)|(^/docs/guides/examples)', position: 'left', }, ], @@ -160,92 +160,87 @@ module.exports = { { docs: { sidebarPath: require.resolve('./sidebars.js'), - editUrl: 'https://github.com/supabase/supabase/edit/master/web', + routeBasePath: '/', }, theme: { customCss: require.resolve('./src/css/custom.css'), }, - blog: { - feedOptions: { - type: 'all', - copyright: `Copyright © ${new Date().getFullYear()} Supabase, Inc.`, - }, - }, + blog: false }, ], ], scripts: [{ src: '/scripts/telemetry.js' }], - // plugins: [ - // // [ - // // '@docusaurus/plugin-content-docs', - // // { - // // id: 'supabase-client', // for first plugin-content-docs with "resources/" path - // // // homePageId: "doc2", - // // path: './ref/supabase', // Path to data on filesystem, relative to site dir. - // // routeBasePath: 'ref/supabase', // URL Route. - // // include: ['**/*.md', '**/*.mdx'], - // // sidebarPath: require.resolve('./sidebar_spec_supabase.js'), - // // // disableVersioning: true, // if not set with versions, throw: Identifier 'React' has already been declared - // // }, - // // ], - // // [ - // // '@docusaurus/plugin-content-docs', - // // { - // // id: 'postgrest-client', // for first plugin-content-docs with "resources/" path - // // // homePageId: "doc2", - // // path: './ref/postgrest', // Path to data on filesystem, relative to site dir. - // // routeBasePath: 'ref/postgrest', // URL Route. - // // include: ['**/*.md', '**/*.mdx'], - // // sidebarPath: require.resolve('./sidebar_spec_postgrest.js'), - // // // disableVersioning: true, // if not set with versions, throw: Identifier 'React' has already been declared - // // }, - // // ], - // // [ - // // '@docusaurus/plugin-content-docs', - // // { - // // id: 'gotrue-client', // for first plugin-content-docs with "resources/" path - // // // homePageId: "doc2", - // // path: './ref/gotrue', // Path to data on filesystem, relative to site dir. - // // routeBasePath: 'ref/gotrue', // URL Route. - // // include: ['**/*.md', '**/*.mdx'], - // // sidebarPath: require.resolve('./sidebar_spec_gotrue.js'), - // // // disableVersioning: true, // if not set with versions, throw: Identifier 'React' has already been declared - // // }, - // // ], - // // [ - // // '@docusaurus/plugin-content-docs', - // // { - // // id: 'realtime-client', // for first plugin-content-docs with "resources/" path - // // // homePageId: "doc2", - // // path: './ref/realtime', // Path to data on filesystem, relative to site dir. - // // routeBasePath: 'ref/realtime', // URL Route. - // // include: ['**/*.md', '**/*.mdx'], - // // sidebarPath: require.resolve('./sidebar_spec_realtime.js'), - // // // disableVersioning: true, // if not set with versions, throw: Identifier 'React' has already been declared - // // }, - // // ], - // // [ - // // '@docusaurus/plugin-content-docs', - // // { - // // id: 'realtime-server', // for first plugin-content-docs with "resources/" path - // // path: './tools/realtime', // Path to data on filesystem, relative to site dir. - // // routeBasePath: 'docs/realtime', // URL Route. - // // include: ['**/*.md', '**/*.mdx'], - // // sidebarPath: require.resolve('./sidebar_realtime_server.js'), - // // // disableVersioning: true, // if not set with versions, throw: Identifier 'React' has already been declared - // // }, - // // ], - // // [ - // // '@docusaurus/plugin-content-docs', - // // { - // // id: 'postgrest', // for first plugin-content-docs with "resources/" path - // // // homePageId: "doc2", - // // path: './ref/postgrest', // Path to data on filesystem, relative to site dir. - // // routeBasePath: 'ref/postgrest', // URL Route. - // // include: ['**/*.md', '**/*.mdx'], - // // sidebarPath: require.resolve('./sidebar_spec_postgrest.js'), - // // // disableVersioning: true, // if not set with versions, throw: Identifier 'React' has already been declared - // // }, - // // ], - // ], + plugins: [ + // [ + // '@docusaurus/plugin-content-docs', + // { + // id: 'supabase-client', // for first plugin-content-docs with "resources/" path + // // homePageId: "doc2", + // path: './ref/supabase', // Path to data on filesystem, relative to site dir. + // routeBasePath: 'ref/supabase', // URL Route. + // include: ['**/*.md', '**/*.mdx'], + // sidebarPath: require.resolve('./sidebar_spec_supabase.js'), + // // disableVersioning: true, // if not set with versions, throw: Identifier 'React' has already been declared + // }, + // ], + // [ + // '@docusaurus/plugin-content-docs', + // { + // id: 'postgrest-client', // for first plugin-content-docs with "resources/" path + // // homePageId: "doc2", + // path: './ref/postgrest', // Path to data on filesystem, relative to site dir. + // routeBasePath: 'ref/postgrest', // URL Route. + // include: ['**/*.md', '**/*.mdx'], + // sidebarPath: require.resolve('./sidebar_spec_postgrest.js'), + // // disableVersioning: true, // if not set with versions, throw: Identifier 'React' has already been declared + // }, + // ], + // [ + // '@docusaurus/plugin-content-docs', + // { + // id: 'gotrue-client', // for first plugin-content-docs with "resources/" path + // // homePageId: "doc2", + // path: './ref/gotrue', // Path to data on filesystem, relative to site dir. + // routeBasePath: 'ref/gotrue', // URL Route. + // include: ['**/*.md', '**/*.mdx'], + // sidebarPath: require.resolve('./sidebar_spec_gotrue.js'), + // // disableVersioning: true, // if not set with versions, throw: Identifier 'React' has already been declared + // }, + // ], + // [ + // '@docusaurus/plugin-content-docs', + // { + // id: 'realtime-client', // for first plugin-content-docs with "resources/" path + // // homePageId: "doc2", + // path: './ref/realtime', // Path to data on filesystem, relative to site dir. + // routeBasePath: 'ref/realtime', // URL Route. + // include: ['**/*.md', '**/*.mdx'], + // sidebarPath: require.resolve('./sidebar_spec_realtime.js'), + // // disableVersioning: true, // if not set with versions, throw: Identifier 'React' has already been declared + // }, + // ], + // [ + // '@docusaurus/plugin-content-docs', + // { + // id: 'realtime-server', // for first plugin-content-docs with "resources/" path + // path: './tools/realtime', // Path to data on filesystem, relative to site dir. + // routeBasePath: 'docs/realtime', // URL Route. + // include: ['**/*.md', '**/*.mdx'], + // sidebarPath: require.resolve('./sidebar_realtime_server.js'), + // // disableVersioning: true, // if not set with versions, throw: Identifier 'React' has already been declared + // }, + // ], + // [ + // '@docusaurus/plugin-content-docs', + // { + // id: 'postgrest', // for first plugin-content-docs with "resources/" path + // // homePageId: "doc2", + // path: './ref/postgrest', // Path to data on filesystem, relative to site dir. + // routeBasePath: 'ref/postgrest', // URL Route. + // include: ['**/*.md', '**/*.mdx'], + // sidebarPath: require.resolve('./sidebar_spec_postgrest.js'), + // // disableVersioning: true, // if not set with versions, throw: Identifier 'React' has already been declared + // }, + // ], + ], } diff --git a/about/sidebars.js b/about/sidebars.js index 29f195eea48..01f559a3582 100755 --- a/about/sidebars.js +++ b/about/sidebars.js @@ -11,7 +11,7 @@ module.exports = { { type: 'category', label: 'Introduction', - items: ['about'], + items: ['handbook'], collapsed: false, }, {