Skip to content

Commit

Permalink
Feels wierd but lets try it
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Feb 8, 2025
1 parent a5eac3b commit 1bb62e9
Showing 1 changed file with 98 additions and 9 deletions.
107 changes: 98 additions & 9 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,98 @@
export default async function createConfigAsync() {
return {
title: 'Open Register',
tagline: 'Flexible object management for Nextcloud',
url: 'https://conductionnl.github.io',
baseUrl: '/openregister/'
// your site config ...
};
}
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Open Register',
tagline: 'Flexible object management for Nextcloud',
url: 'https://conductionnl.github.io',
baseUrl: '/openregister/',

// GitHub pages deployment config
organizationName: 'conductionnl',
projectName: 'openregister',
trailingSlash: false,

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',

// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang
i18n: {
defaultLocale: 'en',
locales: ['en'],
},

presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/conductionnl/openregister/tree/main/website/',
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Open Register',
logo: {
alt: 'Open Register Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Documentation',
},
{
href: 'https://github.com/conductionnl/openregister',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Documentation',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'GitHub',
href: 'https://github.com/conductionnl/openregister',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Open Register. Built with Docusaurus.`,
},
prism: {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula'),
},
}),
};

module.exports = config;

0 comments on commit 1bb62e9

Please sign in to comment.