Skip to content

Commit 5d7e298

Browse files
committed
Add rgpd cookie banner to both doc and website.
1 parent afec10e commit 5d7e298

File tree

5 files changed

+64
-129
lines changed

5 files changed

+64
-129
lines changed

docusaurus.config.js

Lines changed: 56 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33

4-
const lightCodeTheme = require('prism-react-renderer').themes.github;
5-
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
4+
const lightCodeTheme = require("prism-react-renderer").themes.github;
5+
const darkCodeTheme = require("prism-react-renderer").themes.dracula;
66

77
/** @type {import('@docusaurus/types').Config} */
88
const config = {
9-
title: 'XCP-ng Documentation',
10-
tagline: 'Documentation for XCP-ng',
11-
url: 'https://docs.xcp-ng.org',
12-
baseUrl: '/',
13-
onBrokenLinks: 'throw',
14-
onBrokenMarkdownLinks: 'warn',
15-
favicon: 'img/xcpcrop128.png',
9+
title: "XCP-ng Documentation",
10+
tagline: "Documentation for XCP-ng",
11+
url: "https://docs.xcp-ng.org",
12+
baseUrl: "/",
13+
onBrokenLinks: "throw",
14+
onBrokenMarkdownLinks: "warn",
15+
favicon: "img/xcpcrop128.png",
1616
trailingSlash: true,
1717

1818
// GitHub pages deployment config.
@@ -24,43 +24,38 @@ const config = {
2424
// metadata like html lang. For example, if your site is Chinese, you may want
2525
// to replace "en" with "zh-Hans".
2626
i18n: {
27-
defaultLocale: 'en',
28-
locales: ['en'],
27+
defaultLocale: "en",
28+
locales: ["en"],
2929
},
3030

3131
// Mermaid graphs
3232
markdown: {
3333
mermaid: true,
3434
},
35-
themes: ['@docusaurus/theme-mermaid'],
35+
themes: ["@docusaurus/theme-mermaid"],
3636

3737
scripts: [
3838
{
39-
src: '/js/mautic.js',
40-
async: true,
41-
},
42-
{
43-
src: '/js/matomo.js',
39+
src: "https://cdn.vates.tech/rgpd/doc-xcp-ng-org.js",
4440
async: true,
4541
},
4642
],
4743

4844
presets: [
4945
[
50-
'classic',
46+
"classic",
5147
/** @type {import('@docusaurus/preset-classic').Options} */
5248
({
5349
docs: {
54-
routeBasePath: '/',
55-
sidebarPath: require.resolve('./sidebars.js'),
50+
routeBasePath: "/",
51+
sidebarPath: require.resolve("./sidebars.js"),
5652
// Please change this to your repo.
5753
// Remove this to remove the "edit this page" links.
58-
editUrl:
59-
'https://github.com/xcp-ng/xcp-ng-org/edit/master/',
54+
editUrl: "https://github.com/xcp-ng/xcp-ng-org/edit/master/",
6055
},
6156
blog: false,
6257
theme: {
63-
customCss: require.resolve('./src/css/custom.css'),
58+
customCss: require.resolve("./src/css/custom.css"),
6459
},
6560
}),
6661
],
@@ -70,74 +65,78 @@ const config = {
7065
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
7166
({
7267
navbar: {
73-
title: 'XCP-ng Documentation',
68+
title: "XCP-ng Documentation",
7469
logo: {
75-
alt: 'XCP-ng logo',
76-
src: 'img/xcpcrop128.png',
70+
alt: "XCP-ng logo",
71+
src: "img/xcpcrop128.png",
7772
},
7873
items: [
79-
{href: 'https://xcp-ng.org', label: 'Home', position: 'right'},
80-
{href: 'https://xcp-ng.org/blog', label: 'Blog', position: 'right'},
81-
{href: 'https://vates.tech', label: 'Pro Support', position: 'right'},
74+
{ href: "https://xcp-ng.org", label: "Home", position: "right" },
75+
{ href: "https://xcp-ng.org/blog", label: "Blog", position: "right" },
8276
{
83-
href: 'https://github.com/xcp-ng',
84-
label: 'GitHub',
85-
position: 'right',
77+
href: "https://vates.tech",
78+
label: "Pro Support",
79+
position: "right",
80+
},
81+
{
82+
href: "https://github.com/xcp-ng",
83+
label: "GitHub",
84+
position: "right",
8685
},
8786
],
8887
},
8988
footer: {
90-
style: 'dark',
89+
style: "dark",
9190
links: [
9291
{
93-
title: 'Learn',
92+
title: "Learn",
9493
items: [
9594
{
96-
label: 'Introduction',
97-
href: '/',
95+
label: "Introduction",
96+
href: "/",
9897
},
9998
{
100-
label: 'Installation',
101-
href: '/category/installation',
99+
label: "Installation",
100+
href: "/category/installation",
102101
},
103102
],
104103
},
105104
{
106-
title: 'Community',
105+
title: "Community",
107106
items: [
108107
{
109-
label: 'Forum',
110-
href: 'https://xcp-ng.org/forum',
108+
label: "Forum",
109+
href: "https://xcp-ng.org/forum",
111110
},
112111
{
113-
label: 'Discord',
114-
href: 'https://discord.gg/Hr98F6wRvx',
112+
label: "Discord",
113+
href: "https://discord.gg/Hr98F6wRvx",
115114
},
116115
],
117116
},
118117
{
119-
title: 'Pro Support',
118+
title: "Pro Support",
120119
items: [
121120
{
122-
label: 'Vates Stack',
123-
href: 'https://vates.tech',
121+
label: "Vates Stack",
122+
href: "https://vates.tech",
124123
},
125124
{
126-
label: 'Contact us',
127-
href: 'https://vates.tech/contact',
125+
label: "Contact us",
126+
href: "https://vates.tech/contact",
128127
},
129128
],
130129
},
131130
{
132-
title: 'More',
131+
title: "More",
133132
items: [
134133
{
135-
label: 'News',
136-
href: 'https://xcp-ng.org/blog',
134+
label: "News",
135+
href: "https://xcp-ng.org/blog",
137136
},
138137
{
139-
label: 'GitHub',
140-
href: 'https://github.com/xcp-ng/xcp-ng-org',
138+
label: "GitHub",
139+
href: "https://github.com/xcp-ng/xcp-ng-org",
141140
},
142141
],
143142
},
@@ -149,7 +148,7 @@ const config = {
149148
darkTheme: darkCodeTheme,
150149
},
151150
colorMode: {
152-
defaultMode: 'dark',
151+
defaultMode: "dark",
153152
respectPrefersColorScheme: true,
154153
},
155154
// Mermaid
@@ -159,11 +158,11 @@ const config = {
159158
gantt: {
160159
fontSize: 25,
161160
barHeight: 70,
162-
}
161+
},
163162
},
164-
}
163+
},
165164
}),
166-
plugins: [require.resolve('docusaurus-lunr-search')],
165+
plugins: [require.resolve("docusaurus-lunr-search")],
167166
};
168167

169168
module.exports = config;

index.html

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,6 @@
2424
</div>
2525

2626
<div class="xcp-ng-content">
27-
<!-- Matomo -->
28-
<script type="text/javascript">
29-
var _paq = _paq || [];
30-
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
31-
_paq.push(['trackPageView']);
32-
_paq.push(['enableLinkTracking']);
33-
_paq.push(['addDownloadExtensions', "iso"]);
34-
_paq.push(['trackPageView']);
35-
(function() {
36-
var u="//piwik.vates.fr/";
37-
_paq.push(['setTrackerUrl', u+'piwik.php']);
38-
_paq.push(['setSiteId', '11']);
39-
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
40-
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
41-
})();
42-
</script>
43-
<!-- End Matomo Code -->
4427

4528
<nav id="xcp-ng-navbar" class="navbar navbar-expand-sm fixed-top bg-light">
4629
<div id="xcp-ng-menu" class="container-fluid">
@@ -322,7 +305,7 @@ <h2><a name="easy-to-install"></a>Easy To Install</h2>
322305
<h4 style="text-align: center; font-weight: bold;">XCP-ng 8.2 LTS</h4>
323306
<p style="text-align: center; font-style: italic; font-size: 0.9em;">Long Term Support with security updates & bugfixes only</p>
324307
<p>
325-
Grab the latest <a href="https://mirrors.xcp-ng.org/isos/8.2/xcp-ng-8.2.1-20231130.iso?https=1" onclick="_paq.push(['trackEvent', 'Download', 'full']);">8.2 LTS full ISO</a> (590MiB), then create your bootable USB key with:
308+
Grab the latest <a href="https://mirrors.xcp-ng.org/isos/8.2/xcp-ng-8.2.1-20231130.iso?https=1" class="track-download" data-download-type="full">8.2 LTS full ISO</a> (590MiB), then create your bootable USB key with:
326309
</p>
327310
<div class="code p-1 m-1 p-sm-3 m-sm-3">
328311
dd if=xcp-ng-8.2.1-20231130.iso of=/dev/sdX bs=8M oflag=direct
@@ -331,7 +314,7 @@ <h4 style="text-align: center; font-weight: bold;">XCP-ng 8.2 LTS</h4>
331314
<p>On Windows, you can use <a href="https://rufus.akeo.ie/">Rufus</a> to create the bootable USB stick. SHA256 full ISO: </p>
332315
<pre>108aa7144d1f5dd169a1b99ca70b510527136c549f2e3c3c1707b619e17ee1b6</pre>
333316
<p>
334-
You can also download the <a href="https://mirrors.xcp-ng.org/isos/8.2/xcp-ng-8.2.1-20231130-netinstall.iso?https=1" onclick="_paq.push(['trackEvent', 'Download', 'netinstall']);">Net install ISO</a> (160MiB), then create your bootable USB key in the same fashion. SHA256 netinstall ISO:
317+
You can also download the <a href="https://mirrors.xcp-ng.org/isos/8.2/xcp-ng-8.2.1-20231130-netinstall.iso?https=1" class="track-download" data-download-type="netinstall">Net install ISO</a> (160MiB), then create your bootable USB key in the same fashion. SHA256 netinstall ISO:
335318
</p>
336319
<pre>6d5e221ac56d318436105e20513197cecfc8fa29eee4d9bf72b5fd52db345a02</pre>
337320
</div>
@@ -340,7 +323,7 @@ <h4 style="text-align: center; font-weight: bold;">XCP-ng 8.2 LTS</h4>
340323
<h4 style="text-align: center; font-weight: bold;">XCP-ng 8.3 Latest</h4>
341324
<p style="text-align: center; font-style: italic; font-size: 0.9em;">Most recent platform used as a base for our new features</p>
342325
<p>
343-
Grab the latest <a href="https://mirrors.xcp-ng.org/isos/8.3/xcp-ng-8.3.0.iso?https=1" onclick="_paq.push(['trackEvent', 'Download', 'full']);">8.3 Latest full ISO</a> (618MiB), then create your bootable USB key with:
326+
Grab the latest <a href="https://mirrors.xcp-ng.org/isos/8.3/xcp-ng-8.3.0.iso?https=1" class="track-download" data-download-type="full">8.3 Latest full ISO</a> (618MiB), then create your bootable USB key with:
344327
</p>
345328
<div class="code p-1 m-1 p-sm-3 m-sm-3">
346329
dd if=xcp-ng-8.3.0.iso of=/dev/sdX bs=8M oflag=direct
@@ -349,7 +332,7 @@ <h4 style="text-align: center; font-weight: bold;">XCP-ng 8.3 Latest</h4>
349332
<p>On Windows, you can use <a href="https://rufus.akeo.ie/">Rufus</a> to create the bootable USB stick. SHA256 full ISO: </p>
350333
<pre>49b6143d1bbb1fd0bb1f7ce873817190c1f2ca394c258ce7b1f8e13a75c72674</pre>
351334
<p>
352-
You can also download the <a href="https://mirrors.xcp-ng.org/isos/8.3/xcp-ng-8.3.0-netinstall.iso?https=1" onclick="_paq.push(['trackEvent', 'Download', 'netinstall']);">Net install ISO</a> (163MiB), then create your bootable USB key in the same fashion. SHA256 netinstall ISO:
335+
You can also download the <a href="https://mirrors.xcp-ng.org/isos/8.3/xcp-ng-8.3.0-netinstall.iso?https=1" class="track-download" data-download-type="netinstall">Net install ISO</a> (163MiB), then create your bootable USB key in the same fashion. SHA256 netinstall ISO:
353336
</p>
354337
<pre>de6c6c9d699fd9185ca295e0c30cee705efaad4df05ae3910584bb880e51fab2</pre>
355338
</div>
@@ -573,14 +556,8 @@ <h2>Our initial KickStarter Backers</h2>
573556
});
574557
});
575558
</script>
576-
<script>
577-
(function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n;
578-
w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t),
579-
m=d.getElementsByTagName(t)[0];a.async=1;a.src=u;m.parentNode.insertBefore(a,m)
580-
})(window,document,'script','https://campaign.vates.tech/mtc.js','mt');
581-
582-
mt('send', 'pageview');
583-
</script>
559+
<!-- Rgpd & Tracking -->
560+
<script src="https://cdn.vates.tech/rgpd/xcp-ng-org.js"></script>
584561
</body>
585562

586563
</html>

sponsors.html

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,6 @@
2323
</div>
2424

2525
<div class="xcp-ng-content">
26-
<!-- Matomo -->
27-
<script type="text/javascript">
28-
var _paq = _paq || [];
29-
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
30-
_paq.push(['trackPageView']);
31-
_paq.push(['enableLinkTracking']);
32-
_paq.push(['addDownloadExtensions', "iso"]);
33-
_paq.push(['trackPageView']);
34-
(function() {
35-
var u="//piwik.vates.fr/";
36-
_paq.push(['setTrackerUrl', u+'piwik.php']);
37-
_paq.push(['setSiteId', '11']);
38-
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
39-
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
40-
})();
41-
</script>
42-
<!-- End Matomo Code -->
43-
4426

4527
<nav id="xcp-ng-navbar" class="navbar navbar-expand-sm fixed-top bg-light">
4628
<div id="xcp-ng-menu" class="container-fluid">
@@ -295,14 +277,8 @@ <h1>Gratitude to our Sponsors</h1>
295277
});
296278
});
297279
</script>
298-
<script>
299-
(function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n;
300-
w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t),
301-
m=d.getElementsByTagName(t)[0];a.async=1;a.src=u;m.parentNode.insertBefore(a,m)
302-
})(window,document,'script','https://campaign.vates.tech/mtc.js','mt');
303-
304-
mt('send', 'pageview');
305-
</script>
280+
<!-- Rgpd & Tracking -->
281+
<script src="https://cdn.vates.tech/rgpd/xcp-ng-org.js"></script>
306282
</body>
307283

308284
</html>

static/js/matomo.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

static/js/mautic.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)