-
Notifications
You must be signed in to change notification settings - Fork 28
/
zudoku.config.tsx
131 lines (125 loc) · 3.22 KB
/
zudoku.config.tsx
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
import { lazy, Suspense } from "react";
import type { ZudokuConfig } from "zudoku";
import { CogIcon, CopyIcon, FileTextIcon, ListEndIcon } from "zudoku/icons";
import { devPortal, docs, policies, programming } from "./sidebar.js";
import { BundlesTable } from "./src/BundlesTable";
import { DocusaurusDocsLicense } from "./src/DocusaurusDocsLicense";
import { EnterpriseFeature } from "./src/EnterpriseFeature";
import { GithubButton } from "./src/GithubButton";
import { HeadNavigation } from "./src/HeadNavigation";
import { PolicyOverview } from "./src/PolicyOverview";
import ZupIt from "./src/ZupIt.js";
import rehypeStaticImages from "./src/mdx/static-images.js";
const iconStyle = { display: "inline", verticalAlign: "-0.125em" };
const EmbeddedChat = lazy(() => import("./src/EmbeddedChat"));
const mdxComponents = {
Screenshot: (props: any) => <img {...props} />,
DocusaurusDocsLicense,
GithubButton,
ZupIt: (props: any) => <ZupIt {...props} />,
CodeEditorTabIcon: () => <FileTextIcon style={iconStyle} size={18} />,
SettingsTabIcon: () => <CogIcon style={iconStyle} size={18} />,
CopyIcon: () => <CopyIcon style={iconStyle} size={18} />,
EnvironmentVariablePicker: () => (
<ListEndIcon
style={{ display: "inline", verticalAlign: "-0.125em" }}
size={18}
/>
),
PolicyOverview,
EnterpriseFeature,
EmbeddedChat: () => {
if (typeof window === "undefined") return null;
return (
<Suspense fallback={<div>Loading…</div>}>
<EmbeddedChat />
</Suspense>
);
},
BundlesTable: () => <BundlesTable />,
};
const config: ZudokuConfig = {
basePath: "/docs",
page: {
pageTitle: "Zuplo Docs",
logoUrl: "https://portal.zuplo.com/zuplo.svg",
},
metadata: {
title: "%s - Zuplo Docs",
description: "Zuplo Documentation",
generator: "Zudoku",
favicon: "https://cdn.zuplo.com/www/favicon.svg",
},
redirects: [
{
from: "/",
to: "/articles/what-is-zuplo",
},
],
theme: {
dark: {
primary: "315.53 100% 50%",
background: "0 0% 0%",
border: "216 28.74% 17.06",
},
light: {
primary: "316 91% 45%",
background: "0 0 100%",
border: "220 13.04% 90.98%",
},
},
UNSAFE_slotlets: {
"head-navigation-start": HeadNavigation,
},
search: {
type: "inkeep",
apiKey: "499c156cf7a9798343949c8bb5665ac95e48132c6d68c42e",
integrationId: "clot3asdz0000s601nc8jwnzx",
organizationId: "org_dDOlt2uJlMWM8oIS",
primaryBrandColor: "#ff00bd",
organizationDisplayName: "Zuplo",
},
topNavigation: [
{
id: "docs",
label: "Documentation",
},
{
id: "policies",
label: "Policies & Handlers",
},
{
id: "programming",
label: "Programming API",
},
{
id: "api",
label: "REST API",
},
],
sidebar: {
docs,
policies,
programming,
devPortal,
},
mdx: {
components: mdxComponents,
},
apis: {
type: "file",
input: "./api.json",
navigationId: "api",
},
docs: [
{ files: "/docs/**/*.{md,mdx}" },
{ files: "/generated/**/*.{md,mdx}" },
],
sitemap: {
siteUrl: "https://zuplo.com/docs",
},
build: {
rehypePlugins: [rehypeStaticImages],
},
};
export default config;