This repository was archived by the owner on Dec 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.config.tsx
More file actions
71 lines (66 loc) · 2.42 KB
/
theme.config.tsx
File metadata and controls
71 lines (66 loc) · 2.42 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
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import Image from 'next/image'
import Script from 'next/script'
import { GoogleAnalytics } from '@next/third-parties/google';
import { useRouter } from 'next/router';
const headProp = () => {
return (
<head>
<title>BetterIDEa Developer Docs</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="title" content="BetterIDEa Developer Docs" />
<meta
name="description"
content="BetterIDEa Developer Docs"
/>
<meta
property="og:description"
content={'BetterIDEa Developer Docs'}
/>
<meta property="og:image" content='assets/images/logo/main.svg' />
<meta property="og:url" content='https://ide.betteridea.dev' />
<meta property="og:title" content='BetterIDEa' />
<meta property="twitter:image" content="https://raw.githubusercontent.com/betteridea-dev/ide/main/app/public/logo.png"></meta>
<meta property="twitter:title" content="BetterIDEa Developer Docs"></meta>
<meta property="twitter:description" content="BetterIDEa Developer Docs"></meta>
{/* <Script
src="https://www.googletagmanager.com/gtag/js?id=G-V1XZ5N5L48"
strategy="afterInteractive"
/>
<Script id="google-analytics" strategy="afterInteractive">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){window.dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-V1XZ5N5L48');
`}
</Script> */}
</head>
)
}
const config: DocsThemeConfig = {
primaryHue: 101,
useNextSeoProps() {
const { asPath } = useRouter()
return {
defaultTitle: "BetterIDEa Developer Docs",
titleTemplate: asPath !== '/' ? "%s - BetterIDEa" : "BetterIDEa Docs",
}
},
logo: <><Image src="https://raw.githubusercontent.com/betteridea-dev/ide/main/next_app/public/icon.svg" alt="logo" height={20} width={20} /><span className='mx-2 font-bold'>BetterIDEa</span></>,
project: {
link: 'https://github.com/betteridea-dev',
},
chat: {
link: 'https://discord.gg/nm6VKUQBrA',
},
docsRepositoryBase: 'https://github.com/betteridea-dev/docs',
head: headProp,
main: ({ children }) => <>{children}<GoogleAnalytics gaId="G-DCC8YGZYSK" /></>,
footer: {
text: 'BetterIDEa Documentation',
},
faviconGlyph: "💡"
}
export default config