From 665914599a9da5600ed91ce6b13de0b3b513b1bf Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 11 May 2022 15:03:40 -0700 Subject: [PATCH] config start --- docusaurus.config.js | 38 +++++++++++++------------------------- 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 9d823204..13854969 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -6,9 +6,9 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import('@docusaurus/types').Config} */ const config = { - title: 'My Site', - tagline: 'Dinosaurs are cool', - url: 'https://your-docusaurus-test-site.com', + title: 'Cwtch User\'s Handbook', + tagline: 'How to use Cwtch', + url: 'https://docs.cwtch.im', baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', @@ -16,8 +16,8 @@ const config = { // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'facebook', // Usually your GitHub org/user name. - projectName: 'docusaurus', // Usually your repo name. + organizationName: 'Open Privacy Research Society', // Usually your GitHub org/user name. + projectName: 'cwtch.im', // Usually your repo name. // Even if you don't use internalization, you can use this field to set useful // metadata like html lang. For example, if your site is Chinese, you may want @@ -39,13 +39,6 @@ const config = { editUrl: 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', }, - blog: { - showReadingTime: true, - // Please change this to your repo. - // Remove this to remove the "edit this page" links. - editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', - }, theme: { customCss: require.resolve('./src/css/custom.css'), }, @@ -56,6 +49,9 @@ const config = { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ + colorMode: { + defaultMode: 'dark', + }, navbar: { title: 'My Site', logo: { @@ -92,17 +88,9 @@ const config = { { title: 'Community', items: [ - { - label: 'Stack Overflow', - href: 'https://stackoverflow.com/questions/tagged/docusaurus', - }, - { - label: 'Discord', - href: 'https://discordapp.com/invite/docusaurus', - }, { label: 'Twitter', - href: 'https://twitter.com/docusaurus', + href: 'https://twitter.com/cwtch_im', }, ], }, @@ -110,12 +98,12 @@ const config = { title: 'More', items: [ { - label: 'Blog', - to: '/blog', + label: 'Home', + href: 'https://cwtch.im', }, { - label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', + label: 'Git', + href: 'https://git.openprivacy.ca/cwtch.im', }, ], },