Skip to content

Commit 5b65761

Browse files
committed
Move to Hugo
1 parent f98898f commit 5b65761

31 files changed

+746
-3
lines changed

.github/workflows/deploy.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy Hugo site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
submodules: true
16+
17+
- name: Install Hugo
18+
uses: peaceiris/actions-hugo@v3
19+
with:
20+
hugo-version: "latest"
21+
22+
- name: Build
23+
run: hugo --minify
24+
25+
- name: Deploy
26+
uses: peaceiris/actions-gh-pages@v3
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
publish_dir: ./public

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
2-
.DS_store
2+
.DS_store
3+
public

assets/css/out.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -3110,7 +3110,7 @@ section {
31103110
}
31113111

31123112
body {
3113-
background-image: url(/assets/images/fond.png);
3113+
background-image: url(/images/fond.png);
31143114
background-repeat: repeat;
31153115
background-size: contain;
31163116
background-position-y: 59vw;
@@ -3135,7 +3135,7 @@ h4.activity {
31353135
}
31363136

31373137
.robot{
3138-
background-image: url('/assets/images/robot.png');
3138+
background-image: url('/images/robot.png');
31393139
background-size: contain;
31403140
background-repeat: no-repeat;
31413141
background-position-x: 49%;

assets/js/script.js

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/**
2+
* Back to top button management
3+
*/
4+
let backToTopButton = document.getElementById('backToTopButton')
5+
backToTopButton.addEventListener('click', backToTopFunction);
6+
// When the user scrolls down over the viewport height from the top of the document, show the button
7+
window.onscroll = function () {
8+
scrollFunction()
9+
};
10+
11+
function scrollFunction() {
12+
if (
13+
document.body.scrollHeight > 3000 &&
14+
(document.body.scrollTop > window.innerHeight ||
15+
document.documentElement.scrollTop > window.innerHeight)
16+
) {
17+
backToTopButton.style.display = "flex";
18+
} else {
19+
backToTopButton.style.display = "none";
20+
}
21+
}
22+
23+
// When the user clicks on the button, scroll to the top of the document
24+
function backToTopFunction() {
25+
document.body.scrollTo({top: 0, left: 0, behavior: 'smooth'});
26+
document.documentElement.scrollTo({top: 0, left: 0, behavior: 'smooth'});
27+
}
28+
29+
/**
30+
* Navigation menu management
31+
*/
32+
let closeButton = document.getElementsByClassName('close').item(0)
33+
closeButton.addEventListener('click', closeFunction);
34+
35+
// remove class 'opened' to header and remove class 'no-scroll' to body and html
36+
function closeFunction() {
37+
document.getElementsByTagName('header')[0].classList.remove('opened');
38+
document.getElementsByTagName('body')[0].classList.remove('no-scroll');
39+
document.getElementsByTagName('html')[0].classList.remove('no-scroll');
40+
}
41+
42+
// on click on link navigation__link call closeFunction
43+
let links = document.getElementsByClassName('navigation__link');
44+
for (let i = 0; i < links.length; i++) {
45+
links[i].addEventListener('click', closeFunction);
46+
}
47+
48+
let openButton = document.getElementsByClassName('burger').item(0)
49+
openButton.addEventListener('click', openFunction);
50+
51+
// Add class 'opened' to header and 'no-scroll' to body and html
52+
function openFunction() {
53+
document.getElementsByTagName('header')[0].classList.add('opened');
54+
document.getElementsByTagName('body')[0].classList.add('no-scroll');
55+
document.getElementsByTagName('html')[0].classList.add('no-scroll');
56+
57+
// Hide backToTopButton when the menu is opened
58+
let backToTopButton = document.getElementById('backToTopButton')
59+
backToTopButton.style.display = "none";
60+
}

content/_index.md

+238
Large diffs are not rendered by default.

content/legal-notice.md

+255
Large diffs are not rendered by default.

hugo.toml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
baseURL = 'opensource.michelin.io'
2+
languageCode = 'en-us'
3+
title = 'Open Source | Michelin IS & Digital'
4+
enableRobotsTXT = true
5+
6+
disableKinds = ['taxonomy', 'term', 'rss']
7+
8+
[markup.goldmark.renderer]
9+
unsafe = true
10+
11+
12+
[params.social]
13+
twitter = 'michelinIT_eng'

layouts/_default/baseof.html

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<!DOCTYPE html>
2+
<html lang="en" data-brand="commercial" dir="ltr">
3+
<head>
4+
{{ $css := resources.Get "css/out.css" | resources.Minify }}
5+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<link rel="icon" sizes="any" href="/images/favicon.png">
8+
<title>{{ .Params.title }}</title>
9+
<meta name="description" content="{{ .Params.description }}">
10+
<meta name="keywords" content="Michelin, open source, OSS, software, Java, JEE, Jenkins, open source contribution, open source projects, talent acquisition, engineering economics, GitHub, security advisories, IT blog, technology innovation">
11+
<meta name="author" content="Michelin IS & Digital">
12+
<meta name="robots" content="index, follow">
13+
<meta name="viewport" content="width=device-width, initial-scale=1">
14+
{{ template "_internal/opengraph.html" . }}
15+
{{ template "_internal/twitter_cards.html" . }}
16+
<meta http-equiv="Content-Security-Policy" content="object-src 'none'; script-src 'self'">
17+
<link rel="preconnect" href="https://fonts.googleapis.com/">
18+
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin="">
19+
<link href="{{ $css.Permalink }}" rel="stylesheet">
20+
<meta name="msapplication-TileColor" content="#da532c">
21+
<meta name="theme-color" content="#ffffff">
22+
</head>
23+
<body>
24+
<header class="header {{ if .Params.headerFixed }} header-fixed {{ else }} header-sticky {{ end }} alignment-left nav-right">
25+
{{ partial "header/header.html" . }}
26+
</header>
27+
<main class="theme-michelin">
28+
{{ block "main" . }}
29+
{{ end }}
30+
</main>
31+
<footer class="footer">
32+
{{ partial "footer/footer.html" . }}
33+
</footer>
34+
{{ partial "footer/backtotop.html" . }}
35+
{{ $script := resources.Get "js/script.js" | resources.Minify | resources.Fingerprint }}
36+
<script src="{{ $script.Permalink }}"></script>
37+
</body>
38+
</html>

layouts/_default/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{ define "main" }}
2+
{{ .Content }}
3+
{{ end }}

layouts/page/single.html

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{ define "main" }}
2+
{{ .Content }}
3+
{{ end }}
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<div id="backToTopButton" style="display: none;">
2+
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3+
<title>CTA - Back to the top</title>
4+
<g id="CTA---Back-to-the-top" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5+
<circle id="Oval" fill="#E4E4E4" cx="16" cy="16" r="16"></circle>
6+
<g id="Group" transform="translate(4.000000, 4.000000)" fill="#363636" fill-rule="nonzero">
7+
<g id="Styleguide/Glyph/white/arrow-min-top">
8+
<path
9+
d="M9.49735354,7.3640202 C9.71604714,7.1453266 10.0706195,7.1453266 10.2893131,7.3640202 L10.2893131,7.3640202 L14.5559798,11.6306869 L14.5559798,11.6306869 C14.7746734,11.8493805 14.7746734,12.2039529 14.5559798,12.4226465 L10.2893131,16.6893131 C10.0706195,16.9080067 9.71604714,16.9080067 9.49735354,16.6893131 C9.27865993,16.4706195 9.27865993,16.1160471 9.49735354,15.8973535 L13.3673333,12.026 L9.49735354,8.1559798 C9.30295922,7.96158548 9.28135985,7.65983015 9.43255543,7.44157784 Z"
10+
id="Combined-Shape"
11+
transform="translate(12.026667, 12.026667) scale(-1, 1) rotate(270.000000) translate(-12.026667, -12.026667) ">
12+
</path>
13+
</g>
14+
</g>
15+
</g>
16+
</svg>
17+
</div>

layouts/partials/footer/footer.html

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<div class="footer-bottom">
2+
<div class="container">
3+
<div class="social-tools">
4+
<div class="social-tools--items">
5+
<a href="https://twitter.com/michelinIT_eng" target="_blank">
6+
<div class="item">
7+
<svg class="logo">
8+
<svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="#ffffff"><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"></path></svg>
9+
</svg>
10+
<span class="label">X</span>
11+
</div>
12+
</a>
13+
<a href="https://www.linkedin.com/showcase/michelin-is-digital/" target="_blank">
14+
<div class="item">
15+
<svg class="logo">
16+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
17+
<g clip-path="url(#q4dnkuiq8a)">
18+
<path fill-rule="evenodd" clip-rule="evenodd"
19+
d="M2.133 0h27.734C31.045 0 32 .955 32 2.133v27.734A2.133 2.133 0 0 1 29.867 32H2.133A2.133 2.133 0 0 1 0 29.867V2.133C0 .955.955 0 2.133 0zm5.835 25.877h3.456V13.205H7.968v12.672zM7.68 9.712c0 1.122.904 2.032 2.016 2.032 1.114 0 2.016-.91 2.016-2.032A2.025 2.025 0 0 0 9.696 7.68c-1.112 0-2.016.91-2.016 2.032zm14.112 16.165h3.456v-7.786c0-6.053-6.455-5.832-8.064-2.853v-2.033h-3.456v12.672h3.456v-6.456c0-3.586 4.608-3.88 4.608 0v6.456z"
20+
fill="#ffffff"></path>
21+
</g>
22+
<defs>
23+
<clippath id="q4dnkuiq8a">
24+
<path fill="#fff" d="M0 0h32v32H0z"></path>
25+
</clippath>
26+
</defs>
27+
</svg>
28+
</svg>
29+
<span class="label">Linkedin</span>
30+
</div>
31+
</a>
32+
<a href="https://www.youtube.com/playlist?list=PLnQqxoRZbwnTvySzIotmQfWthUrZGU4Cy" target="_blank">
33+
<div class="item">
34+
<svg class="logo">
35+
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
36+
<g clip-path="url(#sgf01yzuta)">
37+
<path fill-rule="evenodd" clip-rule="evenodd"
38+
d="M2.133 0h27.734C31.045 0 32 .955 32 2.133v27.734A2.133 2.133 0 0 1 29.867 32H2.133A2.133 2.133 0 0 1 0 29.867V2.133C0 .955.955 0 2.133 0zm20.398 7.68H9.684a4.565 4.565 0 0 0-4.564 4.564v6.422a4.565 4.565 0 0 0 4.564 4.565h12.847a4.565 4.565 0 0 0 4.565-4.565v-6.42A4.565 4.565 0 0 0 22.53 7.68zm-3.086 8.088-6.01 2.867a.242.242 0 0 1-.346-.218v-5.913c0-.179.19-.296.351-.215l6.009 3.045c.179.091.176.347-.006.434h.002z"
39+
fill="#ffffff"></path>
40+
</g>
41+
<defs>
42+
<clippath id="sgf01yzuta">
43+
<path fill="#fff" d="M0 0h32v32H0z"></path>
44+
</clippath>
45+
</defs>
46+
</svg>
47+
</svg>
48+
<span class="label">YouTube</span>
49+
</div>
50+
</a>
51+
</div>
52+
</div>
53+
<div class="links">
54+
<a class="p-white-regular" href="/legal-notice">Legal notice</a>
55+
</div>
56+
<div class="robot-footer">
57+
<img src="/images/footer-robot.png"/>
58+
</div>
59+
</div>
60+
<div class="container">
61+
<p class="p-white-regular">Copyright ©{{ now.Format "2006" }} MICHELIN. All rights reserved.</p>
62+
</div>
63+
</div>

layouts/partials/header/header.html

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<div class="burger">
2+
<span class="burger_line"></span>
3+
<span class="burger_line"></span>
4+
<span class="burger_line"></span>
5+
</div>
6+
<a href="/" class="navigation__logo">
7+
<img src="/images/icon/logo-header.svg" style="width:180px"/>
8+
</a>
9+
<div class="apos-area">
10+
<nav class="navigation__links">
11+
<a class="link navigation__link header--navigation-item" href="/#Manifesto">OSS PRINCIPLES</a>
12+
<a class="link navigation__link header--navigation-item" href="/#Memberships">MEMBERSHIPS</a>
13+
<a class="link navigation__link header--navigation-item" href="/#Projects">PROJECTS & NEWS</a>
14+
<a class="link navigation__link header--navigation-item" href="https://blogit.michelin.io/join-us/" target="_blank">CAREERS</a>
15+
<a class="link navigation__link header--navigation-item" href="&#109;&#097;&#105;&#108;&#116;&#111;:&#111;&#112;&#101;&#110;&#115;&#111;&#117;&#114;&#099;&#101;&#064;&#109;&#105;&#099;&#104;&#101;&#108;&#105;&#110;&#046;&#099;&#111;&#109;?subject=Open%20Source%20contact" target="_blank">CONTACT US</a>
16+
</nav>
17+
</div>
18+
<div class="close">
19+
<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg">
20+
<path d="M11.798.204a.706.706 0 0 1-.005.994l-4.83 4.856 4.666 4.69a.706.706 0 0 1-.995 1L5.97 7.053l-4.712 4.738a.697.697 0 1 1-.984-.99l4.711-4.738L.202 1.255a.706.706 0 0 1 .995-1l4.781 4.809 4.83-4.855a.697.697 0 0 1 .99-.005z"
21+
fill="#FFF" fill-rule="evenodd"></path>
22+
</svg>
23+
</div>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)