// @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 = { title: 'PZP', tagline: 'A rad p2p protocol', favicon: 'img/favicon.ico', // Set the production url of your site here url: 'https://pzp.wiki', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: '/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. organizationName: 'pzp', // Usually your GitHub org/user name. projectName: 'pzp-wiki', // Usually your repo name. deploymentBranch: 'pages', githubHost: 'codeberg.org', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', // 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', locales: ['en'], }, presets: [ [ 'classic', /** @type {import('@docusaurus/preset-classic').Options} */ ({ docs: { routeBasePath: '/guide', path: 'guide', sidebarPath: require.resolve('./sidebars.js'), editUrl: 'https://codeberg.org/pzp/pzp-wiki/src/branch/master/guide', }, theme: { customCss: require.resolve('./src/css/custom.css'), }, }), ], ], themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ mermaid: { theme: {light: 'neutral', dark: 'dark'}, }, // Replace with your project's social card image: 'img/pzp-butts.jpeg', navbar: { title: 'PZP', logo: { alt: 'PZP logo', src: 'img/pzp-butts.jpeg', }, items: [ { type: 'docSidebar', sidebarId: 'tutorialSidebar', position: 'left', label: 'Guide', }, { href: 'https://codeberg.org/pzp', label: 'Code', position: 'right', }, ], }, footer: { style: 'dark', links: [ { title: 'Guide', items: [ { label: 'Guide', to: '/guide/intro', }, ], }, { title: 'Community', items: [ { label: 'Mastodon', href: 'https://autonomous.zone/@pzp', }, ], }, { title: 'More', items: [ { label: 'Code', href: 'https://codeberg.org/pzp', }, { label: 'SDK', href: 'https://codeberg.org/pzp/pzp-sdk', }, { label: 'Demo app', href: 'https://codeberg.org/pzp/zooboard', }, ], }, ], copyright: `Copyright © ${new Date().getFullYear()} PZP contributors, licensed CC-BY-SA-4.0. Built with Docusaurus.`, }, prism: { theme: lightCodeTheme, darkTheme: darkCodeTheme, }, }), markdown: { mermaid: true, }, themes: ['@docusaurus/theme-mermaid'], }; module.exports = config;