52 lines
1.6 KiB
JavaScript
52 lines
1.6 KiB
JavaScript
// @ts-check
|
|
// `@type` JSDoc annotations allow editor autocompletion and type checking
|
|
// (when paired with `@ts-check`).
|
|
// There are various equivalent ways to declare your Docusaurus config.
|
|
// See: https://docusaurus.io/docs/api/docusaurus-config
|
|
|
|
// For some reason we get a webpack warning if we use import here...
|
|
const {configDefaults} = require('@flecks/dox/build/docusaurus'); // eslint-disable-line import/no-extraneous-dependencies
|
|
|
|
export default async function flecksDocusaurus() {
|
|
const defaults = configDefaults();
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
const config = {
|
|
...defaults,
|
|
baseUrl: '/flecks/',
|
|
favicon: 'flecks.png',
|
|
tagline: 'not static',
|
|
title: 'flecks',
|
|
url: 'https://cha0s.github.io',
|
|
markdown: {
|
|
mermaid: true,
|
|
},
|
|
organizationName: 'cha0s', // Usually your GitHub org/user name.
|
|
projectName: 'flecks', // Usually your repo name.
|
|
themes: ['@docusaurus/theme-mermaid'],
|
|
themeConfig:
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
({
|
|
...defaults.themeConfig,
|
|
navbar: {
|
|
title: 'flecks',
|
|
logo: {
|
|
alt: 'flecks logo',
|
|
src: 'flecks-textless.png',
|
|
},
|
|
items: [
|
|
{
|
|
href: 'https://github.com/cha0s/flecks',
|
|
label: 'GitHub',
|
|
position: 'right',
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
copyright: `Copyright © ${new Date().getFullYear()} cha0s. Built with flecks and Docusaurus.`,
|
|
},
|
|
}),
|
|
};
|
|
return config;
|
|
}
|