This repository has been archived on 2025-08-03. You can view files and clone it, but cannot push or open issues or pull requests.
network-orbit/docs/docusaurus.config.ts

178 lines
5.0 KiB
TypeScript

import { themes as prismThemes } from 'prism-react-renderer';
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'Debros Network',
tagline: 'Next-Generation Decentralized Web Framework',
favicon: 'img/favicon.ico',
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
future: {
v4: true, // Improve compatibility with the upcoming Docusaurus v4
},
// Set the production url of your site here
url: 'https://debros-framework.example.com',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'debros', // Usually your GitHub org/user name.
projectName: 'debros-framework', // Usually your repo name.
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.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
blog: {
showReadingTime: true,
feedOptions: {
type: ['rss', 'atom'],
xslt: true,
},
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
onUntruncatedBlogPosts: 'warn',
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/debros-social-card.jpg',
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: false,
},
navbar: {
title: 'Debros Network',
// logo: {
// alt: 'Debros Network Logo',
// src: 'img/logo.svg',
// srcDark: 'img/logo-dark.svg',
// },
hideOnScroll: true,
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Documentation',
},
{
type: 'docSidebar',
sidebarId: 'apiSidebar',
position: 'left',
label: 'API Reference',
},
{
href: 'https://git.debros.io/DeBros/network',
label: 'Gitea',
position: 'right',
},
{
href: 'https://github.com/debros/network',
label: 'GitHub Mirror',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Documentation',
items: [
{
label: 'Getting Started',
to: '/docs/getting-started',
},
{
label: 'Core Concepts',
to: '/docs/core-concepts/architecture',
},
{
label: 'API Reference',
to: '/docs/api/overview',
},
{
label: 'Contributing',
to: '/docs/contributing/overview',
},
],
},
{
title: 'Community',
items: [
{
label: 'Gitea Repository',
href: 'https://git.debros.io/DeBros/network',
},
{
label: 'GitHub Mirror',
href: 'https://github.com/debros/network',
},
{
label: 'Issues & Support',
href: 'https://git.debros.io/DeBros/network/issues',
},
],
},
{
title: 'Resources',
items: [
{
label: 'Examples',
to: '/docs/examples/basic-usage',
},
{
label: 'License',
href: 'https://git.debros.io/DeBros/network/src/branch/main/LICENSE',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Debros Network. Empowering the decentralized web.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;