-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.config.tsx
More file actions
77 lines (74 loc) · 2.4 KB
/
theme.config.tsx
File metadata and controls
77 lines (74 loc) · 2.4 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
import { useRouter } from "next/router";
import { DocsThemeConfig, useConfig } from "nextra-theme-docs";
import LastUpdatedAt from "./components/LastUpdatedAt";
import { Logo } from "./components/Logo";
import { ProjectLogo } from "./components/ProjectLogo";
const config: DocsThemeConfig = {
logo: <Logo />,
project: { link: "https://neuromarket.online/", icon: <ProjectLogo /> },
docsRepositoryBase: "https://github.com/wbmeter/docs/tree/main/",
footer: {
text: "Нейромаркет — Документация © 2024 ",
},
primaryHue: 200,
primarySaturation: 255,
feedback: { content: null },
nextThemes: {
defaultTheme: "dark",
},
themeSwitch: {
useOptions: {
dark: "Темный",
light: "Светлый",
system: "Системный",
},
},
toc: {
title: "Содержание страницы",
},
useNextSeoProps: () => ({ titleTemplate: "%s — Нейромаркет" }),
head: () => {
const { asPath, defaultLocale, locale } = useRouter();
const { frontMatter } = useConfig();
const url =
"https://docs.neuromarket.online" +
(defaultLocale === locale ? asPath : `/${locale}${asPath}`);
return (
<>
<meta name="yandex-verification" content="711acae3e02f0067" />
<meta property="og:url" content={url} />
<meta
property="og:title"
content={frontMatter.title || "Нейромаркет — Документация"}
/>
<meta
property="og:description"
content={
frontMatter.description ||
"Инструкции по сервису внешней аналитики, телеграм-боту и расширению для рекламы на Wildberries"
}
/>
<link
rel="icon"
href="https://docs.neuromarket.online/favicon.ico"
type="image/x-icon"
></link>
<link rel="canonical" href={url}></link>
</>
);
},
banner: {
key: "questions-v2",
dismissible: false,
text: (
<a href="https://t.me/neuromarket_chat" target="_blank">
🎉 Не нашли ответ? Напишите нам →
</a>
),
},
darkMode: false,
editLink: { text: "Редактировать Страницу" },
search: { placeholder: "Поиск по документации" },
gitTimestamp: LastUpdatedAt,
};
export default config;