-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy paththeme.config.tsx
60 lines (57 loc) · 2.02 KB
/
theme.config.tsx
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
import React from 'react'
import Image from 'next/image'
import { DocsThemeConfig } from 'nextra-theme-docs'
import { BsDiscord } from 'react-icons/bs';
import { useRouter } from 'next/router';
import { useConfig } from 'nextra-theme-docs';
const config: DocsThemeConfig = {
logo: <span style={{display: "flex", alignItems: "center"}}><Image alt="logo" width={30} height={30} src="/docs/logo-400x400-rounded.png" /> <b>Pipeless</b></span>,
logoLink: 'https://pipeless.ai',
primaryHue: 297, // Equivalent to #701a75
project: {
link: 'https://github.com/pipeless-ai/pipeless',
},
chat: {
link: 'https://discord.gg/K2qxQ8uedG',
icon: <BsDiscord size={25} />
},
docsRepositoryBase: 'https://github.com/pipeless-ai/docs/tree/main',
footer: {
text: <p>Copyright © 2023 Pipeless, Inc.</p>,
},
search: {
loading: "Loading...",
},
head: () => {
const { asPath, defaultLocale, locale } = useRouter();
const { frontMatter } = useConfig();
const url =
'https://www.pipeless.ai' +
(defaultLocale === locale ? asPath : `/${locale}${asPath}`)
return (
<>
<meta property="og:url" content={url} />
<meta property="og:title" content={frontMatter.title || 'Pipeless Documentation'} />
<meta
property="og:description"
content={frontMatter.description || "Documentation about Pipeless, the computer vision framework"}
/>
<meta property="og:image" content="https://www.pipeless.ai/docs/logo-400x400-rounded.png" />
</>
)
},
useNextSeoProps() {
return {
titleTemplate: '%s – Pipeless'
}
},
banner: {
dismissible: false,
key: 'agents',
text: <a target="blank" href="https://agents.pipeless.ai"><p>🚀 <b>Pipeless Agents is live!</b> Create vision powered apps and automations effortlessly within seconds. <span style={{ textDecoration: "underline" }}>Click here to get started!</span></p></a>
},
sidebar: {
defaultMenuCollapseLevel: 1,
},
}
export default config