forked from authzed/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
133 lines (132 loc) · 3.51 KB
/
docusaurus.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
const env = (envvar, fallback) => typeof process.env[envvar] !== 'undefined' ? process.env[envvar] : fallback;
module.exports = {
title: 'authzed',
tagline:
'Documentation for Authzed, the planet-scale, serverless database platform for SpiceDB.',
favicon: 'img/favicon.svg',
url: 'https://authzed.com',
baseUrl: '/docs/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
staticDirectories: ['static'],
customFields: {
amplitudeApiKey: env('AMPLITUDE_API_KEY', ''),
},
themeConfig: {
announcementBar: {
id: 'github_star',
content:
'<a href="https://zanzibar.tech" target="_blank" style="text-decoration:none; display:inline-block;"><strong>The Zanzibar Paper, annotated by AuthZed</strong> 📰 <span style="display: inline-block">Read the seminal paper with expert commentary.</span></a>',
backgroundColor: '#842743',
textColor: '#fff',
isCloseable: false,
},
colorMode: {
disableSwitch: true,
respectPrefersColorScheme: true,
},
docs: {
sidebar: {
hideable: false,
},
},
navbar: {
title: '',
logo: {
alt: 'authzed',
src: 'img/authzed-logo.svg',
},
items: [
{
to: '/',
label: 'Documentation',
position: 'left',
},
{
to: 'https://play.authzed.com',
label: 'Playground',
position: 'left',
},
{
to: 'https://app.authzed.com',
label: 'Authzed Dashboard',
position: 'left',
},
{
to: 'https://github.com/authzed/spicedb',
position: 'right',
className: 'header-github-link',
},
{
to: 'https://authzed.com/discord',
position: 'right',
className: 'header-discord-link',
},
{
to: 'https://twitter.com/authzed',
position: 'right',
className: 'header-twitter-link',
},
],
},
footer: {
style: 'dark',
links: [],
copyright: `© ${new Date().getFullYear()} Authzed. All rights reserved.`,
},
algolia: {
appId: env('ALGOLIA_APP_ID', 'test'),
apiKey: env('ALGOLIA_API_KEY', 'test'),
indexName: env('ALGOLIA_INDEX', 'test'),
contextualSearch: true,
searchParameters: {},
},
},
plugins: [
'./webpack-fallbacks-plugin',
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{ to: '/reference/clients', from: '/reference/zed' },
{
to: '/reference/glossary',
from: [
'/authz/abac',
'/authz/acl-filtering',
'/authz/authn-authz',
'/authz/new-enemy',
'/authz/oidc',
'/authz/policy-engine',
'/authz/rbac',
'/authz/what-else',
'/concepts/authz',
'/concepts/terminology',
],
},
],
},
],
],
presets: [
[
'@docusaurus/preset-classic',
{
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/authzed/docs/edit/main',
},
googleAnalytics: {
trackingID: env('GOOGLE_ANALYTICS_UA', 'UA-faketest'),
},
sitemap: { changefreq: 'daily' },
blog: false,
pages: false,
},
],
],
};