This repository has been archived on 2024-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
unifi-cam-proxy/docs/docusaurus.config.js

79 lines
2.1 KiB
JavaScript
Raw Normal View History

2024-03-02 11:37:04 +00:00
// @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: 'unifi-cam-proxy',
tagline: 'Dinosaurs are cool',
url: 'https://unifi-cam-proxy.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'keshavdv', // Usually your GitHub org/user name.
projectName: 'unifi-cam-proxy', // Usually your repo name.
trailingSlash: false,
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/keshavdv/unifi-cam-proxy/tree/main/docs/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'unifi-cam-proxy',
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'Docs',
},
{
href: 'https://github.com/keshavdv/unifi-cam-proxy',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/keshavdv/unifi-cam-proxy',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Keshav Varma. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;