128 lines
2.9 KiB
TypeScript
128 lines
2.9 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: "StarOpenSource UI",
|
||
|
url: "https://sui.staropensource.de",
|
||
|
baseUrl: "/",
|
||
|
|
||
|
favicon: "dist/sui.png",
|
||
|
trailingSlash: true,
|
||
|
i18n: {
|
||
|
defaultLocale: "en",
|
||
|
locales: ["en"],
|
||
|
},
|
||
|
noIndex: false,
|
||
|
onBrokenLinks: "throw",
|
||
|
onBrokenAnchors: "throw",
|
||
|
onBrokenMarkdownLinks: "throw",
|
||
|
onDuplicateRoutes: "warn",
|
||
|
/*
|
||
|
onBrokenLinks: "ignore",
|
||
|
onBrokenAnchors: "ignore",
|
||
|
onBrokenMarkdownLinks: "ignore",
|
||
|
onDuplicateRoutes: "ignore",
|
||
|
*/
|
||
|
tagline: "// TODO",
|
||
|
|
||
|
themeConfig: {
|
||
|
docs: {
|
||
|
sidebar: {
|
||
|
hideable: false,
|
||
|
autoCollapseCategories: true,
|
||
|
}
|
||
|
},
|
||
|
navbar: {
|
||
|
title: "StarOpenSource UI",
|
||
|
logo: {
|
||
|
alt: "StarOpenSource UI",
|
||
|
src: "dist/sui.png",
|
||
|
},
|
||
|
items: [
|
||
|
{
|
||
|
type: "docSidebar",
|
||
|
sidebarId: "sidebar",
|
||
|
position: "left",
|
||
|
label: "Documentation",
|
||
|
},
|
||
|
{
|
||
|
href: "https://git.staropensource.de/StarOpenSource/SUI",
|
||
|
label: "Source code",
|
||
|
position: "right",
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
footer: {
|
||
|
style: "dark",
|
||
|
copyright: `Copyright (c) ${new Date().getFullYear()} The StarOpenSource Project & Contributors<br/>Licensed under the GNU General Public License version 3`,
|
||
|
},
|
||
|
prism: {
|
||
|
theme: prismThemes.github,
|
||
|
darkTheme: prismThemes.dracula,
|
||
|
},
|
||
|
} satisfies Preset.ThemeConfig,
|
||
|
|
||
|
presets: [
|
||
|
[
|
||
|
"classic",
|
||
|
{
|
||
|
debug: false,
|
||
|
|
||
|
docs: {
|
||
|
path:
|
||
|
"docs",
|
||
|
editUrl: "https://git.staropensource.de/StarOpenSource/SUI/_edit/develop/docs/",
|
||
|
editLocalizedFiles: false,
|
||
|
editCurrentVersion: true,
|
||
|
routeBasePath: "",
|
||
|
tagsBasePath: 'tags',
|
||
|
sidebarPath: "./sidebars.ts",
|
||
|
sidebarCollapsible: false,
|
||
|
sidebarCollapsed: false,
|
||
|
showLastUpdateAuthor: true,
|
||
|
showLastUpdateTime: true,
|
||
|
breadcrumbs: true,
|
||
|
includeCurrentVersion: true,
|
||
|
|
||
|
},
|
||
|
sitemap: {
|
||
|
changefreq: "monthly",
|
||
|
priority: 0.5,
|
||
|
filename: "sitemap.xml"
|
||
|
|
||
|
},
|
||
|
theme: {
|
||
|
customCss: "./src/css/custom.css",
|
||
|
},
|
||
|
} satisfies Preset.Options,
|
||
|
],
|
||
|
],
|
||
|
|
||
|
plugins: [
|
||
|
[
|
||
|
"@docusaurus/plugin-client-redirects",
|
||
|
{
|
||
|
fromExtensions: ["html", "htm", "php"],
|
||
|
redirects: [
|
||
|
{
|
||
|
from: ["/", "/index"],
|
||
|
to: "/about",
|
||
|
},
|
||
|
],
|
||
|
}
|
||
|
],
|
||
|
],
|
||
|
|
||
|
markdown: {
|
||
|
format: "detect",
|
||
|
mermaid: false,
|
||
|
},
|
||
|
|
||
|
staticDirectories: ["static"],
|
||
|
titleDelimiter: "»",
|
||
|
baseUrlIssueBanner: true,
|
||
|
};
|
||
|
|
||
|
export default config;
|