Newer
Older
import type * as Preset from '@docusaurus/preset-classic'
import type { Config } from '@docusaurus/types'
import { themes as prismThemes } from 'prism-react-renderer'
const simplePlantUML = require('@akebifiky/remark-simple-plantuml')
const config: Config = {
title: 'Self-Data Documentation',
tagline:
'This documentation covers the technical aspects of projects developed by the Grandlyon',
favicon: 'img/favicon.ico',
// Set the production url of your site here
url: 'https://doc-self-data.apps.grandlyon.com/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'Métropole de Lyon', // Usually your GitHub org/user name.
projectName: 'self-data-doc', // Usually your repo name.
onBrokenLinks: 'throw',
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: 'en',
locales: ['en'],
},
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
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
plugins: [require.resolve('docusaurus-lunr-search')],
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://forge.grandlyon.com/web-et-numerique/factory/llle_project/self-data-technical-doc/-/blob/master/',
showLastUpdateTime: true,
remarkPlugins: [simplePlantUML],
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Self-Data Documentation',
logo: {
alt: 'Self-data logo',
src: 'img/docshome.png',
},
items: [
{ to: '/', label: 'Intro' },
// {
// type: 'docSidebar',
// // sidebarId: 'ecolyoSidebar',
// position: 'left',
// label: 'Ecolyo',
// },
{ to: '/docs/getting-started/setup', label: 'Getting started' },
{ to: '/docs/ecolyo/', label: 'Ecolyo' },
{ to: '/docs/ecolyo-agent/', label: 'Ecolyo Agent' },
{ to: '/docs/konnectors/introduction', label: 'Konnectors' },
{
type: 'dropdown',
label: 'Infra',
items: [
{ to: '/docs/openshift', label: 'Openshift' },
{ to: '/docs/monitoring', label: 'Monitoring' },
],
},
{
type: 'dropdown',
label: 'Cozy',
items: [
{ to: '/docs/cozystack', label: 'Cozystack' },
{ to: '/docs/easycozy/configuration', label: 'EasyCozy' },
],
},
// RIGHT LINKS
{
type: 'dropdown',
label: 'Archive',
position: 'right',
items: [
{ to: '/docs/archive/pilote', label: 'Pilote' },
{ to: '/docs/archive/proxy', label: 'Proxy' },
{
label: 'GRDF Client Connect',
to: '/docs/archive/grdf',
},
{
label: 'Enedis Data Connect',
to: '/docs/archive/enedis',
},
],
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
},
{
href: 'https://forge.grandlyon.com/web-et-numerique/factory/llle_project/self-data-technical-doc',
label: 'Forge',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Links',
items: [
{
label: '📁 Self-data repositories',
href: 'https://forge.grandlyon.com/web-et-numerique/factory/llle_project',
},
{
label: '⌨ Factory Board',
href: 'https://forge.grandlyon.com/groups/web-et-numerique/factory/-/boards?milestone_title=Any',
},
{
label: '🗂 Milestones',
href: 'https://forge.grandlyon.com/groups/web-et-numerique/factory/-/milestones',
},
{
label: '🛠️ Merge requests',
href: 'https://forge.grandlyon.com/groups/web-et-numerique/factory/-/merge_requests?scope=all&state=opened¬[author_username]=Renovate-Bot&reviewer_id=None&draft=no',
},
{
label: '📊 Indicateurs',
href: 'https://factory.self-data.alpha.grandlyon.com/',
},
{
label: 'Whimsical',
href: 'https://whimsical.com/factory-J5YyG3BQk3AGF6j9rXMfLy',
},
],
},
{
title: 'Tools',
items: [
{ label: 'Sentry', href: 'https://grandlyon.errors.cozycloud.cc/' },
{ label: 'Matomo', href: 'https://statweb.grandlyon.com/' },
{
label: 'SonarQube',
href: 'https://sonarqube.forge.grandlyon.com/',
},
{ label: 'Metabase', href: 'https://stats.cozycloud.cc/' },
],
},
{
title: 'More',
items: [
{
label: '🦖 Docusaurus guide',
to: 'https://docusaurus.io/docs/category/guides',
},
{
label: 'Mermaid live editor',
to: 'https://mermaid.live/edit#pako:eNp9UkFu2zAQ_MqCgKEUsII6hx50buIUSE4petJlTa6lbSlSICnXrqFX9NZLv9gnlJQUR1WKHASIszszu4s5C2kViUKsVmc2HAo4QxZqaigrINuhp2w9AV_QMe40-WxswuoBd6TvrAlP_GPo33xojxn00PerVWnyPC9N4KCpgC2HvbbfYW8d3EqrT3aqVxy2Dtu6NNI2DQdgVUApHGmK5rC53ly_LwVEtwQfpndpdg6NrEHRITJrkt9sF6bXXKd1dGDbeRhRP6PuCUMurfF2wUmFq6HwrgBUKnFbdAQKA6ZZTm3c6P7T9v4hfp_f9B-00KA-efZRztuGQs2mSoNcePNRGnIV_Ufp8RkHNsHOKWI5wSgxF31Zmo-XnS_uM2xwXO7Ax8s5ujYegeJFtHX-tfM_vD-_f_4CZSXk0Dr7lWRq8tJxG9iaRJ4GXfq_ysDNIgM3YwZm7g2ymd1OrEX8j6CK0T6XBiJvCHEpkoSiPXY6JI0-tmIX7NPJSFEE19FajEt-ZKwcNiPY_wUrVh19',
},
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
{
label: 'Contact us',
href: 'mailto:snudev@grandlyon.com',
},
{
label: 'Mattermost with cozy',
href: 'https://mattermost.cozycloud.cc',
},
{
label: 'Factory wikis',
href: 'https://forge.grandlyon.com/web-et-numerique/factory/wiki_web_num/-/wikis/home',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Self-Data docs, Inc. Built with Docusaurus.`,
logo: {
src: '/img/docshome.png',
},
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
}
export default config