mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
3.4 KiB
125 lines
3.4 KiB
import type * as Preset from '@docusaurus/preset-classic';
|
|
import type { Config } from '@docusaurus/types';
|
|
import { themes as prismThemes } from 'prism-react-renderer';
|
|
|
|
const config: Config = {
|
|
title: 'Ghostfolio Documentation',
|
|
tagline: 'Open Source Wealth Management Software',
|
|
favicon: 'img/favicon.ico',
|
|
staticDirectories: ['static'],
|
|
|
|
// Set the production url of your site here
|
|
url: 'https://ghostfol.io/',
|
|
// Set the /<baseUrl>/ pathname under which your site is served
|
|
// For GitHub pages deployment, it is often '/<projectName>/'
|
|
baseUrl: '/',
|
|
|
|
// GitHub pages deployment config.
|
|
// If you aren't using GitHub pages, you don't need these.
|
|
organizationName: 'ghostfolio', // Usually your GitHub org/user name.
|
|
projectName: 'ghostfolio', // Usually your repo name.
|
|
|
|
onBrokenLinks: 'throw',
|
|
onBrokenMarkdownLinks: 'warn',
|
|
|
|
// Even if you don't use internationalization, you can use this field to set
|
|
// useful metadata like html lang. For example, if your site is Chinese, you
|
|
// may want to replace "en" with "zh-Hans".
|
|
i18n: {
|
|
defaultLocale: 'en',
|
|
locales: ['en']
|
|
},
|
|
|
|
presets: [
|
|
[
|
|
'classic',
|
|
{
|
|
docs: {
|
|
sidebarPath: './sidebars.ts',
|
|
// Please change this to your repo.
|
|
// Remove this to remove the "edit this page" links.
|
|
editUrl:
|
|
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/'
|
|
},
|
|
blog: {
|
|
showReadingTime: true,
|
|
// Please change this to your repo.
|
|
// Remove this to remove the "edit this page" links.
|
|
editUrl:
|
|
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/'
|
|
},
|
|
theme: {
|
|
customCss: './src/css/custom.css'
|
|
}
|
|
} satisfies Preset.Options
|
|
]
|
|
],
|
|
|
|
themeConfig: {
|
|
// Replace with your project's social card
|
|
image: 'img/docusaurus-social-card.jpg',
|
|
navbar: {
|
|
title: 'Ghostfolio',
|
|
logo: {
|
|
alt: 'My Site Logo',
|
|
src: 'img/ghost.svg'
|
|
},
|
|
items: [
|
|
{
|
|
type: 'docSidebar',
|
|
sidebarId: 'tutorialSidebar',
|
|
position: 'left',
|
|
label: 'Docs'
|
|
},
|
|
{
|
|
href: 'https://github.com/ghostfolio/ghostfolio',
|
|
label: 'GitHub',
|
|
position: 'right'
|
|
}
|
|
]
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
links: [
|
|
{
|
|
title: 'Docs',
|
|
items: [
|
|
{
|
|
label: 'Docs',
|
|
to: '/docs/intro'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: 'Community',
|
|
items: [
|
|
{
|
|
label: 'Slack',
|
|
href: 'https://join.slack.com/t/ghostfolio/shared_invite/zt-vsaan64h-F_I0fEo5M0P88lP9ibCxFg'
|
|
},
|
|
{
|
|
label: 'X',
|
|
href: 'https://x.com/ghostfolio_'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: 'More',
|
|
items: [
|
|
{
|
|
label: 'GitHub',
|
|
href: 'https://github.com/ghostfolio/ghostfolio'
|
|
}
|
|
]
|
|
}
|
|
],
|
|
copyright: `Copyright © ${new Date().getFullYear()} Ghostfolio. Built with Docusaurus.`
|
|
},
|
|
prism: {
|
|
theme: prismThemes.github,
|
|
darkTheme: prismThemes.dracula
|
|
}
|
|
} satisfies Preset.ThemeConfig
|
|
};
|
|
|
|
export default config;
|
|
|