mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-13 08:43:01 +03:00
72 lines
1.7 KiB
TypeScript
72 lines
1.7 KiB
TypeScript
import type * as Preset from "@docusaurus/preset-classic";
|
|
import type { Config } from "@docusaurus/types";
|
|
import { themes as prismThemes } from "prism-react-renderer";
|
|
|
|
const config: Config = {
|
|
title: "Pocket ID",
|
|
tagline:
|
|
"Pocket ID is a simple OIDC provider that allows users to authenticate with their passkeys to your services.",
|
|
favicon: "img/pocket-id.png",
|
|
|
|
url: "https://docs.pocket-id.org",
|
|
baseUrl: "/",
|
|
organizationName: "pocket-id",
|
|
projectName: "pocket-id",
|
|
|
|
onBrokenLinks: "warn",
|
|
onBrokenMarkdownLinks: "warn",
|
|
|
|
i18n: {
|
|
defaultLocale: "en",
|
|
locales: ["en"],
|
|
},
|
|
|
|
presets: [
|
|
[
|
|
"classic",
|
|
{
|
|
docs: {
|
|
routeBasePath: "/docs",
|
|
sidebarPath: "./sidebars.ts",
|
|
editUrl: "https://github.com/pocket-id/pocket-id/edit/main/docs",
|
|
},
|
|
blog: false,
|
|
} satisfies Preset.Options,
|
|
],
|
|
],
|
|
|
|
themeConfig: {
|
|
image: "img/pocket-id.png",
|
|
colorMode: {
|
|
respectPrefersColorScheme: true,
|
|
},
|
|
navbar: {
|
|
title: "Pocket ID",
|
|
logo: {
|
|
alt: "Pocket ID Share Logo",
|
|
src: "img/pocket-id.png",
|
|
},
|
|
items: [
|
|
// Version gets replaced by the version-label.ts script
|
|
{
|
|
to: "#version",
|
|
label: " ",
|
|
position: "right",
|
|
},
|
|
{
|
|
href: "https://github.com/pocket-id/pocket-id",
|
|
label: "GitHub",
|
|
position: "right",
|
|
},
|
|
],
|
|
},
|
|
prism: {
|
|
theme: prismThemes.github,
|
|
darkTheme: prismThemes.dracula,
|
|
},
|
|
} satisfies Preset.ThemeConfig,
|
|
|
|
clientModules: [require.resolve("./src/version-label.ts")],
|
|
};
|
|
export default config;
|