Files
automatisch/packages/docs/docusaurus.config.js
2022-02-02 13:27:56 +03:00

112 lines
2.8 KiB
JavaScript

// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Docs',
tagline: 'Automatisch Docs',
url: 'https://docs.automatisch.io',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'automatisch', // Usually your GitHub org/user name.
projectName: 'automatisch', // Usually your repo name.
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/facebook/docusaurus/edit/main/website/',
routeBasePath: '/',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
editUrl:
'https://github.com/facebook/docusaurus/edit/main/website/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Automatisch',
items: [
{
type: 'doc',
docId: 'overview',
position: 'left',
label: 'Docs',
},
{
href: 'https://discord.gg/dJSah9CVrC',
label: 'Discord',
position: 'right',
},
{
href: 'https://github.com/automatisch/automatisch',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discord.gg/dJSah9CVrC',
},
{
label: 'Twitter',
href: 'https://twitter.com/automatischio',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/automatisch/automatisch',
},
],
},
],
copyright: `© 2021 Automatisch. All rights reserved.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;