76 lines
1.6 KiB
TypeScript
76 lines
1.6 KiB
TypeScript
import type { Options, ThemeConfig } from "@docusaurus/preset-classic";
|
|
import type { Config } from "@docusaurus/types";
|
|
import { themes } from "prism-react-renderer";
|
|
|
|
const baseUrl = process.env.NODE_ENV === "production" ? "/" : "/";
|
|
const url = "https://codeformatter.dsv.su.se";
|
|
|
|
|
|
export default {
|
|
title: "Prettier Java",
|
|
tagline: "Prettier code formatter plugin for Java",
|
|
favicon: "img/favicon.png",
|
|
trailingSlash: false,
|
|
url,
|
|
baseUrl,
|
|
i18n: {
|
|
defaultLocale: "en",
|
|
locales: ["en"]
|
|
},
|
|
presets: [
|
|
[
|
|
"classic",
|
|
{
|
|
theme: {
|
|
customCss: "./src/css/custom.css"
|
|
}
|
|
} satisfies Options
|
|
]
|
|
],
|
|
themeConfig: {
|
|
colorMode: {
|
|
respectPrefersColorScheme: true
|
|
},
|
|
image: "img/banner-dark.png",
|
|
navbar: {
|
|
title: "Prettier Java",
|
|
logo: {
|
|
alt: "Prettier Java Logo",
|
|
src: "img/icon.svg",
|
|
srcDark: "img/icon-dark.svg"
|
|
},
|
|
items: [
|
|
]
|
|
},
|
|
footer: {
|
|
style: "dark",
|
|
links: [
|
|
{
|
|
title: "Docs",
|
|
items: [
|
|
{ label: "Introduction", to: "/docs" },
|
|
{ label: "Installation", to: "/docs/installation" }
|
|
]
|
|
},
|
|
{
|
|
title: "Community",
|
|
items: [
|
|
{
|
|
label: "@JHipster on Twitter",
|
|
to: "https://twitter.com/jhipster"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: "More",
|
|
}
|
|
]
|
|
},
|
|
prism: {
|
|
theme: themes.github,
|
|
darkTheme: themes.dracula,
|
|
additionalLanguages: ["bash", "java"]
|
|
}
|
|
} satisfies ThemeConfig
|
|
} satisfies Config;
|