www_docs_threefold_io/docs_website/docusaurus.config.ts

204 lines
4.8 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 = {
title: 'ThreeFold Docs',
2024-08-24 18:09:39 +00:00
tagline: 'Decentralized Autonomous Cloud',
favicon: 'img/logo_blue.svg',
2024-08-24 12:53:09 +00:00
// Set the production url of your site here
2024-08-26 18:10:27 +00:00
url: 'https://docs.threefold.info',
2024-08-24 12:53:09 +00:00
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
2024-08-26 18:10:27 +00:00
baseUrl: '',
2024-08-24 12:53:09 +00:00
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'mik-tf', // Usually your GitHub org/user name.
projectName: 'mik-tf.github.io', // Usually your repo name.
trailingSlash: false,
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
// 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',
{
docs: {
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
},
blog: {
showReadingTime: true,
feedOptions: {
type: ['rss', 'atom'],
xslt: true,
},
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// Useful options to enforce blogging best practices
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: [
{
src:
'/js/crisp.js',
async: false,
},
],
2024-08-24 12:53:09 +00:00
themeConfig: {
2024-08-28 15:05:01 +00:00
algolia: {
// The application ID provided by Algolia
appId: 'MOZ4II24U5',
// Public API key: it is safe to commit it
apiKey: 'c9ee6a2a3212b6bdcf453149f45c9114',
indexName: 'threefold',
},
2024-08-24 18:09:39 +00:00
colorMode: {
defaultMode: 'light',
2024-08-26 22:27:11 +00:00
disableSwitch: false,
2024-08-24 18:09:39 +00:00
respectPrefersColorScheme: false,
},
2024-08-24 12:53:09 +00:00
// Replace with your project's social card
2024-08-24 16:54:32 +00:00
image: 'img/threefold-social-card.png',
2024-08-24 12:53:09 +00:00
navbar: {
2024-08-24 18:09:39 +00:00
title: 'ThreeFold',
2024-08-24 12:53:09 +00:00
logo: {
alt: 'ThreeFold Logo',
src: 'img/logo.svg',
2024-08-26 22:27:11 +00:00
srcDark: 'img/logo_dark.svg',
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',
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: [
{
label: 'Litepaper',
2024-08-24 16:50:08 +00:00
to: '/docs/litepaper',
},
{
2024-10-30 16:08:35 +00:00
label: 'Roadmap',
to: '/docs/roadmap',
2024-08-24 16:50:08 +00:00
},
{
label: 'References',
to: '/docs/category/references',
},
{
label: 'Legal',
to: '/docs/category/legal',
2024-08-24 12:53:09 +00:00
},
],
},
{
2024-10-30 16:08:35 +00:00
title: 'Products',
2024-08-24 12:53:09 +00:00
items: [
{
2024-10-30 16:08:35 +00:00
label: 'Phones',
to: '/docs/category/phones',
},
{
label: 'Nodes',
to: '/docs/category/nodes',
2024-08-24 12:53:09 +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
},
{
label: 'GitHub',
href: 'https://github.com/threefoldtech/home',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} ThreeFold`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;