-
Notifications
You must be signed in to change notification settings - Fork 80
/
vocs.config.ts
93 lines (87 loc) · 2.49 KB
/
vocs.config.ts
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
import { defineConfig } from "vocs";
import svgr from "vite-plugin-svgr";
import { routes } from "./routes";
import { version } from "./package.json";
export default defineConfig({
title: "Dojo Documentation",
description:
"Dojo | A Toolchain for Building Provable Games and Applications",
iconUrl: "/dojo-favicon.svg",
logoUrl: "/dojo-icon.svg",
ogImageUrl:
"https://og-image.preview.cartridge.gg/api/og?logo=%https://www.dojoengine.org/dojo-icon.svg&title=%title&description=%description",
// Theme configuration
font: {
google: "Open Sans",
},
theme: {
colorScheme: "dark",
variables: {
color: {
textAccent: "#ee2d3f",
background: "#0c0c0c",
backgroundDark: "#121212",
noteBackground: "#1a1a1a",
},
},
},
// Navigation
sidebar: routes,
topNav: [
// { text: "Blog", link: "https://www.dojoengine.org/posts" },
{
text: `${version}`,
items: [
{
text: "Releases",
link: "https://github.com/dojoengine/dojo/releases",
},
{
text: "Changelog",
link: "https://github.com/dojoengine/dojo/releases",
},
{
text: "Contributing",
link: "https://github.com/dojoengine/dojo/blob/main/CONTRIBUTING.md",
},
],
},
],
// Social links and edit options
socials: [
{
icon: "github",
link: "https://github.com/dojoengine/dojo",
},
{
icon: "x",
link: "https://x.com/ohayo_dojo",
},
],
editLink: {
pattern:
"https://github.com/dojoengine/book/blob/main/docs/pages/:path",
text: "Edit on GitHub",
},
// Banner configuration
banner: {
dismissable: false,
backgroundColor: "red",
content: "Join us in [Discord](https://discord.gg/dojoengine)!",
height: "28px",
textColor: "white",
},
// Vite configuration
vite: {
plugins: [svgr()],
server: {
proxy: {
"/api": {
target: "https://website-production-bc1a.up.railway.app",
changeOrigin: true,
secure: false,
},
},
},
},
});