-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.config.tsx
100 lines (98 loc) · 2.67 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
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
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
import { useConfig } from 'nextra-theme-docs';
import ExplorerLogo from './components/ExplorerLogo';
const config: DocsThemeConfig = {
darkMode: false,
project: { link: 'https://github.com/commerce-docs/explorer' },
docsRepositoryBase: 'https://github.com/commerce-docs/explorer',
logo: ExplorerLogo,
head: function useHead() {
const { title } = useConfig();
return (
<>
<meta name="msapplication-TileColor" content="#fff" />
<meta name="theme-color" content="#fff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta
name="description"
content="Exploring Adobe Commerce Storefront APIs."
/>
<meta
name="og:description"
content="Exploring Adobe Commerce Storefront APIs."
/>
<meta
name="og:title"
content={title ? title + ' – Explorer' : 'Explorer'}
/>
<meta name="apple-mobile-web-app-title" content="Explorer" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="icon" href="/favicon.ico" 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)"
/>
</>
);
},
banner: {
key: 'commerce-explorer-banner',
text: (
<a
href="https://github.com/commerce-docs/explorer"
target="_blank"
rel="noreferrer"
>
🎉 Adobe Commerce API Explorer — Alpha 0.0.1 🎉
</a>
),
},
toc: {
float: true,
},
logoLink: false,
editLink: {
text: 'Edit this page on GitHub →',
},
feedback: {
content: 'Questions? Give us feedback →',
labels: 'feedback',
},
nextThemes: {
defaultTheme: 'light',
},
sidebar: {
titleComponent({ title, type }) {
if (type === 'separator') {
return <span className="cursor-default">{title}</span>;
}
return <>{title}</>;
},
defaultMenuCollapseLevel: 1,
toggleButton: true,
},
footer: {
text: (
<div className="flex w-full flex-col items-center sm:items-start">
<p className="mt-6 text-xs">
© {new Date().getFullYear()} Commerce Explorer Project.
</p>
</div>
),
},
i18n: [],
search: {
placeholder: 'Search documentation…',
},
};
export default config;