-
Notifications
You must be signed in to change notification settings - Fork 91
/
vocs.config.ts
127 lines (125 loc) · 2.91 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
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
import { defineConfig } from "vocs";
import { routes } from "./routes";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
// Shiki currently does not support cairo
// We temporarily use shiki fine grained bundle with custom cairo grammar
// This require custom highlighter, and patch of vocs to remove initial shiki instance
export default defineConfig({
iconUrl: "/svg/Icon_Light.svg",
// iconUrl: {
// light: "/svg/Icon_Light.svg",
// dark: "/svg/Icon_Dark.svg",
// },
logoUrl: {
light: "/svg/Horizontal_Light.svg",
dark: "/svg/Horizontal_Dark.svg",
},
title: "Starknet by Example",
rootDir: ".",
sidebar: routes,
editLink: {
text: "Contribute",
pattern:
"https://github.com/NethermindEth/StarknetByExample/edit/dev/pages/:path",
},
socials: [
{
icon: "github",
link: "https://github.com/NethermindEth/StarknetByExample",
},
{
icon: "telegram",
link: "https://t.me/StarknetByExample",
},
{
icon: "x",
link: "https://x.com/nethermindstark",
},
],
sponsors: [
{
name: "Powered by",
height: 60,
items: [
[
{
name: "Nethermind",
link: "https://www.nethermind.io/",
image: "/collaborators/Nethermind.svg",
},
],
[
{
name: "Starknet",
link: "https://www.starknet.io",
image: "/collaborators/Starknet.svg",
},
{
name: "Onlydust",
link: "https://app.onlydust.com/p/starknet-by-example",
image: "/collaborators/Onlydust.svg",
},
],
],
},
{
name: "Ecosystem toolings",
items: [
[
{
name: "Voyager",
link: "https://voyager.online",
image: "/collaborators/Voyager.svg",
},
],
[
{
name: "Starknet RPC",
link: "https://data.voyager.online",
image: "/collaborators/Starknet_RPC.svg",
},
{
name: "Juno",
link: "https://github.com/NethermindEth/juno",
image: "/collaborators/Juno.svg",
},
{
name: "Starknet Remix Plugin",
link: "https://remix.ethereum.org/?#activate=Starknet",
image: "/collaborators/Starknet_Remix_Plugin.svg",
},
],
],
},
],
// Theme configuration
theme: {
accentColor: {
dark: "#ff3000",
light: "#ff3000",
},
},
font: {
google: "DM Sans",
},
markdown: {
code: {
themes: {
light: "github-light",
dark: "github-dark-dimmed",
},
},
remarkPlugins: [remarkMath],
rehypePlugins: [
[
rehypeKatex,
{
strict: false,
displayMode: false,
output: "mathml",
},
],
],
},
});