-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy paththeme.config.jsx
57 lines (55 loc) · 2.96 KB
/
theme.config.jsx
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
import {useRouter} from "next/router";
import {useConfig} from 'nextra-theme-docs'
export default {
docsRepositoryBase: 'https://github.com/design-sparx/mantine-analytics-dashboard-docs',
useNextSeoProps() {
const {asPath} = useRouter()
if (asPath !== '/') {
return {
titleTemplate: '%s | DesignSparx'
}
}
},
head: () => {
const {asPath, defaultLocale, locale} = useRouter()
const {frontMatter} = useConfig()
const url =
'https://my-app.com' +
(defaultLocale === locale ? asPath : `/${locale}${asPath}`)
return (
<>
<link rel="apple-touch-icon" sizes="180x180" href="static/apple-touch-icon.png"/>
<link rel="icon" type="image/png" sizes="32x32" href="static/favicon-32x32.png"/>
<link rel="icon" type="image/png" sizes="16x16" href="static/favicon-16x16.png"/>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico"/>
<link rel="manifest" href="static/site.webmanifest"/>
<meta property="og:url" content={url}/>
<meta property="og:title" content={frontMatter.title || 'Design Sparx Docs'}/>
<meta
property="og:description"
content={frontMatter.description || 'Explore our versatile dashboard website template featuring a stunning array of themes and meticulously crafted components. Elevate your web project with seamless integration, customizable themes, and a rich variety of components for a dynamic user experience. Effortlessly bring your data to life with our intuitive dashboard template, designed to streamline development and captivate users. Discover endless possibilities in design and functionality today!'}
/>
<meta name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width"/>
<meta
name="description"
content="Explore our versatile dashboard website template featuring a stunning array of themes and meticulously crafted components. Elevate your web project with seamless integration, customizable themes, and a rich variety of components for a dynamic user experience. Effortlessly bring your data to life with our intuitive dashboard template, designed to streamline development and captivate users. Discover endless possibilities in design and functionality today!"/>
</>
)
},
project: {
link: 'https://github.com/design-sparx/mantine-analytics-dashboard-docs'
},
logo: (
<>
<img src="static/logo.png" alt="Design Sparx Docs" height={16} width={16} style={{objectFit: 'contain'}}/>
<span style={{marginLeft: '.4em', fontWeight: 800}}>
Design Sparx
</span>
</>
),
sidebar: {
toggleButton: true,
autoCollapse: true
},
editLink: false,
}