docs_tfgrid4/docusaurus.config.ts

176 lines
4.7 KiB
TypeScript
Raw Normal View History

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
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,
],
],
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
2024-08-27 03:28:34 +00:00
scripts: [
{
2025-01-28 14:15:29 +00:00
src: '/js/crisp.js', // Keep this for Crisp script
2024-08-27 03:28:34 +00:00
async: false,
},
],
2024-08-24 12:53:09 +00:00
themeConfig: {
2025-01-28 14:15:29 +00:00
injectHtmlTags: {
headTags: [
{
tagName: 'script',
innerHTML: `
var _paq = window._paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//analytics.threefold.io/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '20']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
`,
},
],
},
2024-08-28 15:05:01 +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-28 14:15: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
{
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
],
},
2025-01-28 14:15:29 +00:00
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: [
2025-01-28 14:15:29 +00:00
{ label: 'Introduction', to: '/docs/introduction' },
{ label: 'Litepaper', to: '/docs/litepaper' },
{ label: 'Roadmap', to: '/docs/roadmap' },
{ label: 'Manual', href: 'https://manual.grid.tf/' },
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: [
2025-01-28 14:15:29 +00:00
{ label: 'Become a Farmer', to: '/docs/category/become-a-farmer' },
{ label: 'Components', to: '/docs/category/components' },
{ label: 'Technology', to: '/docs/tech' },
{ label: 'Tokenomics', to: '/docs/tokens/tokenomics' },
2024-10-30 16:08:35 +00:00
],
},
{
title: 'Community',
items: [
2025-01-28 14:15:29 +00:00
{ label: 'Telegram', href: 'https://t.me/threefold' },
{ label: 'X', href: 'https://x.com/threefold_io' },
{ label: 'Forum', href: 'https://forum.threefold.io' },
{ 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: [
2025-01-28 14:15:29 +00:00
{ label: 'ThreeFold.io', href: 'https://threefold.io' },
{ label: 'Dashboard', href: 'https://dashboard.grid.tf' },
{ label: 'GitHub', href: 'https://github.com/threefoldtech/home' },
{ label: 'Gitea', href: 'https://git.ourworld.tf' },
2024-08-24 12:53:09 +00:00
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} ThreeFold`,
2024-08-24 12:53:09 +00:00
},
2025-01-28 14:15:29 +00:00
2024-08-24 12:53:09 +00:00
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
2025-01-28 14:15:29 +00:00
export default config;