Files
docs/docusaurus.config.js
2022-02-08 17:40:58 +02:00

94 lines
2.2 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: 'horsy',
tagline: 'Share your apps with world',
url: 'https://docs.horsy.ml/',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'horsy-ml', // Usually your GitHub org/user name.
projectName: 'horsy', // Usually your repo name.
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'horsy',
logo: {
alt: 'horsy Logo',
src: 'img/logo.png',
},
items: [
{
type: 'doc',
docId: 'installation',
position: 'left',
label: 'Installation',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Installation',
to: '/docs/installation',
},
],
},
{
title: 'Community',
items: [
{
label: 'Developers',
href: '/developers',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/horsy-ml',
}
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} horsy. Docs built with Docusaurus.`,
},
prism: {
theme: darkCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;