vocs.config.tsx 2.5 K raw
1
import { defineConfig } from "vocs";
2
3
export default defineConfig({
4
	title: "bhvr",
5
	baseUrl: "https://bhvr.dev",
6
	description: "A stack made for the open web",
7
	iconUrl: "/icon.png",
8
	logoUrl: {
9
		dark: "/logo-dark.svg",
10
		light: "/logo-light.svg",
11
	},
12
	ogImageUrl: "/og.png",
13
	head({ path }) {
14
		const fcData = JSON.stringify({
15
			version: "next",
16
			imageUrl: "https://bhvr.dev/image.png",
17
			button: {
18
				title: "bhvr",
19
				action: {
20
					type: "launch_frame",
21
					name: "bhvr",
22
					url: `https://bhvr.dev${path}`,
23
					splashImageUrl: "https://bhvr.dev/splash.png",
24
					splashBackgroundColor: "#121113",
25
				},
26
			},
27
		});
28
		return <meta name="fc:frame" content={fcData} />;
29
	},
30
	socials: [
31
		{
32
			icon: "github",
33
			link: "https://github.com/stevedylandev/bhvr",
34
		},
35
	],
36
	markdown: {
37
		code: {
38
			themes: {
39
				light: "vitesse-light",
40
				dark: "vitesse-dark",
41
			},
42
		},
43
	},
44
	theme: {
45
		colorScheme: "dark",
46
		accentColor: "#BD976A",
47
	},
48
	editLink: {
49
		pattern:
50
			"https://github.com/stevedylandev/bhvr-docs/edit/main/docs/pages/:path",
51
		text: "Edit on GitHub",
52
	},
53
	topNav: [
54
		{
55
			text: "0.4.0",
56
			items: [
57
				{ text: "Contribute", link: "https://github.com/stevedylandev/bhvr" },
58
			],
59
		},
60
	],
61
	sidebar: [
62
		{
63
			text: "Getting Started",
64
			link: "/getting-started",
65
		},
66
		{
67
			text: "Why bhvr?",
68
			link: "/why-bhvr",
69
		},
70
		{
71
			text: "Packages",
72
			collapsed: false,
73
			items: [
74
				{
75
					text: "server",
76
					link: "/packages/server",
77
				},
78
				{
79
					text: "client",
80
					link: "/packages/client",
81
				},
82
				{
83
					text: "shared",
84
					link: "/packages/shared",
85
				},
86
			],
87
		},
88
		{
89
			text: "Deployment",
90
			collapsed: false,
91
			items: [
92
				{
93
					text: "Client",
94
					collapsed: true,
95
					items: [
96
						{
97
							text: "Cloudflare Pages",
98
							link: "/deployment/client/cloudflare-pages",
99
						},
100
						{
101
							text: "GitHub Pages",
102
							link: "/deployment/client/github-pages",
103
						},
104
						{
105
							text: "Netlify",
106
							link: "/deployment/client/netlify",
107
						},
108
					],
109
				},
110
				{
111
					text: "Server",
112
					collapsed: true,
113
					items: [
114
						{
115
							text: "Cloudflare Workers",
116
							link: "/deployment/server/cloudflare-workers",
117
						},
118
						{
119
							text: "Railway",
120
							link: "/deployment/server/railway",
121
						},
122
					],
123
				},
124
				{
125
					text: "Single Origin",
126
					collapsed: true,
127
					items: [
128
						{
129
							text: "Cloudflare",
130
							link: "/deployment/single-origin/cloudflare",
131
						},
132
						{
133
							text: "VPS / Docker",
134
							link: "/deployment/single-origin/vps-docker",
135
						},
136
					],
137
				},
138
			],
139
		},
140
	],
141
});