182 lines
4.6 KiB
JavaScript
182 lines
4.6 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: 'TFGrid Get Started',
|
|
tagline: 'Your Gateway to ThreeFold',
|
|
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: '/getstarted/',
|
|
|
|
// 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-get-started', // 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} */
|
|
({
|
|
// Social media preview image
|
|
image: 'img/new_logo_tft.png',
|
|
navbar: {
|
|
title: '',
|
|
logo: {
|
|
alt: 'ThreeFold Logo',
|
|
srcDark: 'img/new_logo_tft_dark.png',
|
|
},
|
|
items: [
|
|
{
|
|
type: 'docSidebar',
|
|
sidebarId: 'mainSidebar',
|
|
position: 'left',
|
|
label: 'Get Started',
|
|
},
|
|
{
|
|
href: 'https://threefold.io',
|
|
label: 'ThreeFold.io',
|
|
position: 'right',
|
|
},
|
|
{
|
|
href: 'https://t.me/threefold/1',
|
|
label: 'Telegram',
|
|
position: 'right',
|
|
},
|
|
{
|
|
href: 'https://forum.threefold.io',
|
|
label: 'Forum',
|
|
position: 'right',
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
links: [
|
|
{
|
|
title: 'Get Started',
|
|
items: [
|
|
{
|
|
label: 'Introduction',
|
|
to: '/',
|
|
},
|
|
{
|
|
label: 'Farming',
|
|
to: '/farming/overview',
|
|
},
|
|
{
|
|
label: 'Mycelium Network',
|
|
to: '/mycelium-network/overview',
|
|
},
|
|
{
|
|
label: 'Mycelium Cloud',
|
|
to: '/mycelium-cloud/overview',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: 'Community',
|
|
items: [
|
|
{
|
|
label: 'Telegram Chat',
|
|
href: 'https://t.me/threefold/1',
|
|
},
|
|
{
|
|
label: 'Forum',
|
|
href: 'https://forum.threefold.io',
|
|
},
|
|
{
|
|
label: 'Community Call',
|
|
href: 'https://bit.ly/tfcommunitycall',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: 'More',
|
|
items: [
|
|
{
|
|
label: 'ThreeFold Website',
|
|
href: 'https://threefold.io',
|
|
},
|
|
{
|
|
label: 'Manual',
|
|
href: 'https://manual.grid.tf',
|
|
},
|
|
{
|
|
label: 'Dashboard',
|
|
href: 'https://dashboard.grid.tf',
|
|
}
|
|
],
|
|
},
|
|
],
|
|
copyright: `Copyright © ${new Date().getFullYear()} ThreeFold.`,
|
|
},
|
|
prism: {
|
|
theme: prismThemes.github,
|
|
darkTheme: prismThemes.dracula,
|
|
},
|
|
mermaid: mermaidTheme,
|
|
colorMode: {
|
|
defaultMode: 'dark',
|
|
disableSwitch: true,
|
|
respectPrefersColorScheme: false,
|
|
},
|
|
}),
|
|
};
|
|
|
|
export default config;
|