mirror of
https://github.com/openziti/zrok.git
synced 2024-11-21 23:53:19 +01:00
101 lines
2.5 KiB
JavaScript
101 lines
2.5 KiB
JavaScript
// @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',
|
|
staticDirectories: ['website/static', 'docs/images'],
|
|
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: {
|
|
sidebarPath: require.resolve('./website/sidebars.js'),
|
|
editUrl:
|
|
'https://github.com/openziti/zrok/tree/main/',
|
|
path: './docs',
|
|
},
|
|
theme: {
|
|
customCss: require.resolve('./website/src/css/custom.css'),
|
|
},
|
|
pages: {
|
|
path: './website/src/pages'
|
|
},
|
|
// googleAnalytics: {
|
|
//
|
|
// },
|
|
// gtag: {
|
|
//
|
|
// },
|
|
sitemap: {
|
|
|
|
}
|
|
}),
|
|
],
|
|
],
|
|
|
|
themeConfig:
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
({
|
|
navbar: {
|
|
title: 'Zrok',
|
|
logo: {
|
|
alt: 'Ziggy Goes to Space',
|
|
src: 'img/space-ziggy.png',
|
|
},
|
|
items: [
|
|
{
|
|
type: 'doc',
|
|
docId: 'index',
|
|
position: 'left',
|
|
label: 'Docs',
|
|
},
|
|
{
|
|
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,
|
|
},
|
|
}),
|
|
};
|
|
|
|
module.exports = config;
|