memoir/docusaurus.config.js

78 lines
1.7 KiB
JavaScript
Raw Normal View History

2023-02-19 12:34:28 +00:00
const lightCodeTheme = require('prism-react-renderer/themes/github')
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
const config = {
title: 'Memoir',
tagline: 'Memoirs of developing, deploying, hosting',
favicon: 'img/favicon.ico',
2023-02-19 13:06:57 +00:00
url: 'https://memoir.nicco.io',
2023-02-19 12:34:28 +00:00
baseUrl: '/',
2023-02-19 13:06:57 +00:00
organizationName: 'cupcakearmy',
projectName: 'memoir',
2023-02-19 12:34:28 +00:00
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
2023-02-19 13:06:57 +00:00
{
2023-02-19 12:34:28 +00:00
docs: {
sidebarPath: require.resolve('./sidebars.js'),
2023-02-19 13:06:57 +00:00
editUrl: 'https://github.com/cupcakearmy/memoir/tree/main',
2023-02-19 12:34:28 +00:00
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
2023-02-19 13:06:57 +00:00
},
2023-02-19 12:34:28 +00:00
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Memoir',
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'Intro',
},
],
},
footer: {
links: [
{
title: 'Links',
items: [
{
label: 'Github',
href: 'https://github.com/cupcakearmy/',
},
{
label: 'Website',
href: 'https://nicco.io/',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} cupcakearmy, build with ❤️ and 🐘`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
}
module.exports = config