import {themes as prismThemes} from 'prism-react-renderer';
const config = {
title: 'PMDaemon',
tagline: 'Advanced Process Manager - PM2 evolved in Rust',
favicon: 'img/favicon.ico',
url: 'https://entrepeneur4lyf.github.io',
baseUrl: '/pmdaemon/',
organizationName: 'entrepeneur4lyf', projectName: 'pmdaemon',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
presets: [
[
'classic',
({
docs: {
sidebarPath: './sidebars.js',
editUrl:
'https://github.com/entrepeneur4lyf/pmdaemon/tree/main/docs/',
},
blog: {
path: 'changelog',
routeBasePath: 'changelog',
blogTitle: 'Changelog',
blogDescription: 'PMDaemon release notes and changelog',
blogSidebarTitle: 'Recent releases',
blogSidebarCount: 10,
postsPerPage: 'ALL',
showReadingTime: false,
feedOptions: {
type: 'all',
title: 'PMDaemon Changelog',
description: 'PMDaemon release notes and changelog',
},
},
theme: {
customCss: './src/css/custom.css',
},
}),
],
],
themeConfig:
({
image: 'img/pmdaemon-social-card.jpg',
colorMode: {
disableSwitch: true,
defaultMode: 'dark',
respectPrefersColorScheme: false,
},
navbar: {
title: 'Home',
logo: {
alt: 'PMDaemon Logo',
src: 'img/logo-small.png',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Documentation',
},
{
to: '/docs/api/rest-api',
label: 'API',
position: 'left'
},
{
to: '/docs/examples/use-cases',
label: 'Examples',
position: 'left'
},
{to: '/changelog', label: 'Changelog', position: 'left'},
{
href: 'https://github.com/entrepeneur4lyf/pmdaemon',
label: 'GitHub',
position: 'right',
},
{
href: 'https://crates.io/crates/pmdaemon',
label: 'Crates.io',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Documentation',
items: [
{
label: 'Getting Started',
to: '/docs/getting-started/introduction',
},
{
label: 'CLI Reference',
to: '/docs/cli/commands',
},
{
label: 'API Documentation',
to: '/docs/api/rest-api',
},
],
},
{
title: 'Community',
items: [
{
label: 'GitHub Issues',
href: 'https://github.com/entrepeneur4lyf/pmdaemon/issues',
},
{
label: 'GitHub Discussions',
href: 'https://github.com/entrepeneur4lyf/pmdaemon/discussions',
},
{
label: 'X',
href: 'https://x.com/entrepeneur4lyf',
},
],
},
{
title: 'More',
items: [
{
label: 'Changelog',
to: '/changelog',
},
{
label: 'GitHub',
href: 'https://github.com/entrepeneur4lyf/pmdaemon',
},
{
label: 'Rust Docs',
href: 'https://docs.rs/pmdaemon',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} PMDaemon. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['rust', 'toml', 'json', 'bash', 'powershell'],
},
algolia: {
appId: 'O2R9OPMFS1',
apiKey: 'e3b8bec8a3c350f252e460267f20312b',
indexName: 'pmdaemon',
contextualSearch: true,
externalUrlRegex: 'external\\.com|domain\\.com',
replaceSearchResultPathname: {
from: '/docs/', to: '/',
},
searchParameters: {},
searchPagePath: 'search',
},
}),
};
export default config;