Skip to content

Add rgpd cookie banner to both doc and website. #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 56 additions & 57 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// @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;
const lightCodeTheme = require("prism-react-renderer").themes.github;
const darkCodeTheme = require("prism-react-renderer").themes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'XCP-ng Documentation',
tagline: 'Documentation for XCP-ng',
url: 'https://docs.xcp-ng.org',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/xcpcrop128.png',
title: "XCP-ng Documentation",
tagline: "Documentation for XCP-ng",
url: "https://docs.xcp-ng.org",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/xcpcrop128.png",
trailingSlash: true,

// GitHub pages deployment config.
Expand All @@ -24,43 +24,38 @@ const config = {
// 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'],
defaultLocale: "en",
locales: ["en"],
},

// Mermaid graphs
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
themes: ["@docusaurus/theme-mermaid"],

scripts: [
{
src: '/js/mautic.js',
async: true,
},
{
src: '/js/matomo.js',
src: "https://cdn.vates.tech/rgpd/doc-xcp-ng-org.js",
async: true,
},
],

presets: [
[
'classic',
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/xcp-ng/xcp-ng-org/edit/master/',
editUrl: "https://github.com/xcp-ng/xcp-ng-org/edit/master/",
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
Expand All @@ -70,74 +65,78 @@ const config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'XCP-ng Documentation',
title: "XCP-ng Documentation",
logo: {
alt: 'XCP-ng logo',
src: 'img/xcpcrop128.png',
alt: "XCP-ng logo",
src: "img/xcpcrop128.png",
},
items: [
{href: 'https://xcp-ng.org', label: 'Home', position: 'right'},
{href: 'https://xcp-ng.org/blog', label: 'Blog', position: 'right'},
{href: 'https://vates.tech', label: 'Pro Support', position: 'right'},
{ href: "https://xcp-ng.org", label: "Home", position: "right" },
{ href: "https://xcp-ng.org/blog", label: "Blog", position: "right" },
{
href: 'https://github.com/xcp-ng',
label: 'GitHub',
position: 'right',
href: "https://vates.tech",
label: "Pro Support",
position: "right",
},
{
href: "https://github.com/xcp-ng",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: 'dark',
style: "dark",
links: [
{
title: 'Learn',
title: "Learn",
items: [
{
label: 'Introduction',
href: '/',
label: "Introduction",
href: "/",
},
{
label: 'Installation',
href: '/category/installation',
label: "Installation",
href: "/category/installation",
},
],
},
{
title: 'Community',
title: "Community",
items: [
{
label: 'Forum',
href: 'https://xcp-ng.org/forum',
label: "Forum",
href: "https://xcp-ng.org/forum",
},
{
label: 'Discord',
href: 'https://discord.gg/Hr98F6wRvx',
label: "Discord",
href: "https://discord.gg/Hr98F6wRvx",
},
],
},
{
title: 'Pro Support',
title: "Pro Support",
items: [
{
label: 'Vates Stack',
href: 'https://vates.tech',
label: "Vates Stack",
href: "https://vates.tech",
},
{
label: 'Contact us',
href: 'https://vates.tech/contact',
label: "Contact us",
href: "https://vates.tech/contact",
},
],
},
{
title: 'More',
title: "More",
items: [
{
label: 'News',
href: 'https://xcp-ng.org/blog',
label: "News",
href: "https://xcp-ng.org/blog",
},
{
label: 'GitHub',
href: 'https://github.com/xcp-ng/xcp-ng-org',
label: "GitHub",
href: "https://github.com/xcp-ng/xcp-ng-org",
},
],
},
Expand All @@ -149,7 +148,7 @@ const config = {
darkTheme: darkCodeTheme,
},
colorMode: {
defaultMode: 'dark',
defaultMode: "dark",
respectPrefersColorScheme: true,
},
// Mermaid
Expand All @@ -159,11 +158,11 @@ const config = {
gantt: {
fontSize: 25,
barHeight: 70,
}
},
},
}
},
}),
plugins: [require.resolve('docusaurus-lunr-search')],
plugins: [require.resolve("docusaurus-lunr-search")],
};

module.exports = config;
35 changes: 6 additions & 29 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,6 @@
</div>

<div class="xcp-ng-content">
<!-- Matomo -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
_paq.push(['addDownloadExtensions', "iso"]);
_paq.push(['trackPageView']);
(function() {
var u="//piwik.vates.fr/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '11']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->

<nav id="xcp-ng-navbar" class="navbar navbar-expand-sm fixed-top bg-light">
<div id="xcp-ng-menu" class="container-fluid">
Expand Down Expand Up @@ -322,7 +305,7 @@ <h2><a name="easy-to-install"></a>Easy To Install</h2>
<h4 style="text-align: center; font-weight: bold;">XCP-ng 8.2 LTS</h4>
<p style="text-align: center; font-style: italic; font-size: 0.9em;">Long Term Support with security updates & bugfixes only</p>
<p>
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:
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:
</p>
<div class="code p-1 m-1 p-sm-3 m-sm-3">
dd if=xcp-ng-8.2.1-20231130.iso of=/dev/sdX bs=8M oflag=direct
Expand All @@ -331,7 +314,7 @@ <h4 style="text-align: center; font-weight: bold;">XCP-ng 8.2 LTS</h4>
<p>On Windows, you can use <a href="https://rufus.akeo.ie/">Rufus</a> to create the bootable USB stick. SHA256 full ISO: </p>
<pre>108aa7144d1f5dd169a1b99ca70b510527136c549f2e3c3c1707b619e17ee1b6</pre>
<p>
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:
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:
</p>
<pre>6d5e221ac56d318436105e20513197cecfc8fa29eee4d9bf72b5fd52db345a02</pre>
</div>
Expand All @@ -340,7 +323,7 @@ <h4 style="text-align: center; font-weight: bold;">XCP-ng 8.2 LTS</h4>
<h4 style="text-align: center; font-weight: bold;">XCP-ng 8.3 Latest</h4>
<p style="text-align: center; font-style: italic; font-size: 0.9em;">Most recent platform used as a base for our new features</p>
<p>
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:
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:
</p>
<div class="code p-1 m-1 p-sm-3 m-sm-3">
dd if=xcp-ng-8.3.0.iso of=/dev/sdX bs=8M oflag=direct
Expand All @@ -349,7 +332,7 @@ <h4 style="text-align: center; font-weight: bold;">XCP-ng 8.3 Latest</h4>
<p>On Windows, you can use <a href="https://rufus.akeo.ie/">Rufus</a> to create the bootable USB stick. SHA256 full ISO: </p>
<pre>49b6143d1bbb1fd0bb1f7ce873817190c1f2ca394c258ce7b1f8e13a75c72674</pre>
<p>
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:
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:
</p>
<pre>de6c6c9d699fd9185ca295e0c30cee705efaad4df05ae3910584bb880e51fab2</pre>
</div>
Expand Down Expand Up @@ -573,14 +556,8 @@ <h2>Our initial KickStarter Backers</h2>
});
});
</script>
<script>
(function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n;
w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t),
m=d.getElementsByTagName(t)[0];a.async=1;a.src=u;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://campaign.vates.tech/mtc.js','mt');

mt('send', 'pageview');
</script>
<!-- Rgpd & Tracking -->
<script src="https://cdn.vates.tech/rgpd/xcp-ng-org.js"></script>
</body>

</html>
28 changes: 2 additions & 26 deletions sponsors.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,6 @@
</div>

<div class="xcp-ng-content">
<!-- Matomo -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
_paq.push(['addDownloadExtensions', "iso"]);
_paq.push(['trackPageView']);
(function() {
var u="//piwik.vates.fr/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '11']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->


<nav id="xcp-ng-navbar" class="navbar navbar-expand-sm fixed-top bg-light">
<div id="xcp-ng-menu" class="container-fluid">
Expand Down Expand Up @@ -295,14 +277,8 @@ <h1>Gratitude to our Sponsors</h1>
});
});
</script>
<script>
(function(w,d,t,u,n,a,m){w['MauticTrackingObject']=n;
w[n]=w[n]||function(){(w[n].q=w[n].q||[]).push(arguments)},a=d.createElement(t),
m=d.getElementsByTagName(t)[0];a.async=1;a.src=u;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://campaign.vates.tech/mtc.js','mt');

mt('send', 'pageview');
</script>
<!-- Rgpd & Tracking -->
<script src="https://cdn.vates.tech/rgpd/xcp-ng-org.js"></script>
</body>

</html>
Expand Down
11 changes: 0 additions & 11 deletions static/js/matomo.js

This file was deleted.

6 changes: 0 additions & 6 deletions static/js/mautic.js

This file was deleted.