98 lines
2.4 KiB
JavaScript
98 lines
2.4 KiB
JavaScript
// @ts-check
|
|
|
|
const path = require('path');
|
|
const { themes } = require('prism-react-renderer');
|
|
const lightCodeTheme = themes.github;
|
|
const darkCodeTheme = themes.dracula;
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
const config = {
|
|
title: 'Fotospiel Ops & Product Docs',
|
|
tagline: 'Single source of truth for the platform',
|
|
url: 'https://docs.fotospiel.local',
|
|
baseUrl: '/',
|
|
favicon: 'img/favicon.ico',
|
|
organizationName: 'fotospiel',
|
|
projectName: 'fotospiel-docs-site',
|
|
onBrokenLinks: 'warn',
|
|
trailingSlash: false,
|
|
i18n: {
|
|
defaultLocale: 'en',
|
|
locales: ['en'],
|
|
},
|
|
markdown: {
|
|
hooks: {
|
|
onBrokenMarkdownLinks: 'warn',
|
|
},
|
|
},
|
|
presets: [
|
|
[
|
|
'classic',
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
({
|
|
docs: {
|
|
path: path.resolve(__dirname, '..'),
|
|
routeBasePath: '/',
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
include: ['**/*.md', '**/*.mdx'],
|
|
exclude: ['site/**', 'help/**', 'agents/**', 'content/**', 'archive/**', '**/_drafts/**'],
|
|
editUrl: undefined,
|
|
showLastUpdateAuthor: false,
|
|
showLastUpdateTime: false,
|
|
},
|
|
blog: false,
|
|
pages: false,
|
|
theme: {
|
|
customCss: require.resolve('./src/css/custom.css'),
|
|
},
|
|
}),
|
|
],
|
|
],
|
|
themes: [],
|
|
themeConfig:
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
({
|
|
navbar: {
|
|
title: 'Fotospiel Docs',
|
|
items: [
|
|
{
|
|
type: 'docSidebar',
|
|
sidebarId: 'docsSidebar',
|
|
position: 'left',
|
|
label: 'Documentation',
|
|
},
|
|
{
|
|
href: 'https://github.com/fotospiel',
|
|
label: 'Git',
|
|
position: 'right',
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
links: [
|
|
{
|
|
title: 'Docs',
|
|
items: [
|
|
{
|
|
label: 'Architecture PRP',
|
|
to: '/',
|
|
},
|
|
{
|
|
label: 'Ops Playbooks',
|
|
to: '/ops',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
copyright: `Copyright © ${new Date().getFullYear()} Fotospiel. Internal use only.`,
|
|
},
|
|
prism: {
|
|
theme: lightCodeTheme,
|
|
darkTheme: darkCodeTheme,
|
|
},
|
|
}),
|
|
};
|
|
|
|
module.exports = config;
|