forked from dylan-sutton-chavez/edge-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.config.jsx
More file actions
32 lines (29 loc) · 1.06 KB
/
theme.config.jsx
File metadata and controls
32 lines (29 loc) · 1.06 KB
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
import { useConfig } from 'nextra-theme-docs'
const DEFAULT_DESCRIPTION = 'Edge Python — a sandboxed Python scripting language compiled to WebAssembly for the edge.'
// `head` as a function: emits per-page <title>, description, and favicon from frontmatter.
function Head() {
const { title, frontMatter } = useConfig()
return (
<>
<title>{title ? `${title} – Edge Python` : 'Edge Python'}</title>
<meta name="description" content={frontMatter.description || DEFAULT_DESCRIPTION} />
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg" />
</>
)
}
export default {
head: Head,
logo: <span style={{ fontWeight: 600 }}>Edge Python</span>,
project: {
link: 'https://github.com/dylan-sutton-chavez/edge-python',
},
docsRepositoryBase: 'https://github.com/dylan-sutton-chavez/edge-python/tree/main/docs',
color: {
hue: { dark: 204, light: 212 },
saturation: 100,
lightness: { dark: 55, light: 45 },
},
footer: {
content: 'Edge Python',
},
}