2022-05-11 20:53:53 +00:00
|
|
|
// @ts-check
|
|
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
|
|
|
|
|
|
|
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
|
|
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
|
|
|
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
|
|
const config = {
|
2022-06-03 13:45:27 +00:00
|
|
|
title: 'The Cwtch Handbook',
|
2022-06-17 20:25:16 +00:00
|
|
|
tagline: 'Your Guide to setting up, and using, Surveillance Resistant Infrastructure',
|
2022-05-11 22:03:40 +00:00
|
|
|
url: 'https://docs.cwtch.im',
|
2022-05-11 20:53:53 +00:00
|
|
|
baseUrl: '/',
|
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
onBrokenMarkdownLinks: 'warn',
|
2022-05-24 23:38:59 +00:00
|
|
|
favicon: 'img/favicon.png',
|
2022-05-11 20:53:53 +00:00
|
|
|
|
|
|
|
// GitHub pages deployment config.
|
|
|
|
// If you aren't using GitHub pages, you don't need these.
|
2022-05-11 22:03:40 +00:00
|
|
|
organizationName: 'Open Privacy Research Society', // Usually your GitHub org/user name.
|
|
|
|
projectName: 'cwtch.im', // Usually your repo name.
|
2022-05-11 20:53:53 +00:00
|
|
|
|
|
|
|
// 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
|
|
|
|
// to replace "en" with "zh-Hans".
|
|
|
|
i18n: {
|
|
|
|
defaultLocale: 'en',
|
2022-05-25 00:33:25 +00:00
|
|
|
locales: ['en']
|
|
|
|
// Planned future versions to add. removing to start cus each needs a compile on push, no point compiling untranslated dups
|
|
|
|
//, 'fr', 'da', 'de', 'it', 'no', 'pl', 'ro', 'ru', 'es-ES', 'cy'],
|
2022-05-11 20:53:53 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'classic',
|
|
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
|
|
({
|
|
|
|
docs: {
|
|
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
|
|
// Please change this to your repo.
|
|
|
|
// Remove this to remove the "edit this page" links.
|
|
|
|
editUrl:
|
2022-06-02 16:49:28 +00:00
|
|
|
'https://git.openprivacy.ca/cwtch.im/docs.cwtch.im/src/branch/main/',
|
2022-05-11 20:53:53 +00:00
|
|
|
},
|
|
|
|
theme: {
|
|
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
themeConfig:
|
|
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
|
|
({
|
2022-06-17 20:36:05 +00:00
|
|
|
image: 'image/cwtch_handbook_header.jpg',
|
2022-05-11 22:03:40 +00:00
|
|
|
colorMode: {
|
|
|
|
defaultMode: 'dark',
|
|
|
|
},
|
2022-05-11 20:53:53 +00:00
|
|
|
navbar: {
|
2022-05-18 16:43:12 +00:00
|
|
|
title: 'Cwtch Handbook',
|
2022-05-11 20:53:53 +00:00
|
|
|
logo: {
|
2022-05-18 16:43:12 +00:00
|
|
|
alt: 'Cwtch Logo',
|
|
|
|
src: 'img/knott.png'
|
2022-05-11 20:53:53 +00:00
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
type: 'doc',
|
|
|
|
docId: 'intro',
|
|
|
|
position: 'left',
|
2022-05-18 16:43:12 +00:00
|
|
|
label: 'Cwtch Intro',
|
2022-05-11 20:53:53 +00:00
|
|
|
},
|
|
|
|
{
|
2022-05-18 16:43:12 +00:00
|
|
|
href: 'https://git.openprivacy.ca/cwtch.im',
|
|
|
|
label: 'Git',
|
2022-05-11 20:53:53 +00:00
|
|
|
position: 'right',
|
|
|
|
},
|
2022-05-19 00:43:31 +00:00
|
|
|
{
|
|
|
|
type: 'localeDropdown',
|
|
|
|
position: 'right',
|
|
|
|
},
|
2022-05-11 20:53:53 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
style: 'dark',
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
title: 'Docs',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Tutorial',
|
|
|
|
to: '/docs/intro',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Community',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'Twitter',
|
2022-05-11 22:03:40 +00:00
|
|
|
href: 'https://twitter.com/cwtch_im',
|
2022-05-11 20:53:53 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'More',
|
|
|
|
items: [
|
|
|
|
{
|
2022-05-11 22:03:40 +00:00
|
|
|
label: 'Home',
|
|
|
|
href: 'https://cwtch.im',
|
2022-05-11 20:53:53 +00:00
|
|
|
},
|
|
|
|
{
|
2022-05-11 22:03:40 +00:00
|
|
|
label: 'Git',
|
|
|
|
href: 'https://git.openprivacy.ca/cwtch.im',
|
2022-05-11 20:53:53 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2022-06-02 16:52:03 +00:00
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} Open Privacy Research Society.`,
|
2022-05-11 20:53:53 +00:00
|
|
|
},
|
|
|
|
prism: {
|
|
|
|
theme: lightCodeTheme,
|
|
|
|
darkTheme: darkCodeTheme,
|
|
|
|
},
|
|
|
|
}),
|
2022-05-19 00:43:31 +00:00
|
|
|
/*plugins: [
|
2022-05-11 20:53:53 +00:00
|
|
|
[
|
|
|
|
require.resolve("@cmfcmf/docusaurus-search-local"),
|
|
|
|
{
|
|
|
|
// Options here
|
2022-05-19 00:43:31 +00:00
|
|
|
language: ["en", 'fr', 'da', 'de', 'it', 'no', 'ro', 'ru', 'es'],
|
2022-05-11 20:53:53 +00:00
|
|
|
},
|
|
|
|
],
|
2022-05-19 00:43:31 +00:00
|
|
|
],*/
|
2022-05-11 20:53:53 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|