-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathzudoku.config.tsx
97 lines (95 loc) · 2.17 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
import type { ZudokuConfig } from "zudoku";
import { devPortal, docs, policies, programming } from "./sidebar.js";
import { mdxComponents } from "./src/components.js";
import { diagramPlugin } from "./src/diagrams/common/plugin.js";
import { HeadNavigation } from "./src/HeadNavigation";
import rehypeStaticImages from "./src/mdx/static-images.js";
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%",
primaryForeground: "#ffffff",
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%",
},
},
// Temporary hack to inject CSS: https://github.com/zuplo/zudoku/issues/473
plugins: [diagramPlugin()],
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",
exclude: ["/", ""],
},
build: {
rehypePlugins: [rehypeStaticImages],
},
};
export default config;