Build and publish Corp v1 steering documentation / build (push) Successful in 30s
60 lines
2.2 KiB
TypeScript
60 lines
2.2 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: 'Corp v1 Steering Committee',
|
|
tagline: 'Project governance, teams, and membership registry',
|
|
url: 'https://pages.apps.lego-cloud.eu',
|
|
baseUrl: '/corp-v1/sterring-commitee/',
|
|
organizationName: 'corp-v1',
|
|
projectName: 'sterring-commitee',
|
|
trailingSlash: true,
|
|
onBrokenLinks: 'throw',
|
|
markdown: {hooks: {onBrokenMarkdownLinks: 'throw'}},
|
|
i18n: {defaultLocale: 'en', locales: ['en']},
|
|
presets: [[
|
|
'classic',
|
|
{
|
|
docs: {
|
|
routeBasePath: '/',
|
|
sidebarPath: './sidebars.ts',
|
|
editUrl: 'https://gitea.lego-cloud.eu/corp-v1/sterring-commitee/_edit/main/',
|
|
showLastUpdateAuthor: true,
|
|
showLastUpdateTime: true,
|
|
},
|
|
blog: false,
|
|
theme: {customCss: './src/css/custom.css'},
|
|
sitemap: {changefreq: 'weekly', priority: 0.5},
|
|
} satisfies Preset.Options,
|
|
]],
|
|
themeConfig: {
|
|
colorMode: {defaultMode: 'dark', disableSwitch: false, respectPrefersColorScheme: true},
|
|
navbar: {
|
|
title: 'CORP V1 / STEERING',
|
|
items: [
|
|
{to: '/projects/', label: 'Projects', position: 'left'},
|
|
{to: '/teams/', label: 'Teams', position: 'left'},
|
|
{to: '/members/', label: 'Members', position: 'left'},
|
|
{to: '/governance/project-lifecycle/', label: 'Governance', position: 'left'},
|
|
{href: 'https://gitea.lego-cloud.eu/corp-v1/sterring-commitee', label: 'Gitea ↗', position: 'right'},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
links: [{title: 'Registry', items: [
|
|
{label: 'Projects', to: '/projects/'},
|
|
{label: 'Teams', to: '/teams/'},
|
|
{label: 'Members', to: '/members/'},
|
|
]}, {title: 'Governance', items: [
|
|
{label: 'Project lifecycle', to: '/governance/project-lifecycle/'},
|
|
{label: 'Decision log', to: '/governance/decisions/'},
|
|
]}],
|
|
copyright: `© ${new Date().getFullYear()} Corp v1 Steering Committee`,
|
|
},
|
|
prism: {theme: prismThemes.oneDark, darkTheme: prismThemes.oneDark},
|
|
} satisfies Preset.ThemeConfig,
|
|
};
|
|
|
|
export default config;
|