pretendo-docker/docs/docusaurus.config.ts
Matthew Lopez 47e43f8687
Some checks failed
Build and deploy documentation site / build (push) Has been cancelled
Build and deploy documentation site / deploy (push) Has been cancelled
Configure Docusaurus Faster
2025-01-04 11:35:19 -05:00

76 lines
2.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";
const github = {
username: "MatthewL246",
repo: "pretendo-docker",
};
const config: Config = {
title: "Pretendo Docker Documentation",
tagline: "An unofficial Docker Compose setup for self-hosting a Pretendo Network server.",
favicon: "img/favicon.ico",
// GitHub Pages deployment configuration
url: `https://${github.username.toLowerCase()}.github.io`,
baseUrl: `/${github.repo}/`,
organizationName: github.username,
projectName: github.repo,
trailingSlash: true,
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
future: {
experimental_faster: true,
},
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
{
docs: {
routeBasePath: "/",
sidebarPath: "./sidebars.ts",
editUrl: `https://github.com/${github.username}/${github.repo}/tree/main/docs/`,
},
blog: false,
pages: false,
theme: {
customCss: "./src/css/custom.css",
},
} satisfies Preset.Options,
],
],
themeConfig: {
navbar: {
title: "Pretendo Docker Documentation",
logo: {
alt: "Docusaurus Logo",
src: "img/logo.svg",
},
items: [
{
href: `https://github.com/${github.username}/${github.repo}`,
label: "GitHub",
position: "right",
},
],
},
prism: {
additionalLanguages: ["bash"],
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;