// @ts-check // `@type` JSDoc annotations allow editor autocompletion and type checking // (when paired with `@ts-check`). // There are various equivalent ways to declare your Docusaurus config. // See: https://docusaurus.io/docs/api/docusaurus-config import { themes as prismThemes } from 'prism-react-renderer'; // Mermaid theme support const mermaidTheme = { theme: { light: 'default', dark: 'dark', }, }; /** @type {import('@docusaurus/types').Config} */ const config = { title: 'TF Grid 4 Economics Community E-Book', tagline: 'Proposal: For Community Discussion & Feedback', favicon: 'img/favicon.png', // Set the production url of your site here url: 'https://threefold.info', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: '/economics/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. organizationName: 'tfgrid', // Usually your GitHub org/user name. projectName: 'tfgrid-economics', // Usually your repo name. deploymentBranch: 'gh-pages', trailingSlash: true, onBrokenLinks: 'throw', // Even if you don't use internationalization, 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: '/', sidebarPath: './sidebars.js', }, blog: false, theme: { customCss: './src/css/custom.css', }, }), ], ], themes: ['@docusaurus/theme-mermaid'], markdown: { mermaid: true, hooks: { onBrokenMarkdownLinks: 'warn', }, }, themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ // Replace with your project's social card image: 'img/logo.png', navbar: { title: '', logo: { alt: 'TFT Logo', src: 'img/new_logo_tft.png', }, items: [ { type: 'docSidebar', sidebarId: 'mainSidebar', position: 'left', label: 'Docs', }, { href: 'https://t.me/threefoldfarmers', label: 'Telegram', position: 'right', }, { href: 'https://forum.threefold.io', label: 'Forum', position: 'right', }, ], }, footer: { style: 'dark', links: [ { title: 'Documentation', items: [ { label: 'Introduction', to: '/', }, { label: 'Implementation & Roadmap', to: '/implementation-roadmap', }, { label: 'Core Concepts', to: '/core-concepts', }, { label: 'Node Economics', to: '/node-economics', }, ], }, { title: 'Community', items: [ { label: 'Telegram Chat', href: 'https://t.me/threefoldfarmers', }, { label: 'Forum', href: 'https://forum.threefold.io', }, { label: 'Community Call', href: 'https://bit.ly/tfcommunitycall', }, ], }, { title: 'More', items: [ { label: 'Forum Discussion', href: 'https://forum.threefold.io/t/tft-minting-transition-plan-community-e-book/4647', }, { label: 'ThreeFold Website', href: 'https://threefold.io', } ], }, ], copyright: `Copyright © ${new Date().getFullYear()} ThreeFold.`, }, prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula, }, mermaid: mermaidTheme, colorMode: { defaultMode: 'dark', disableSwitch: true, respectPrefersColorScheme: false, }, announcementBar: { id: 'community_call', content: '📞 Join the Community Call to discuss this plan! Join the call', backgroundColor: '#20232a', textColor: '#fff', isCloseable: true, }, }), }; export default config;