Notes/docusaurus.config.ts

127 lines
3.2 KiB
TypeScript
Raw Normal View History

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: "Keannu's Resources",
tagline: "One-stop shop for rolling out production environments on potatoes",
favicon: "img/favicon.ico",
// Set the production url of your site here
url: "https://resources.06222001.xyz",
// 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: "lemeow125", // Usually your GitHub org/user name.
projectName: "notes", // Usually your repo name.
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
// 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",
},
blog: {
showReadingTime: true,
feedOptions: {
type: ["rss", "atom"],
xslt: true,
},
// Useful options to enforce blogging best practices
onInlineTags: "warn",
onInlineAuthors: "warn",
onUntruncatedBlogPosts: "ignore",
},
theme: {
customCss: "./src/css/custom.css",
},
} satisfies Preset.Options,
],
],
themeConfig: {
navbar: {
title: "Keannu's Resources",
logo: {
alt: "My Site Logo",
src: "img/logo.svg",
},
items: [
{ to: "/blog", label: "Blog", position: "left" },
{ to: "/docs", label: "Docs", position: "left" },
2024-10-14 23:41:17 +08:00
{
href: "https://github.com/lemeow125/Notes",
label: "Github",
position: "right",
},
{
href: "https://stats.06222001.xyz/status/all",
2024-10-14 23:41:17 +08:00
label: "Tracker",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Files & Links",
to: "/docs/Files & Links",
},
{
label: "Command Snippets",
to: "/docs/Command Snippets",
},
2024-10-14 19:51:18 +08:00
{
label: "Guides",
to: "/docs/Guides",
},
],
},
{
title: "Community",
items: [
{
label: "Discord",
href: "https://discord.gg/eewxxH3wtS",
},
],
},
{
title: "More",
items: [
{
label: "GitHub",
href: "https://github.com/lemeow125/Notes",
},
],
},
],
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.vsDark,
},
} satisfies Preset.ThemeConfig,
};
export default config;