-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.js
97 lines (88 loc) · 3.11 KB
/
theme.config.js
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
import GitHub from '@geist-ui/react-icons/github'
import { HeaderLogo } from './components/HeaderLogo'
import { Footer } from './components/Footer'
import { useConfig } from 'nextra-theme-docs'
const SOCIAL_CARD_IMAGE = '/images/social-card-legacy-logo.png'
/**
* @type {import('nextra-theme-docs').DocsThemeConfig}
*/
const config = {
logo: <HeaderLogo />,
docsRepositoryBase: 'https://github.com/soundxyz/docs/blob/main',
editLink: {
text: 'Edit this page on GitHub',
},
head: function useHead() {
const { title: pageTitle } = useConfig()
const title = `${pageTitle} – Sound.xyz`
return (
<>
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="theme-color" content="#ffffff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta name="apple-mobile-web-app-title" content="Sound Docs" />
<title>{title}</title>
{['og:site_name', 'og:title', 'twitter:title'].map((property) => (
<meta key={property} property={property} content={title} />
))}
{['description', 'og:description', 'twitter:description'].map((property) => (
<meta key={property} name={property} content={'Tools for empowering artists & collectors'} />
))}
<meta name="twitter:site:domain" content="www.sound.xyz" />
<meta name="twitter:url" content="https://www.sound.xyz" />
{/* OG Image */}
<meta name="twitter:image" content={SOCIAL_CARD_IMAGE} />
<meta property="og:image" content={SOCIAL_CARD_IMAGE} />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
{/* Fonts */}
<link rel="preload" href="/fonts/AcidGrotesk/AcidGrotesk-Medium.otf" as="font" crossOrigin="" type="font/otf" />
<link
rel="preload"
href="/fonts/AcidGrotesk/AcidGrotesk-Regular.otf"
as="font"
crossOrigin=""
type="font/otf"
/>
<link
rel="preload"
href="/fonts/NBArchitektNeue/NBArchitektNeueRegular.otf"
as="font"
crossOrigin=""
type="font/otf"
/>
<link
rel="preload"
href="/fonts/NBArchitektNeue/NBArchitektNeueBold.otf"
as="font"
crossOrigin=""
type="font/otf"
/>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
</>
)
},
project: {
link: 'https://github.com/soundxyz/',
icon: <GitHub />,
},
unstable_faviconGlyph: '✦',
sidebar: {
defaultMenuCollapsed: true,
},
font: false,
footer: {
component: <Footer />,
},
chat: {
icon: '',
},
}
export default config