Files
docs_tfgrid_economics/docusaurus.config.js
mik-tf 65fbdb836b
Some checks failed
Deploy to GitHub Pages / Deploy to GitHub Pages (push) Has been cancelled
Initial commit: TFGrid Economics documentation site
- Based on working minting_plan repository
- Configured for threefold.info/economics deployment
- Added ops documentation for server deployment
- Updated baseUrl and URL configuration
2025-10-10 21:38:17 -04:00

181 lines
4.7 KiB
JavaScript

// @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: 'TFT Minting Transition Plan',
tagline: 'Community Feedback & Discussion',
favicon: 'img/favicon.png',
// Set the production url of your site here
url: 'https://threefold.info',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
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: false,
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:
'📞 <strong>Join the Community Call</strong> to discuss this plan! <a target="_blank" rel="noopener noreferrer" href="https://bit.ly/tfcommunitycall">Join the call</a>',
backgroundColor: '#20232a',
textColor: '#fff',
isCloseable: true,
},
}),
};
export default config;