2024-08-24 12:53:09 +00:00
|
|
|
import {themes as prismThemes} from 'prism-react-renderer';
|
|
|
|
import type {Config} from '@docusaurus/types';
|
|
|
|
import type * as Preset from '@docusaurus/preset-classic';
|
|
|
|
|
|
|
|
const config: Config = {
|
2024-11-20 22:58:11 +00:00
|
|
|
title: 'ThreeFold Docs',
|
2024-11-18 06:55:48 +00:00
|
|
|
tagline: 'Self-Healing Data & Cloud Network',
|
2024-11-20 22:58:11 +00:00
|
|
|
favicon: 'img/favicon.png',
|
2024-08-24 12:53:09 +00:00
|
|
|
|
2024-12-17 18:30:42 +00:00
|
|
|
url: 'https://docs.threefold.io',
|
|
|
|
baseUrl: '/',
|
2024-08-24 12:53:09 +00:00
|
|
|
|
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
onBrokenMarkdownLinks: 'warn',
|
|
|
|
|
|
|
|
i18n: {
|
|
|
|
defaultLocale: 'en',
|
|
|
|
locales: ['en'],
|
|
|
|
},
|
|
|
|
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'classic',
|
|
|
|
{
|
|
|
|
docs: {
|
|
|
|
sidebarPath: './sidebars.ts',
|
|
|
|
},
|
|
|
|
blog: {
|
|
|
|
showReadingTime: true,
|
|
|
|
feedOptions: {
|
|
|
|
type: ['rss', 'atom'],
|
|
|
|
xslt: true,
|
|
|
|
},
|
|
|
|
onInlineTags: 'warn',
|
|
|
|
onInlineAuthors: 'warn',
|
|
|
|
onUntruncatedBlogPosts: 'warn',
|
|
|
|
},
|
|
|
|
theme: {
|
|
|
|
customCss: './src/css/custom.css',
|
|
|
|
},
|
|
|
|
} satisfies Preset.Options,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2024-08-27 02:50:40 +00:00
|
|
|
markdown: {
|
|
|
|
mermaid: true,
|
|
|
|
},
|
|
|
|
themes: ['@docusaurus/theme-mermaid'],
|
|
|
|
|
2024-08-27 03:28:34 +00:00
|
|
|
scripts: [
|
|
|
|
|
|
|
|
{
|
|
|
|
src:
|
|
|
|
'/js/crisp.js',
|
|
|
|
async: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
|
2024-08-24 12:53:09 +00:00
|
|
|
themeConfig: {
|
2024-08-28 15:05:01 +00:00
|
|
|
|
2024-12-17 18:30:42 +00:00
|
|
|
algolia: {
|
|
|
|
appId: 'ARAM4VJG2D',
|
|
|
|
apiKey: '674fd2945f4e534903ff074723bd20be',
|
|
|
|
indexName: 'threefold',
|
|
|
|
},
|
|
|
|
|
2024-08-24 18:09:39 +00:00
|
|
|
colorMode: {
|
2024-11-20 16:56:53 +00:00
|
|
|
defaultMode: 'dark',
|
2024-11-20 17:29:12 +00:00
|
|
|
disableSwitch: true,
|
2024-08-24 18:09:39 +00:00
|
|
|
respectPrefersColorScheme: false,
|
|
|
|
},
|
2025-01-14 11:33:30 +00:00
|
|
|
image: 'img/tf_graph.png',
|
2025-01-15 12:01:29 +00:00
|
|
|
metadata: [
|
|
|
|
{ name: 'description', content: 'ThreeFold is laying the foundation for Web4, the next generation of the Internet.' },
|
|
|
|
{ property: 'og:image', content: 'https://docs.threefold.io/img/tf_graph.png' },
|
|
|
|
{ property: 'og:description', content: 'ThreeFold is laying the foundation for Web4, the next generation of the Internet.' },
|
|
|
|
{ property: 'og:title', content: 'Introduction | ThreeFold Docs' },
|
|
|
|
],
|
2024-08-24 12:53:09 +00:00
|
|
|
navbar: {
|
2024-11-20 22:58:11 +00:00
|
|
|
title: '',
|
2024-08-24 12:53:09 +00:00
|
|
|
logo: {
|
|
|
|
alt: 'ThreeFold Logo',
|
2025-01-14 11:33:30 +00:00
|
|
|
src: 'img/logo.svg',
|
2024-11-20 22:58:11 +00:00
|
|
|
srcDark: 'img/new_logo_tft.png',
|
2024-08-24 12:53:09 +00:00
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
type: 'docSidebar',
|
|
|
|
sidebarId: 'tutorialSidebar',
|
|
|
|
position: 'left',
|
|
|
|
label: 'Docs',
|
|
|
|
},
|
2024-08-24 18:09:39 +00:00
|
|
|
{
|
|
|
|
to: '/support',
|
|
|
|
label: 'Support',
|
|
|
|
position: 'left',
|
|
|
|
},
|
2024-08-25 19:48:04 +00:00
|
|
|
{
|
2024-11-15 18:32:32 +00:00
|
|
|
href: 'https://threefold.io',
|
|
|
|
label: 'ThreeFold.io',
|
2024-08-25 19:48:04 +00:00
|
|
|
position: 'right',
|
|
|
|
},
|
2024-08-24 12:53:09 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
style: 'dark',
|
|
|
|
links: [
|
|
|
|
{
|
2024-08-24 18:09:39 +00:00
|
|
|
title: 'Docs',
|
2024-08-24 12:53:09 +00:00
|
|
|
items: [
|
2024-11-04 14:19:42 +00:00
|
|
|
{
|
|
|
|
label: 'Introduction',
|
|
|
|
to: '/docs/introduction',
|
|
|
|
},
|
2024-08-24 12:53:09 +00:00
|
|
|
{
|
|
|
|
label: 'Litepaper',
|
2024-08-24 16:50:08 +00:00
|
|
|
to: '/docs/litepaper',
|
|
|
|
},
|
2024-11-18 07:16:18 +00:00
|
|
|
{
|
|
|
|
label: 'Roadmap',
|
|
|
|
to: '/docs/roadmap',
|
|
|
|
},
|
2024-08-24 16:50:08 +00:00
|
|
|
{
|
2024-11-25 06:08:40 +00:00
|
|
|
label: 'Manual',
|
2024-12-11 19:30:14 +00:00
|
|
|
href: 'https://manual.grid.tf/',
|
2024-08-24 16:50:08 +00:00
|
|
|
},
|
2024-08-24 12:53:09 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2024-11-21 18:19:19 +00:00
|
|
|
title: 'Features',
|
2024-08-24 12:53:09 +00:00
|
|
|
items: [
|
2024-11-15 18:32:32 +00:00
|
|
|
{
|
2024-11-21 18:19:19 +00:00
|
|
|
label: 'Become a Farmer',
|
|
|
|
to: '/docs/category/become-a-farmer',
|
2024-11-15 18:32:32 +00:00
|
|
|
},
|
2024-10-30 16:08:35 +00:00
|
|
|
{
|
2024-12-12 16:33:03 +00:00
|
|
|
label: 'Components',
|
|
|
|
to: '/docs/category/components',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Technology',
|
2024-11-25 06:08:40 +00:00
|
|
|
to: '/docs/tech',
|
2024-10-31 00:45:28 +00:00
|
|
|
},
|
2024-11-18 07:16:18 +00:00
|
|
|
{
|
2024-11-24 05:35:52 +00:00
|
|
|
label: 'Tokenomics',
|
2024-12-11 19:30:14 +00:00
|
|
|
to: '/docs/tokens/tokenomics',
|
2024-11-24 05:35:52 +00:00
|
|
|
},
|
2024-10-30 16:08:35 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Community',
|
|
|
|
items: [
|
2024-08-24 12:53:09 +00:00
|
|
|
{
|
|
|
|
label: 'Telegram',
|
|
|
|
href: 'https://t.me/threefold',
|
|
|
|
},
|
|
|
|
{
|
2024-08-24 16:50:08 +00:00
|
|
|
label: 'X',
|
|
|
|
href: 'https://x.com/threefold_io',
|
2024-08-24 12:53:09 +00:00
|
|
|
},
|
2024-10-30 16:08:35 +00:00
|
|
|
{
|
|
|
|
label: 'Forum',
|
|
|
|
href: 'https://forum.threefold.io',
|
|
|
|
},
|
2024-08-25 19:48:04 +00:00
|
|
|
{
|
|
|
|
label: 'Support',
|
|
|
|
to: '/support',
|
|
|
|
},
|
2024-08-24 12:53:09 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2024-08-24 18:09:39 +00:00
|
|
|
title: 'Links',
|
2024-08-24 12:53:09 +00:00
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: 'ThreeFold.io',
|
2024-08-24 13:31:05 +00:00
|
|
|
href: 'https://threefold.io',
|
2024-08-24 12:53:09 +00:00
|
|
|
},
|
2024-11-15 19:19:23 +00:00
|
|
|
{
|
2024-11-18 17:51:02 +00:00
|
|
|
label: 'Dashboard',
|
2024-11-15 19:19:23 +00:00
|
|
|
href: 'https://dashboard.grid.tf',
|
|
|
|
},
|
2024-08-24 12:53:09 +00:00
|
|
|
{
|
|
|
|
label: 'GitHub',
|
|
|
|
href: 'https://github.com/threefoldtech/home',
|
|
|
|
},
|
2024-11-20 15:24:29 +00:00
|
|
|
{
|
|
|
|
label: 'Gitea',
|
2024-11-20 16:58:09 +00:00
|
|
|
href: 'https://git.ourworld.tf',
|
2024-11-20 15:24:29 +00:00
|
|
|
},
|
2024-08-24 12:53:09 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2024-11-15 18:32:32 +00:00
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} ThreeFold`,
|
2024-08-24 12:53:09 +00:00
|
|
|
},
|
|
|
|
prism: {
|
|
|
|
theme: prismThemes.github,
|
|
|
|
darkTheme: prismThemes.dracula,
|
|
|
|
},
|
|
|
|
} satisfies Preset.ThemeConfig,
|
|
|
|
};
|
|
|
|
|
2024-11-20 15:24:29 +00:00
|
|
|
export default config;
|