-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
221 lines (211 loc) · 5.66 KB
/
docusaurus.config.ts
File metadata and controls
221 lines (211 loc) · 5.66 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
import { themes as prismThemes } from 'prism-react-renderer';
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'Documentation Cloud Temple',
tagline: 'Tout ce dont vous avez besoin pour tirer le meilleur parti des produits Cloud Temple. ',
favicon: 'img/favicon.ico',
onBrokenLinks: 'log',
// enable faster build time https://docusaurus.io/blog/releases/3.6
future: {
faster: true,
v4: true,
},
trailingSlash: false,
// Production URL of the documentation site
url: 'https://docs.cloud-temple.com',
// Default baseUrl for GitHub Pages deployment (/docs/ = repo name)
// Override with BASE_URL=/ environment variable for custom domain deployments
baseUrl: process.env.BASE_URL ?? "/docs/",
// GitHub repository config (used for "Edit this page" links)
organizationName: 'Cloud-Temple',
projectName: 'docs',
markdown: {
hooks: {
onBrokenMarkdownLinks: 'warn',
},
},
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'fr',
locales: ['en', 'fr', 'es', 'it', 'de'],
localeConfigs: {
en: {
htmlLang: 'en',
},
fr: {
htmlLang: 'fr',
},
es: {
htmlLang: 'es',
},
it: {
htmlLang: 'it',
},
de: {
htmlLang: 'de',
},
},
},
stylesheets: [
{
href: 'https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap',
type: 'text/css',
},
{
href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css',
type: 'text/css',
integrity:
'sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV',
crossorigin: 'anonymous',
},
],
plugins: [
[
require.resolve('docusaurus-plugin-search-local'),
{
// Options disponibles ici : https://github.com/gabrielcsapo/docusaurus-plugin-search-local
indexDocs: true,
indexPages: true,
highlightSearchTermsOnTargetPage: true,
docsRouteBasePath: '/',
},
],
],
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/', // Serve the docs at the site's root ("/docs/" by default)
sidebarPath: './sidebars.ts',
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/Cloud-Temple/docs/edit/dev/',
},
theme: {
customCss: './src/css/custom.css',
},
blog: false, // Optional: disable the blog plugin
sitemap: {
lastmod: 'date',
changefreq: 'weekly',
priority: 0.5,
filename: 'sitemap.xml',
},
},
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/logo.svg',
navbar: {
title: '',
logo: {
alt: 'Cloud Temple Logo',
src: 'img/logo.svg',
href: '/home'
},
items: [
{
href: 'https://github.com/Cloud-Temple/docs',
label: 'GitHub',
position: 'right',
},
{
type: 'localeDropdown',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Tools',
items: [
{
label: 'Status page',
href: 'https://status.cloud-temple.com/',
},
{
label: 'Tutorials',
to: '/tags/tutorials/',
},
{
label: 'Onboarding',
to: '/tags/onboarding/',
},
],
},
{
title: 'Community',
items: [
{
label: 'Linkedin',
href: 'https://www.linkedin.com/company/cloud-temple/',
},
{
label: 'GitHub',
href: 'https://github.com/cloud-temple',
},
{
label: 'Cloud Temple Web Site',
href: 'https://cloud-temple.com',
},
{
label: 'Cloud Temple Roadmap',
href: 'https://github.com/orgs/Cloud-Temple/projects/2',
}
],
},
{
title: 'Market Place',
items: [
{
label: 'UGAP',
to: '/market_place_public',
},
{
label: 'CAIH',
to: '/market_place_public',
},
],
},
{
title: 'Contractual',
items: [
{
label: 'Contractual Documents',
to: '/contracts',
},
{
label: 'Shared Responsibility Model',
to: '/shared-responsibility',
},
],
},
],
copyright: `
<div style="text-align: center;">
<a href="${process.env.BASE_URL ?? "/docs/"}contracts">Contracts</a> |
<a href="${process.env.BASE_URL ?? "/docs/"}privacy">Privacy Policy</a>
<br />
Copyright © 2026 Cloud Temple.
</div>
`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;