-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththeme.config.js
More file actions
115 lines (112 loc) · 4.02 KB
/
Copy paththeme.config.js
File metadata and controls
115 lines (112 loc) · 4.02 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import { useRouter } from "next/router";
import Footer from "./components/Footer";
import Logo from "./components/Logo";
const FEEDBACK_LINK_WITH_TRANSLATIONS = {
"en-US": "Question? Give us feedback →",
"es-ES": "Apórtanos feedback →"
};
export default {
projectLink: 'https://github.com/oas-tools', // GitHub link in the navbar
docsRepositoryBase: 'https://github.com/oas-tools/oas-tools.github.io/blob/main/pages', // base URL for the docs repository
titleSuffix: ' – OAS Tools',
search: true,
unstable_flexsearch: true,
defaultMenuCollapsed: true,
floatTOC: true,
nextLinks: true,
prevLinks: true,
darkMode: true,
footer: true,
footerEditLink: ({ locale }) => {
switch (locale) {
case "es-ES":
return "Edite esta página en GitHub →";
default:
return "Edit this page on GitHub →";
}
},
// i18n: [
// { locale: 'en-US', text: 'English' },
// { locale: 'es-ES', text: 'Español' }
// ],
feedbackLabels: "feedback",
feedbackLink: () => {
const { locale } = useRouter();
return (
FEEDBACK_LINK_WITH_TRANSLATIONS[locale] ||
FEEDBACK_LINK_WITH_TRANSLATIONS["en-US"]
);
},
footerText: (locale) => Footer(locale),
logo: () => {
return (
<>
<Logo size={35} />
<span
className="mx-4 font-extrabold hidden md:inline select-none"
title={"OAS Tools: A NodeJS OpenAPI Framework"}
>
OAS TOOLS
</span>
<span className="text-gray-500 font-normal hidden md:inline">
A NodeJS OpenAPI framework
</span>
</>
);
},
head: (
<>
{/* Favicons, meta */}
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png"/>
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png"/>
<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png"/>
<link rel="manifest" href="/favicon/site.webmanifest"/>
<link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="#5bbad5"/>
<link rel="shortcut icon" href="/favicon/favicon.ico"/>
<meta name="msapplication-TileColor" content="#ffffff"/>
<meta name="msapplication-config" content="/favicon/browserconfig.xml"/>
<meta name="theme-color" content="#ffffff"></meta>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta httpEquiv="Content-Language" content="en" />
<meta name="description" content="OAS Tools: A NodeJS OpenAPI framework" />
<meta name="og:description" content="OAS Tools: A NodeJS OpenAPI framework" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://oas-tools.github.io/public/img/og-image.png" />
<meta name="twitter:site:domain" content="oas-tools.github.io" />
<meta name="twitter:url" content="https://oas-tools.github.io" />
<meta name="og:title" content="OAS Tools: A NodeJS OpenAPI framework" />
<meta name="og:image" content="https://oas-tools.github.io/public/img/og-image.png" />
<meta name="apple-mobile-web-app-title" content="OAS Tools" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-icon-180x180.png"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="/android-icon-192x192.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="/favicon-96x96.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/>
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png" />
</>
)
}