b4/docs/docusaurus.config.ts

78 lines
1.7 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 config: Config = {
title: "B4 - Bye Bye Big Bro",
tagline: "Продвинутая система обхода DPI",
favicon: "img/favicon.ico",
url: "https://daniellavrushin.github.io/",
baseUrl: "/b4",
i18n: {
defaultLocale: "ru", // Russian as default
locales: ["ru", "en"],
localeConfigs: {
ru: {
label: "Русский",
htmlLang: "ru-RU",
},
en: {
label: "English",
htmlLang: "en-US",
},
},
},
presets: [
[
"classic",
{
docs: {
sidebarPath: "./sidebars.ts",
editUrl: "https://github.com/DanielLavrushin/b4/tree/main/docs/",
},
theme: {
customCss: "./src/css/custom.css",
},
} satisfies Preset.Options,
],
],
themeConfig: {
navbar: {
title: "",
logo: {
alt: "B4 Logo",
src: "img/favicon.svg",
},
items: [
{
type: "docSidebar",
sidebarId: "tutorialSidebar",
position: "left",
label: "Документация",
},
{
type: "localeDropdown",
position: "right",
},
{
href: "https://github.com/DanielLavrushin/b4",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
copyright: `Copyright © ${new Date().getFullYear()} B4 Project`,
},
prism: {
theme: prismThemes.dracula,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;