-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
227 lines (214 loc) · 7.57 KB
/
Copy pathdocusaurus.config.ts
File metadata and controls
227 lines (214 loc) · 7.57 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
222
223
224
225
226
227
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'NOMANA-IT',
tagline: 'Documentation, Blog and Resources',
favicon: 'assets/nomana-hires.svg',
future: {
v4: true,
},
url: 'https://docs.nomana-it.fr',
baseUrl: '/',
trailingSlash: true,
organizationName: 'fblettner',
projectName: 'fblettner.github.io',
onBrokenLinks: 'warn',
markdown: {
hooks: {
onBrokenMarkdownLinks: 'warn',
},
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
clientModules: [require.resolve('./src/clientModules/externalSidebarLinks')],
i18n: {
defaultLocale: 'en',
locales: ['en', 'fr'],
localeConfigs: {
en: {label: 'English'},
fr: {label: 'Français'},
},
},
presets: [
[
'classic',
{
docs: {
path: 'docs',
routeBasePath: '/',
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/fblettner/fblettner.github.io/edit/main/',
showLastUpdateTime: true,
},
blog: {
path: 'blog',
routeBasePath: 'blog',
blogSidebarCount: 'ALL',
showReadingTime: true,
editUrl: 'https://github.com/fblettner/fblettner.github.io/edit/main/',
feedOptions: {
type: ['rss', 'atom'],
xslt: true,
},
onInlineTags: 'warn',
onInlineAuthors: 'warn',
onUntruncatedBlogPosts: 'warn',
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
image: 'assets/nomana-banner.png',
algolia: {
appId: '38HKOO4IUZ',
// Search-only API key — public by design, safe to commit.
apiKey: 'a31b51a7cc6767e51ad606c3d17b4bd0',
indexName: 'docs.nomana-it.fr',
// Filters results to the visitor's current language (en / fr) and version.
contextualSearch: true,
},
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: false,
disableSwitch: false,
},
docs: {
sidebar: {
hideable: true,
autoCollapseCategories: true,
},
},
navbar: {
title: 'Nomana-IT',
logo: {
alt: 'Nomana-IT',
src: 'assets/nomana-badge.svg',
},
items: [
{type: 'docSidebar', sidebarId: 'libertySidebar', position: 'left', label: 'Liberty'},
{type: 'docSidebar', sidebarId: 'nomaflowSidebar', position: 'left', label: 'Nomaflow'},
{type: 'docSidebar', sidebarId: 'nomasx1Sidebar', position: 'left', label: 'Nomasx-1'},
{type: 'docSidebar', sidebarId: 'nomajdeSidebar', position: 'left', label: 'Nomajde'},
{type: 'docSidebar', sidebarId: 'nomaublSidebar', position: 'left', label: 'NomaUBL'},
{type: 'docSidebar', sidebarId: 'apiSidebar', position: 'left', label: 'API'},
{to: '/blog', label: 'Blog', position: 'left'},
{type: 'localeDropdown', position: 'right'},
{
href: 'https://github.com/fblettner',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub',
},
],
},
footer: {
style: 'dark',
links: [
{label: 'NOMANA-IT', href: 'https://nomana-it.fr'},
{label: 'GitHub', href: 'https://github.com/fblettner'},
{label: 'LinkedIn', href: 'https://www.linkedin.com/in/franck-blettner-72509510/'},
{label: 'Sponsor', href: 'https://github.com/sponsors/fblettner'},
{label: 'Cookies', to: '/cookies'},
],
copyright: `Copyright © ${new Date().getFullYear()} Nomana-IT. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['ini', 'bash', 'json', 'yaml', 'sql', 'java', 'tsx', 'jsx'],
},
metadata: [
{name: 'description', content: 'NOMANA-IT documentation, blog and resources covering Liberty Framework, NomaUBL, JD Edwards and BI Publisher.'},
{name: 'keywords', content: 'NOMANA-IT, Liberty Framework, NomaUBL, JD Edwards, EnterpriseOne, BI Publisher, e-invoicing, UBL, Factur-X, Plateforme Agréée, no-code, React, FastAPI, PostgreSQL, AIS, Oracle, documentation'},
{name: 'author', content: 'Franck Blettner — NOMANA-IT'},
{name: 'twitter:card', content: 'summary_large_image'},
{name: 'twitter:site', content: '@fblettner'},
{property: 'og:type', content: 'website'},
{property: 'og:site_name', content: 'NOMANA-IT Documentation'},
],
} satisfies Preset.ThemeConfig,
// Google Analytics 4 (G-9JB6CXWE4K) is loaded by src/components/CookieConsent
// ONLY after the user grants explicit consent — required by CNIL. The
// canonical @docusaurus/plugin-google-gtag plugin is intentionally NOT used
// because it injects gtag.js unconditionally on every page load.
customFields: {
gaTrackingId: 'G-9JB6CXWE4K',
},
plugins: [
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
// 2026.05.0 — Processing pages consolidated into a single Process Document page.
{from: '/nomaubl/processing/xml', to: '/nomaubl/processing/document'},
{from: '/nomaubl/processing/ubl', to: '/nomaubl/processing/document'},
// 2026.05.0 — Documents editor moved from Configuration to Management.
{from: '/nomaubl/configuration/documents', to: '/nomaubl/management/documents'},
// 2026.05.4 — Notifications inbox promoted from Management to Application (primary nav).
{from: '/nomaubl/management/notifications', to: '/nomaubl/application/notifications'},
],
},
],
// Suppress the harmless webpack warning emitted by `vscode-languageserver-types`,
// pulled in transitively by `@docusaurus/theme-mermaid` → mermaid → langium.
// The module uses a UMD pattern that webpack cannot statically analyse;
// the runtime is unaffected.
() => ({
name: 'webpack-ignore-warnings',
configureWebpack: () => ({
ignoreWarnings: [{module: /vscode-languageserver-types/}],
}),
}),
],
headTags: [
{
tagName: 'meta',
attributes: {
'http-equiv': 'Content-Security-Policy',
content: "frame-ancestors 'self' https://giscus.app;",
},
},
{
tagName: 'link',
attributes: {rel: 'preconnect', href: 'https://giscus.app'},
},
{
tagName: 'script',
attributes: {type: 'application/ld+json'},
innerHTML: JSON.stringify({
'@context': 'https://schema.org',
'@type': 'Organization',
name: 'NOMANA-IT',
url: 'https://docs.nomana-it.fr',
logo: 'https://docs.nomana-it.fr/assets/nomana-icon-512.png',
sameAs: [
'https://nomana-it.fr',
'https://github.com/fblettner',
'https://www.linkedin.com/in/franck-blettner-72509510/',
],
founder: {'@type': 'Person', name: 'Franck Blettner'},
}),
},
{
tagName: 'script',
attributes: {type: 'application/ld+json'},
innerHTML: JSON.stringify({
'@context': 'https://schema.org',
'@type': 'WebSite',
name: 'NOMANA-IT Documentation',
url: 'https://docs.nomana-it.fr',
inLanguage: ['en', 'fr'],
potentialAction: {
'@type': 'SearchAction',
target: 'https://docs.nomana-it.fr/search?q={search_term_string}',
'query-input': 'required name=search_term_string',
},
}),
},
],
};
export default config;