-
Notifications
You must be signed in to change notification settings - Fork 7
/
docusaurus.config.js
122 lines (111 loc) · 3.17 KB
/
docusaurus.config.js
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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Sillon',
tagline: `Propositions pour réaliser un produit numérique`,
favicon: 'img/favicon.svg',
url: 'https://sillon.incubateur.net/',
baseUrl: '/',
// Since deployed on Netlify it redirects pathnames like `/path` to `/path/` so we explicitely
// tell to Docusaurus to write links with the trailing slash. It will also prevent warnings from
// search engines that don't like to see 2 kinds of URL for the exact same content
trailingSlash: true,
customFields: {
crispWebsiteId: process.env.CRISP_WEBSITE_ID || 'no_crisp_settings',
},
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
i18n: {
defaultLocale: 'fr',
locales: ['fr'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/betagouv/sillon/tree/main/',
},
blog: false,
theme: {
customCss: [require.resolve('dsfr-connect/dist/infima-v1/index.css'), require.resolve('./src/css/main.scss')],
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 3,
},
sidebar: {
hideable: true,
autoCollapseCategories: true,
},
image: 'img/social-card.png',
navbar: {
title: 'Sillon',
logo: {
alt: '',
src: 'assets/logo/marianne.svg',
},
items: [
{
type: 'custom-pdfVersion',
position: 'right',
},
{
type: 'custom-liveChat',
position: 'right',
},
],
},
footer: {
logo: {
src: 'assets/logo/marianne.svg',
},
links: [
{
label: 'Mentions légales',
to: 'legal-notice',
},
{
label: 'Code source',
href: 'https://github.com/betagouv/sillon',
},
{
label: 'beta.gouv',
href: 'https://beta.gouv.fr',
},
],
copyright: `Sauf mention contraire, tous les contenus de ce site sont sous <a href="https://raw.githubusercontent.com/betagouv/sillon/main/LICENSE">licence MIT</a>`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
matomo: {
matomoUrl: 'https://stats.beta.gouv.fr/',
siteId: '52',
},
}),
plugins: ['docusaurus-plugin-sass', 'docusaurus-plugin-matomo'],
themes: [
[
require.resolve('@easyops-cn/docusaurus-search-local'),
// /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
{
hashed: true,
language: ['fr'],
},
],
],
};
module.exports = config;