network/docusaurus.config.js

137 lines
3.1 KiB
JavaScript
Raw Permalink Normal View History

2023-07-24 23:46:18 +03:00
// @ts-check
require("dotenv").config();
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Dead Network",
tagline:
"Мережа сервісів і платформ, які дають змогу окремим особам і спільнотам спілкуватися, ділитися та розвиватися разом.",
2023-07-24 23:57:16 +03:00
url: "https://network.dead.guru",
2023-07-24 23:46:18 +03:00
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "design/web/favicon.ico",
organizationName: "dead",
projectName: "dead",
2023-07-25 12:17:45 +03:00
i18n: {
defaultLocale: 'uk',
locales: ['uk'],
},
2023-07-24 23:46:18 +03:00
themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ {
announcementBar: {
id: "2_0",
content:
'🎉 Зя`вився XMPP сервер доєднатися можна <a href="/doc/xmpp">тут</a> 🎉',
},
docs: {
sidebar: {
2023-07-25 00:09:58 +03:00
autoCollapseCategories: false,
2023-07-24 23:46:18 +03:00
},
},
navbar: {
title: "Dead Network",
hideOnScroll: true,
logo: {
alt: "Dead Logo",
src: "img/logo.svg",
srcDark: "img/logo-white.svg",
},
items: [
{
label: "Документація",
to: "docs/introduction",
},
{
label: "Клієнти",
to: "downloads",
},
{
label: "Інформація",
position: "right",
items: [
{
label: "Вступ",
to: "docs/introduction",
},
{
label: "Як почати",
to: "docs/getting-started",
},
{
label: "ЗІВі",
to: "docs/faq",
},
],
},
{
href: "https://git.dead.guru/DeadGuru/network",
position: "right",
className: "header-github-link",
"aria-label": "GitHub Репозиторій",
},
],
},
footer: {
2023-07-25 12:17:45 +03:00
copyright: `<a href="https://docusaurus.io/">Працює на docusaurus</a>.`,
2023-07-24 23:46:18 +03:00
},
colorMode: {
2023-07-25 12:17:45 +03:00
respectPrefersColorScheme: false,
defaultMode: 'dark',
disableSwitch: false,
2023-07-24 23:46:18 +03:00
},
mermaid: {
theme: { light: "base", dark: "base" },
options: {
themeVariables: {
primaryColor: "#f03131",
primaryTextColor: "var(--tw-prose-headings)",
primaryBorderColor: "#4D4D4D",
lineColor: "#EAD667",
secondaryColor: "#EA67BD",
tertiaryColor: "#677CEA",
},
},
},
},
plugins: [
() => {
return {
name: "docusaurus-tailwindcss",
configurePostCss(postcssOptions) {
postcssOptions.plugins.push(require("tailwindcss"));
postcssOptions.plugins.push(require("autoprefixer"));
return postcssOptions;
},
};
},
],
presets: [
[
"@docusaurus/preset-classic",
/** @type {import('@docusaurus/preset-classic').Options} */
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
2023-07-25 12:17:45 +03:00
editUrl: "https://git.dead.guru/DeadGuru/network/_edit/master/",
2023-07-24 23:46:18 +03:00
breadcrumbs: false,
showLastUpdateAuthor: true,
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
customFields: {
API_URL: process.env.API_URL,
},
markdown: {
mermaid: true,
},
themes: ["@docusaurus/theme-mermaid"],
};
module.exports = config;