info_docs_depin/docusaurus.config.ts

141 lines
3.4 KiB
TypeScript
Raw Normal View History

2025-01-06 21:43: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 = {
2025-01-15 21:18:49 +00:00
title: 'DePIN Projects',
2025-01-06 21:43:09 +00:00
tagline: 'Navigate the rapidly evolving landscape of Decentralized Physical Infrastructure Networks (DePIN)',
2025-01-15 21:18:49 +00:00
favicon: 'img/favicon_depin.png',
2025-01-06 21:43:09 +00:00
2025-01-15 21:18:49 +00:00
url: 'https://info.ourworld.tf',
2025-01-06 21:43:09 +00:00
baseUrl: '/depin/',
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'],
scripts: [
{
src:
'/js/crisp.js',
async: false,
},
],
themeConfig: {
colorMode: {
defaultMode: 'dark',
disableSwitch: true,
respectPrefersColorScheme: false,
},
2025-01-15 21:18:49 +00:00
image: 'img/ourworld_depin.png',
metadata: [
{ name: 'description', content: 'Navigate the rapidly evolving landscape of Decentralized Physical Infrastructure Networks (DePIN).' },
{ property: 'og:image', content: 'https://info.ourworld.tf/img/ourworld_depin.png' },
{ property: 'og:description', content: 'Navigate the rapidly evolving landscape of Decentralized Physical Infrastructure Networks (DePIN).' },
{ property: 'og:title', content: 'Introduction | DePIN Projects' },
],
2025-01-06 21:43:09 +00:00
navbar: {
2025-01-15 21:18:49 +00:00
title: 'DePIN Projects',
2025-01-06 21:43:09 +00:00
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
2025-01-15 21:18:49 +00:00
label: 'Docs',
2025-01-06 21:43:09 +00:00
},
{
2025-01-15 21:18:49 +00:00
href: 'https://git.ourworld.tf/tfgrid/info_docs_depin',
label: 'Gitea',
2025-01-06 21:43:09 +00:00
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
2025-01-15 21:18:49 +00:00
title: 'Overview',
2025-01-06 21:43:09 +00:00
items: [
{
2025-01-15 21:18:49 +00:00
label: 'DePIN Boards',
2025-01-07 22:01:03 +00:00
href: '/docs/depin_board',
2025-01-06 21:43:09 +00:00
},
{
2025-01-15 21:18:49 +00:00
label: 'DePIN Charts',
href: '/docs/depin_6dchart',
}
2025-01-06 21:43:09 +00:00
],
},
{
title: 'Community',
items: [
{
2025-01-15 21:18:49 +00:00
label: 'Feedback',
to: '/docs/feedback',
2025-01-06 21:43:09 +00:00
},
{
2025-01-15 21:18:49 +00:00
label: 'Gitea Repo',
href: 'https://git.ourworld.tf/tfgrid/info_docs_depin',
2025-01-06 21:43:09 +00:00
},
],
},
{
title: 'Links',
items: [
{
label: 'ThreeFold.io',
href: 'https://threefold.io',
},
{
label: 'Dashboard',
href: 'https://dashboard.grid.tf',
2025-01-15 21:18:49 +00:00
}
2025-01-06 21:43:09 +00:00
],
},
],
2025-01-15 21:18:49 +00:00
copyright: `Copyright © ${new Date().getFullYear()} OurWorld`,
2025-01-06 21:43:09 +00:00
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;