2023-02-08 19:53:58 +01:00
// @ts-check
2023-01-25 22:04:35 +01:00
// 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' ,
2024-11-07 23:19:23 +01:00
staticDirectories : [ 'static' , '../docs/images' , '../docker/compose' , '../etc/caddy' ] ,
2023-01-25 22:04:35 +01:00
tagline : 'Globally distributed reverse proxy' ,
2023-02-11 03:15:54 +01:00
url : 'https://docs.zrok.io' ,
2023-01-25 22:04:35 +01:00
baseUrl : '/' ,
2023-02-11 03:52:53 +01:00
trailingSlash : true ,
2023-01-25 22:04:35 +01:00
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 : [
2023-07-27 17:15:08 +02:00
[
'@docusaurus/plugin-client-redirects' ,
{
redirects : [
2024-04-23 20:33:41 +02:00
{
to : '/docs/guides/self-hosting/linux' ,
from : [ '/docs/guides/self-hosting/self_hosting_guide' ] ,
} ,
2024-05-03 16:33:13 +02:00
{
to : '/docs/guides/self-hosting/linux/nginx' ,
from : [ '/docs/guides/self-hosting/nginx_tls_guide/' ]
} ,
2023-07-27 17:15:08 +02:00
{
to : '/docs/guides/self-hosting/metrics-and-limits/configuring-limits' ,
from : [ '/docs/guides/metrics-and-limits/configuring-limits' ] ,
} ,
{
to : '/docs/guides/self-hosting/metrics-and-limits/configuring-metrics' ,
from : [ '/docs/guides/metrics-and-limits/configuring-metrics' ] ,
}
]
}
2023-11-28 21:28:46 +01:00
] ,
function myPlugin ( context , options ) {
return {
name : 'custom-webpack-plugin' ,
configureWebpack ( config , isServer , utils ) {
return {
module : {
rules : [
{
test : /\.yaml$/ ,
use : 'yaml-loader' ,
} ,
] ,
} ,
} ;
} ,
} ;
} ,
2023-01-25 22:04:35 +01:00
] ,
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 :
2023-02-08 19:51:05 +01:00
'https://github.com/openziti/zrok/blob/main/docs' ,
2023-01-27 17:42:58 +01:00
path : '../docs' ,
2023-01-28 04:22:08 +01:00
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
} ,
2024-01-23 20:35:53 +01:00
googleTagManager : {
containerId : 'GTM-MDFLZPK8' ,
2023-10-12 16:24:17 +02:00
} ,
2023-01-25 22:04:35 +01:00
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' ,
2023-02-03 02:01:35 +01:00
href : 'https://zrok.io' ,
target : '_self' ,
2023-01-25 22:04:35 +01:00
} ,
items : [
{
2024-08-30 21:54:36 +02:00
href : 'https://zrok.io/pricing/' ,
2023-01-29 20:28:30 +01:00
position : 'right' ,
2024-08-30 21:54:36 +02:00
label : 'pricing' ,
} ,
{
href : 'https://myzrok.io/' ,
position : 'right' ,
label : 'account' ,
2023-01-29 20:28:30 +01:00
} ,
2023-02-03 01:41:08 +01:00
{
href : 'https://github.com/orgs/openziti/projects/16' ,
2024-08-30 21:54:36 +02:00
label : 'roadmap' ,
2023-02-03 01:41:08 +01:00
position : 'right' ,
} ,
2023-01-25 22:04:35 +01:00
{
href : 'https://github.com/openziti/zrok' ,
position : 'right' ,
2024-08-30 21:54:36 +02:00
className : 'header-github-link' ,
title : 'GitHub'
} ,
{
href : 'https://openziti.discourse.group/' ,
position : 'right' ,
className : 'header-discourse-link' ,
title : 'Discourse'
2023-01-25 22:04:35 +01:00
} ,
] ,
} ,
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-02-06 19:07:55 +01:00
algolia : {
// The application ID provided by Algolia
appId : 'CO73R59OLO' ,
// Public API key: it is safe to commit it
apiKey : '489572e91d0a750d34c127c2071ef962' ,
indexName : 'zrok' ,
// Optional: see doc section below
contextualSearch : true ,
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
// externalUrlRegex: 'external\\.example\\.com|thirdparty\\.example\\.com',
// Optional: Algolia search parameters
searchParameters : { } ,
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath : 'search' ,
//... other Algolia params
} ,
2023-01-25 22:04:35 +01:00
} ) ,
} ;
module . exports = config ;