Repository navigation
Expand file tree
/
Copy paththeme.config.jsx
More file actions
110 lines (108 loc) · 6.71 KB
/
Copy paththeme.config.jsx
File metadata and controls
110 lines (108 loc) · 6.71 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
import { ThemeSwitch, FileTree, useConfig } from 'nextra-theme-docs'
import { useRouter } from 'next/router'
import meta from './src/content/_meta.ts'
import hubMeta from './src/content/hub/_meta.ts'
import communityMeta from './src/content/community/_meta.ts'
import knowledgeMeta from './src/content/knowledge-hub/_meta.ts'
// import Footer from './components/Footer'
const level2Meta = {
'hub': hubMeta,
'community': communityMeta,
'knowledge-hub': knowledgeMeta,
}
export default {
// project: {
// link: 'https://github.com/Azuro-protocol',
// },
// docsRepositoryBase: 'https://github.com/Azuro-protocol/gem-docs/tree/main',
// banner: {
// key: 'tutorial',
// text: <a href="/guides/tutorial">💎 Tutorial: Build your own betting dApp. Read more →</a>,
// },
// sidebar: {
// defaultMenuCollapseLevel: 1,
// toggleButton: false,
// },
// head() {
// const config = useConfig()
// const { asPath } = useRouter()
// const [ , level1, level2 ] = asPath.split('/')
//
// const level1Title = meta[level1]?.title
//
// const title = [
// config.title?.replace('Index', ''),
// level2Meta[level1]?.[level2]?.title,
// level1Title,
// 'Azuro Gem',
// ].filter(Boolean).join(' | ')
//
// return (
// <>
// <title>{title}</title>
// <meta property="og:title" content={title} />
// <meta name="viewport" content="width=device-width, initial-scale=1.0" />
// <meta property="og:title" content="Azuro Protocol" />
// <meta property="og:description" content="Azuro Documentation" />
// <link rel="icon" href="/favicon/favicon.svg" type="image/svg+xml" />
// <link rel="icon" href="/favicon/favicon-32x32.png" type="image/png" />
// {/*<link*/}
// {/* rel="icon"*/}
// {/* href="/favicon-dark.svg"*/}
// {/* type="image/svg+xml"*/}
// {/* media="(prefers-color-scheme: dark)"*/}
// {/*/>*/}
// {/*<link*/}
// {/* rel="icon"*/}
// {/* href="/favicon-dark.png"*/}
// {/* type="image/png"*/}
// {/* media="(prefers-color-scheme: dark)"*/}
// {/*/>*/}
// </>
// )
// },
// logo: (
// <svg xmlns="http://www.w3.org/2000/svg" xmlSpace="preserve" id="Layer_1" x="0" y="0" style={{width: '180px'}} version="1.1" viewBox="0 0 725 145" fill="currentColor" >
// <linearGradient id="SVGID_1_" x1="1.426" x2="142.929" y1="88.159" y2="58.294" gradientTransform="matrix(1 0 0 -1 0 146)" gradientUnits="userSpaceOnUse"><stop offset=".4" style={{stopColor: "#3d67ff"}} />
// <stop offset="1" style={{stopColor: "#2241a9"}} />
// </linearGradient><path d="M134.5 100.2c-2.1-4.4-4-8.8-6.3-13.1-2.3-4.2-5.9-7.5-7.9-11.8-2-4.2-3-8.8-5.5-12.8-2.6-4.2-6.3-7.5-9.2-11.5-2.9-4-4.8-8.5-6.7-13-1.9-4.4-4.2-8-7.3-11.5C84.5 18.6 79 9.7 74.5.1 54.2.7 36.6 7.8 22.3 21.2 7.5 35.1 0 52.4 0 72.5S7.5 110 22.3 124l.1.1C37.3 138 55.9 145 77.4 145s40.1-7 55.1-20.9c3.8-3.6 7.2-7.4 10.1-11.4-3.2-3.9-6-8-8.1-12.5zm-38.2-9.5c-5.1 4.7-11.2 7-18.9 7-7.6 0-13.8-2.3-18.8-7-4.9-4.7-7.3-10.7-7.3-18.2s2.4-13.5 7.3-18.2c5.1-4.7 11.2-7 18.8-7 7.6 0 13.8 2.3 18.9 7 5.1 4.7 7.5 10.7 7.5 18.2s-2.4 13.5-7.5 18.2z" style={{fill: "url(#SVGID_1_)"}} />
// <linearGradient id="SVGID_00000108271445164040417510000012145836561144115883_" x1="56.28" x2="207.528" y1="129.553" y2="18.743" gradientTransform="matrix(1 0 0 -1 0 146)" gradientUnits="userSpaceOnUse">
// <stop offset=".265" style={{stopColor: "#3d67ff"}} /><stop offset="1" style={{stopColor: "#86c0fb"}} />
// </linearGradient>
// <path d="M212 118.5c0-6-.1-9.1 0-15.1 0-2.5-.9-4-2.2-5.2-1.3-1.2-5.3-1.9-6-2-15.3-3.1-23.2-10.6-32.1-23.4-10.4-14.9-18.9-31.2-30.7-45C130.9 16 118.2 6.8 103 3 94.2.8 85.3 0 76.2 0 45.6-.5 26.3 17.4 22.3 21.2c0 4.5 1.3 8.1 3.2 11.2s4.2 5.9 6.4 8.8c2 2.6 3.8 5.4 4.8 8.8.6 1.9 1 4 1 6.4 0 1.3 32.2-9.8 38-9.1 12.8 0 19.8 4.4 27.2 12.2 11.1 11.5 18.2 25.9 27.2 39 13.1 19.2 30.3 38.5 53.9 44 8.6 2 11 2.5 19.8 2.5 3.9 0 8.3-2.8 8.3-7-.1-8.2-.1-11.4-.1-19.5z" style={{fill: "url(#SVGID_00000108271445164040417510000012145836561144115883_)"}} />
// <path d="M250.9 72c.1-16.7 7.3-33.4 21.1-42.8 12.9-8.8 31.6-11.4 45.7-3.7 5.6 3 10.1 6.8 13.4 11.3V24.6c0-1.1.9-2 2-2h21.2c1.1 0 2 .9 2 2v95.5c0 1.1-.9 2-2 2h-21.2c-1.1 0-2-.9-2-2v-12.5c-3.2 4.7-7.7 8.6-13.4 11.7-16.5 9-38.4 3.9-51.6-8.6-10.3-9.9-15.3-24.3-15.2-38.7zm77.3-.6c0-6.1-1.2-10.3-3.6-14.6-2.4-4.4-5.6-7.8-9.7-10.1-4.1-2.4-8.4-3.6-13.1-3.6s-8.9 1.1-12.9 3.4c-3.9 2.3-7.2 5.6-9.7 10.1-2.4 4.3-3.6 8.5-3.6 14.4s1.2 11.3 3.6 15.8c2.5 4.4 5.7 7.8 9.7 10.2 4.1 2.4 8.3 3.6 12.9 3.6 4.7 0 9-1.1 13.1-3.4 4.1-2.4 7.3-5.7 9.7-10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-25.9 6.3zm0-21.9c4.5 0 8.8-1.1 12.7-3.2 4.1-2.3 7.3-5.6 9.7-10.1 2.4-4.4 3.6-9.8 3.6-16.2 0-9.5-2.5-16.7-7.5-21.7-4.9-5.1-10.9-7.7-18.1-7.7-7.2 0-13.2 2.6-18.1 7.7-4.8 5-7.2 12.3-7.2 21.7 0 9.5 2.3 16.8 7 21.9 4.8 5.1 10.7 7.6 17.9 7.6z" />
// </svg>
// ),
// navbar: {
// extraContent: (
// <ThemeSwitch />
// ),
// },
// footer: {
// component: (
// <Footer />
// ),
// },
// useNextSeoProps() {
// const { asPath } = useRouter()
// const defaultTitle = 'Azuro Gem'
//
// if (asPath === '/') {
// return {
// title: defaultTitle,
// }
// }
//
// const [ , level1, level2 ] = asPath.split('/')
//
// const level1Title = meta[level1]?.title
// const titleTemplate = level1Title
// ? level2 ? `%s - ${level1Title} - ${defaultTitle}` : `${level1Title} - ${defaultTitle}`
// : `%s - ${defaultTitle}`
//
// return {
// titleTemplate,
// defaultTitle,
// }
// },
}