-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy paththeme.config.jsx
More file actions
95 lines (92 loc) · 2.71 KB
/
theme.config.jsx
File metadata and controls
95 lines (92 loc) · 2.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
import { useRouter } from 'next/router';
import { useConfig } from 'nextra-theme-docs';
import AlgoliaSearch from 'utils/docsearch';
const searchConfig = process.env.NEXT_PUBLIC_ALGOLIA_SEARCH === 'true' ? { component: AlgoliaSearch } : {}; // Leave it empty to use the default search
export default {
logo: (
<div>
<span className="mostlyai-logo">
<a href="https://mostly.ai">
<img src="/logo/MOSTLY.AI_logo_light_gradient.svg" alt="MOSTLY AI Logo - gradient" width={175} height={30} />
</a>
</span>
<span className="logo-separator">/</span>
<span className="mostlyai-docs-logo">
<a href="/">
<img src="/logo/docs-logo.svg" alt="MOSTLY AI Docs logo" width={60} height={30} />
</a>
</span>
<style jsx>{`
.mostlyai-logo a img {
display: inline-block;
margin: 0;
padding: 0;
margin-right: 10px;
}
.mostlyai-docs-logo a img {
display: inline-block;
margin: 0;
padding: 0;
margin-left: 10px;
}
.mostlyai-logo a:hover {
background: none;
}
.mostlyai-docs-logo a:hover {
background: none;
}
.logo-separator {
font-weight: 900;
color: lightgrey;
}
`}</style>
</div>
),
logoLink: false,
feedback: {
content: null,
},
editLink: false,
sidebar: {
defaultMenuCollapseLevel: 1,
},
toc: {
title: 'ON THIS PAGE',
},
navigation: {
prev: false,
next: false,
},
useNextSeoProps() {
return {
titleTemplate: '%s – MOSTLY AI Docs',
};
},
head: () => {
const { asPath } = useRouter();
const { frontMatter } = useConfig();
const url = 'https://docs.mostly.ai' + `${asPath}`;
return (
<>
<link rel="icon" type="image/x-icon" href="/favicon/MOSTLY-AI-Docs-favicon.svg" />
<link rel="canonical" href={url} />
<meta property="og:url" content={url} />
<meta property="og:title" content={frontMatter.title || 'MOSTLY AI Documentation'} />
<meta property="og:description" content={frontMatter.description || 'MOSTLY AI Documentation '} />
<meta property="og:image" content="/logo/mostly-ai-docs-social.png" />
<meta name="twitter:title" content={frontMatter.title || 'MOSTLY AI Documentation'} />
<meta name="twitter:description" content={frontMatter.description || 'MOSTLY AI Documentation'} />
<meta name="twitter:image" content="/logo/mostly-ai-docs-social.png" />
</>
);
},
footer: {
component: null,
},
nextThemes: {
defaultTheme: 'light',
},
gitTimestamp: null,
darkMode: false,
search: searchConfig,
};