Files
leonwww/docs/docusaurus.config.ts

131 lines
3.4 KiB
TypeScript
Raw Normal View History

2025-08-03 13:23:44 +03:00
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: 'Gurted',
tagline: 'Documentation for Gurted',
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://docs.gurted.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: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // 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'],
},
2025-08-21 12:27:44 +03:00
themes: ['@docusaurus/theme-mermaid'],
markdown: {
mermaid: true,
},
2025-08-03 13:23:44 +03:00
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/',
},
2025-09-08 20:59:00 +03:00
blog: false,
2025-08-03 13:23:44 +03:00
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Gurted',
logo: {
alt: 'Gurted logo',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Tutorial',
},
{
2025-09-08 13:13:38 +02:00
href: 'https://github.com/outpoot/gurted',
2025-08-03 13:23:44 +03:00
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discord.gg/facedev',
},
{
label: 'X',
href: 'https://x.com/facedevstuff',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/outpoot/gurted',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Gurted, Inc. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
2025-08-27 20:23:05 +03:00
additionalLanguages: ['lua', 'bash', 'http', "toml"],
2025-08-03 13:23:44 +03:00
},
} satisfies Preset.ThemeConfig,
};
export default config;