-
Notifications
You must be signed in to change notification settings - Fork 2
/
theme.config.tsx
94 lines (87 loc) · 3.13 KB
/
theme.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
import { Footer } from "@components/Footer/Footer";
import { useRouter } from "next/router";
import { DocsThemeConfig, useConfig } from "nextra-theme-docs";
const config: DocsThemeConfig = {
backgroundColor: {
dark: "17,17,17",
light: "255,255,255",
},
logo: (
<span>
<img
width={128}
src="https://github.com/wpbones/WPBones/assets/432181/13e0e825-9b0d-44c2-a77d-1baad88a1070"
alt="WP Bones Logo"
/>
</span>
),
project: {
link: "https://github.com/wpbones/website-docs",
},
head: function useHead() {
const { title } = useConfig();
const { route } = useRouter();
const socialCard = route === "/" || !title ? "https://wpbones.com/image.jpeg" : `https://wpbones.com/image.jpeg`;
return (
<>
<title>WP Bones</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
property="description"
content="WP Bones allows for WordPress plugins with Laravel-like features. It streamlines and modernizes WordPress plugin development."
/>
<meta
property="og:description"
content="WP Bones allows for WordPress plugins with Laravel-like features. It streamlines and modernizes WordPress plugin development."
/>
<meta property="twitter:title" content="WP Bones" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:image" content={socialCard}></meta>
<meta
property="twitter:description"
content="WP Bones allows for WordPress plugins with Laravel-like features. It streamlines and modernizes WordPress plugin development."
/>
<meta property="og:title" content={title ? title + " - WP Bones" : "WP Bones"} />
<meta property="og:url" content="https://wpbones.com/" />
<meta property="og:site_name" content="WP Bones" />
<meta property="og:image" content={socialCard} />
<meta name="apple-mobile-web-app-title" content="WP Bones" />
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
<style>
{`
body {
font-family: 'Poppins', sans-serif;
}
code, pre, kbdm samp {
font-family: 'Fira Code', Monaco, monospace !important;
font-size: 14px !important;
}
`}
</style>
</>
);
},
editLink: {
component: null,
},
chat: {
link: "https://discord.gg/5bdVyycU8F",
},
docsRepositoryBase: "https://github.com/wpbones/website-docs",
sidebar: {
defaultMenuCollapseLevel: 1,
toggleButton: true,
},
footer: {
component: <Footer />,
},
banner: {
key: "v1-9-0-released",
content: <a href="/docs/release-notes">🎄🎁 v1.9.0 Released - Review the release notes →</a>,
},
};
export default config;