31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
// On GitLab Pages CI_PAGES_URL is the full site URL (maybe with a path), so the base URL needs no manual setting.
|
|
const pages = process.env.CI_PAGES_URL ? new URL(process.env.CI_PAGES_URL) : null
|
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
module.exports = {
|
|
title: 'Pager',
|
|
tagline: 'Multi-tenant alerting with Alertmanager, on-call UI and push notifications',
|
|
url: pages ? pages.origin : 'http://localhost',
|
|
baseUrl: pages ? 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.' },
|
|
},
|
|
}
|