pager/docs/docusaurus.config.js
Jonas Leder d3997a7bd6
All checks were successful
ci / frontend-build (push) Successful in 43s
ci / backend-test (push) Successful in 1m18s
ci / build-1 (push) Successful in 2m34s
ci / frontend-docker (push) Successful in 0s
ci / docs (push) Successful in 3m26s
ci / build (push) Successful in 6m55s
ci / backend-docker (push) Successful in 0s
ci / build-2 (push) Successful in 45s
ci / chart (push) Successful in 0s
Restore docs screenshots and publish Docusaurus site to git-pages
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 15:25:48 +01:00

31 lines
1,016 B
JavaScript

// The site is published to git-pages under a sub path; PAGES_URL overrides it.
const pages = new URL(process.env.PAGES_URL || 'https://jonasled.jonasled.dev/pager/')
/** @type {import('@docusaurus/types').Config} */
module.exports = {
title: 'Pager',
tagline: 'Multi-tenant alerting with Alertmanager, on-call UI and push notifications',
url: pages.origin,
baseUrl: pages.pathname.replace(/\/?$/, '/'),
favicon: 'img/icon.svg',
onBrokenLinks: 'throw',
markdown: { hooks: { onBrokenMarkdownLinks: 'throw' } },
presets: [
[
'classic',
{
docs: { routeBasePath: '/', sidebarPath: './sidebars.js' },
blog: false,
theme: { customCss: './src/custom.css' },
},
],
],
themeConfig: {
colorMode: { respectPrefersColorScheme: true },
navbar: {
title: 'Pager',
logo: { alt: 'Pager', src: 'img/icon.svg' },
},
footer: { style: 'dark', copyright: 'Pager documentation. Screenshots are regenerated on every pipeline run.' },
},
}