2021-06-27 15:47:20 +03:00
|
|
|
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
|
|
|
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
|
|
|
|
2021-08-24 01:08:50 +03:00
|
|
|
const licenseUrl = 'https://github.com/Lissy93/dashy/blob/master/LICENSE';
|
|
|
|
const aliciaUrl = 'https://aliciasykes.com';
|
|
|
|
const dashyUrl = 'https://dashy.to';
|
|
|
|
|
|
|
|
const footerText = `<a href="${dashyUrl}">Dashy</a> - The Self-Hosted Dashboard for your Homelab`
|
|
|
|
+ `<br>License under <a href="${licenseUrl}">MIT</a>. `
|
|
|
|
+ `Copyright © ${new Date().getFullYear()} <a href="${aliciaUrl}">Alicia Sykes</a>`;
|
|
|
|
|
2021-06-27 15:47:20 +03:00
|
|
|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
|
|
|
module.exports = {
|
|
|
|
title: 'Dashy',
|
|
|
|
tagline: 'The Ultimate Homepage for your Homelab',
|
|
|
|
url: 'https://dashy.to',
|
|
|
|
baseUrl: '/',
|
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
onBrokenMarkdownLinks: 'warn',
|
|
|
|
favicon: 'img/favicon.ico',
|
|
|
|
organizationName: 'facebook', // Usually your GitHub org/user name.
|
|
|
|
projectName: 'docusaurus', // Usually your repo name.
|
2021-06-27 19:58:08 +03:00
|
|
|
plugins: ['docusaurus-plugin-sass'],
|
2021-06-27 15:47:20 +03:00
|
|
|
themeConfig: {
|
|
|
|
navbar: {
|
|
|
|
title: 'Dashy',
|
|
|
|
logo: {
|
|
|
|
alt: 'My Site Logo',
|
|
|
|
src: 'img/dashy-512.png',
|
|
|
|
},
|
|
|
|
items: [
|
|
|
|
|
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
style: 'dark',
|
|
|
|
links: [
|
|
|
|
{
|
2021-08-24 01:08:50 +03:00
|
|
|
title: 'Intro',
|
|
|
|
items: [
|
|
|
|
{ label: 'GitHub', to: 'https://github.com/lissy93/dashy' },
|
|
|
|
{ label: 'Live Demo', to: 'https://demo.dashy.to' },
|
|
|
|
{ label: 'Quick Start', to: '/docs/quick-start' },
|
|
|
|
{ label: 'Documentation', to: '/docs' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Setup Guide',
|
|
|
|
items: [
|
|
|
|
{ label: 'Deploying', to: '/docs/deployment' },
|
|
|
|
{ label: 'Configuring', to: '/docs/configuring' },
|
|
|
|
{ label: 'Management', to: '/docs/management' },
|
|
|
|
{ label: 'Troubleshooting', to: '/docs/troubleshooting' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Feature Docs Pt 1',
|
|
|
|
items: [
|
|
|
|
{ label: 'Authentication', to: '/docs/deployment' },
|
|
|
|
{ label: 'Alternate Views', to: '/docs/configuring' },
|
|
|
|
{ label: 'Backup & Restore', to: '/docs/management' },
|
|
|
|
{ label: 'Icons', to: '/docs/troubleshooting' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Feature Docs Pt 2',
|
|
|
|
items: [
|
|
|
|
{ label: 'Language Switching', to: '/docs/troubleshooting' },
|
|
|
|
{ label: 'Status Indicators', to: '/docs/troubleshooting' },
|
|
|
|
{ label: 'Searching & Shortcuts', to: '/docs/troubleshooting' },
|
|
|
|
{ label: 'Theming', to: '/docs/troubleshooting' },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Developing & Community',
|
2021-06-27 15:47:20 +03:00
|
|
|
items: [
|
2021-08-24 01:08:50 +03:00
|
|
|
{ label: 'Developing', to: '/docs/deployment' },
|
|
|
|
{ label: 'Development Guides', to: '/docs/configuring' },
|
|
|
|
{ label: 'Contributing', to: '/docs/management' },
|
|
|
|
{ label: 'Showcase', to: '/docs/troubleshooting' },
|
|
|
|
{ label: 'Credits', to: '/docs/troubleshooting' },
|
2021-06-27 15:47:20 +03:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2021-08-24 01:08:50 +03:00
|
|
|
title: 'Misc',
|
2021-06-27 15:47:20 +03:00
|
|
|
items: [
|
2021-08-24 01:08:50 +03:00
|
|
|
{ label: 'Privacy & Security', to: '/docs/deployment' },
|
|
|
|
{ label: 'License', to: '/docs/configuring' },
|
|
|
|
{ label: 'Legal', to: '/docs/management' },
|
|
|
|
{ label: 'Code of Conduct', to: '/docs/troubleshooting' },
|
|
|
|
{ label: 'Changelog', to: '/docs/troubleshooting' },
|
2021-06-27 15:47:20 +03:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2021-08-24 01:08:50 +03:00
|
|
|
copyright: footerText,
|
2021-06-27 15:47:20 +03:00
|
|
|
},
|
|
|
|
prism: {
|
|
|
|
theme: lightCodeTheme,
|
|
|
|
darkTheme: darkCodeTheme,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
'@docusaurus/preset-classic',
|
|
|
|
{
|
|
|
|
docs: {
|
|
|
|
sidebarPath: require.resolve('./sidebars.js'),
|
|
|
|
// Please change this to your repo.
|
|
|
|
editUrl:
|
|
|
|
'https://github.com/facebook/docusaurus/edit/master/website/',
|
|
|
|
},
|
|
|
|
theme: {
|
2021-06-27 19:58:08 +03:00
|
|
|
customCss: [
|
|
|
|
require.resolve('./src/styles/Colors.scss'),
|
|
|
|
require.resolve('./src/styles/Typography.scss'),
|
|
|
|
require.resolve('./src/styles/custom.scss'),
|
|
|
|
]
|
2021-06-27 15:47:20 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
};
|