config start

This commit is contained in:
Dan Ballard 2022-05-11 15:03:40 -07:00
parent 0888e2aebb
commit 665914599a
1 changed files with 13 additions and 25 deletions

View File

@ -6,9 +6,9 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */ /** @type {import('@docusaurus/types').Config} */
const config = { const config = {
title: 'My Site', title: 'Cwtch User\'s Handbook',
tagline: 'Dinosaurs are cool', tagline: 'How to use Cwtch',
url: 'https://your-docusaurus-test-site.com', url: 'https://docs.cwtch.im',
baseUrl: '/', baseUrl: '/',
onBrokenLinks: 'throw', onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn', onBrokenMarkdownLinks: 'warn',
@ -16,8 +16,8 @@ const config = {
// GitHub pages deployment config. // GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these. // If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name. organizationName: 'Open Privacy Research Society', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name. projectName: 'cwtch.im', // Usually your repo name.
// Even if you don't use internalization, you can use this field to set useful // 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 // metadata like html lang. For example, if your site is Chinese, you may want
@ -39,13 +39,6 @@ const config = {
editUrl: editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', '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: { theme: {
customCss: require.resolve('./src/css/custom.css'), customCss: require.resolve('./src/css/custom.css'),
}, },
@ -56,6 +49,9 @@ const config = {
themeConfig: themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */ /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({ ({
colorMode: {
defaultMode: 'dark',
},
navbar: { navbar: {
title: 'My Site', title: 'My Site',
logo: { logo: {
@ -92,17 +88,9 @@ const config = {
{ {
title: 'Community', title: 'Community',
items: [ items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
},
{ {
label: 'Twitter', label: 'Twitter',
href: 'https://twitter.com/docusaurus', href: 'https://twitter.com/cwtch_im',
}, },
], ],
}, },
@ -110,12 +98,12 @@ const config = {
title: 'More', title: 'More',
items: [ items: [
{ {
label: 'Blog', label: 'Home',
to: '/blog', href: 'https://cwtch.im',
}, },
{ {
label: 'GitHub', label: 'Git',
href: 'https://github.com/facebook/docusaurus', href: 'https://git.openprivacy.ca/cwtch.im',
}, },
], ],
}, },