zrok/website/docusaurus.config.js

124 lines
3.0 KiB
JavaScript
Raw Normal View History

2023-01-25 22:04:35 +01: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: 'Zrok',
2023-01-27 17:42:58 +01:00
staticDirectories: ['static', '../docs/images'],
2023-01-25 22:04:35 +01:00
tagline: 'Globally distributed reverse proxy',
url: 'https://zrok.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/space-ziggy.png',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'NetFoundry', // Usually your GitHub org/user name.
projectName: 'zrok', // Usually your repo name.
// Even if you don't use internalization, 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'],
},
plugins: [
],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
2023-01-27 17:42:58 +01:00
sidebarPath: require.resolve('./sidebars.js'),
2023-01-25 22:04:35 +01:00
editUrl:
'https://github.com/openziti/zrok/tree/main/',
2023-01-27 17:42:58 +01:00
path: '../docs',
include: ['**/*.md', '**/*.mdx'],
2023-01-25 22:04:35 +01:00
},
theme: {
2023-01-27 17:42:58 +01:00
customCss: require.resolve('./src/css/custom.css'),
2023-01-25 22:04:35 +01:00
},
pages: {
2023-01-27 17:42:58 +01:00
path: './src/pages'
2023-01-25 22:04:35 +01:00
},
// googleAnalytics: {
//
// },
// gtag: {
//
// },
sitemap: {
}
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
2023-01-27 23:10:08 +01:00
title: 'zrok',
2023-01-25 22:04:35 +01:00
logo: {
alt: 'Ziggy Goes to Space',
src: 'img/space-ziggy.png',
},
items: [
{
type: 'doc',
2023-01-30 20:19:39 +01:00
docId: 'getting-started',
position: 'right',
label: 'What is zrok?',
},
{
type: 'doc',
2023-01-30 20:19:39 +01:00
docId: 'getting-started',
position: 'right',
2023-01-25 22:04:35 +01:00
label: 'Docs',
},
{
type: 'doc',
2023-01-29 21:54:27 +01:00
docId: 'downloads',
position: 'right',
label: 'Downloads',
},
2023-01-25 22:04:35 +01:00
{
href: 'https://github.com/openziti/zrok',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
],
copyright: `Copyright © ${new Date().getFullYear()} NetFoundry Inc. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
2023-01-27 23:10:08 +01:00
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: false,
},
2023-01-30 19:32:37 +01:00
docs: {
sidebar: {
autoCollapseCategories: true,
}
},
2023-01-25 22:04:35 +01:00
}),
};
module.exports = config;