Compare commits

...

3 commits

11 changed files with 45 additions and 57 deletions

View file

@ -0,0 +1,26 @@
<!DOCTYPE html>
{{ with .Site.LanguageCode }}<html lang="{{ . }}">{{ else }}<html>{{ end }}
<head>
{{- partial "head.html" . -}}
{{- partial "custom-head.html" . -}}
</head>
<body>
{{- partial "prepend-body.html" . -}}
<div class="container">
{{- partial "notification.html" . -}}
{{- partial "site-header.html" . -}}
{{- partial "global-menu.html" . -}}
<div class="content-container">
<main>
{{- block "main" . -}}{{- end -}}
<footer>
{{- partial "content-footer.html" . -}}
{{- partial "powered.html" . -}}
</footer>
</main>
{{- partial "sidebar.html" . -}}
</div>
</div>
</body>
</html>

View file

@ -1,3 +1,3 @@
{{- if and .Site.Params.git_doc_repository .File -}} {{- if and .Site.Params.git_doc_repository .File -}}
<a href="{{ .Site.Params.git_doc_repository }}/src/branch/{{ .Site.Params.git_doc_repository_branch | default "main" }}/content/{{ .Site.Params.git_doc_repository_path }}{{ .File.Path }}" class="edit-page"><i class="fas fa-pen-square"></i>&nbsp;Modifier sur la forge jouf</a> <a href="{{ .Site.Params.git_doc_repository }}/src/branch/{{ .Site.Params.git_doc_repository_branch | default "main" }}/content/{{ .Site.Params.git_doc_repository_path }}{{ .File.Path }}" class="edit-page"><img class="edit-page-picto" width="13" height="13 " src="{{"images/pen-square.svg" | absURL}}" alt="edit"/>&nbsp;Modifier sur la forge jouf</a>
{{- end -}} {{- end -}}

View file

@ -17,8 +17,6 @@
<link rel="stylesheet" href="{{"css/theme.min.css" | absURL}}"> <link rel="stylesheet" href="{{"css/theme.min.css" | absURL}}">
<link rel="shortcut icon" href="{{ "favicon.png" | absURL }}"> <link rel="shortcut icon" href="{{ "favicon.png" | absURL }}">
{{ partial "meta/chroma.html" . -}} {{ partial "meta/chroma.html" . -}}
<script defer src="{{ .Site.BaseURL }}/js/fontawesome6/all.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.11/dist/clipboard.min.js" integrity="sha256-4XodgW4TwIJuDtf+v6vDJ39FVxI0veC/kSCCmnFp7ck=" crossorigin="anonymous"></script>
<script src="{{ "js/bundle.js" | absURL }}"></script> <script src="{{ "js/bundle.js" | absURL }}"></script>
{{- partial "meta/tag-manager.html" . -}} {{- partial "meta/tag-manager.html" . -}}
{{- partial "custom-css.html" . -}} {{- partial "custom-css.html" . -}}

View file

@ -1,22 +0,0 @@
(function() {
document.addEventListener('DOMContentLoaded', function(){
const targetElements = document.querySelector('main').querySelectorAll('h1, h2, h3, h4, h5, h6');
targetElements.forEach(( el ) => {
if (el.id) {
const headerlink = document.createElement('a');
headerlink.setAttribute('class', 'headerlink');
headerlink.setAttribute('href', '#' + el.id);
headerlink.setAttribute('title', 'Permalink to this headline');
const icon = document.createElement('i');
icon.setAttribute('class', 'fas fa-hashtag');
icon.setAttribute('aria-hidden', 'true');
headerlink.append(icon);
el.append(headerlink);
}
});
});
})();

View file

@ -1,18 +0,0 @@
(function() {
document.addEventListener('DOMContentLoaded', function(){
const nav_prev = document.querySelector('.nav-prev');
const nav_next = document.querySelector('.nav-next');
// prev links - left arrow key
document.addEventListener( 'keydown', event => {
if (nav_prev && event.key === 'ArrowLeft') {
location.href = nav_prev.getAttribute('href');
}
// next links - right arrow key
if (nav_next && event.key === 'ArrowRight') {
location.href = nav_next.getAttribute('href');
}
});
});
})();

View file

@ -1,4 +1 @@
require( './sidebar-menu.js' ); require( './sidebar-menu.js' );
require( './keydown-nav.js' );
require( './headerlink.js' );
require( './code.js' );

View file

@ -200,10 +200,6 @@ figure > figcaption {
background: variable.$sidebar-active-color; background: variable.$sidebar-active-color;
} }
.backtothetop {
display: none;
font-size: 200%;
}
.fa-layers .fa-circle { .fa-layers .fa-circle {
color: #fff; color: #fff;
} }
@ -344,3 +340,10 @@ figure > figcaption h4 {
@keyframes fade-tooltip { @keyframes fade-tooltip {
to { opacity: 0; } to { opacity: 0; }
} }
.edit-page-picto {
filter: invert(46%) sepia(17%) saturate(2064%) hue-rotate(161deg) brightness(90%) contrast(83%);
position: relative;
top: 2px;
vertical-align: center;
}

View file

@ -949,11 +949,6 @@ main:only-child {
background: #eee; background: #eee;
} }
.backtothetop {
display: none;
font-size: 200%;
}
.fa-layers .fa-circle { .fa-layers .fa-circle {
color: #fff; color: #fff;
} }
@ -1114,6 +1109,14 @@ figure > figcaption h4 {
opacity: 0; opacity: 0;
} }
} }
.edit-page-picto {
-webkit-filter: invert(46%) sepia(17%) saturate(2064%) hue-rotate(161deg) brightness(90%) contrast(83%);
filter: invert(46%) sepia(17%) saturate(2064%) hue-rotate(161deg) brightness(90%) contrast(83%);
position: relative;
top: 2px;
vertical-align: center;
}
header { header {
color: var(--custom-font-color, #fff); color: var(--custom-font-color, #fff);
background: var(--custom-background-color, #000); background: var(--custom-background-color, #000);

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM325.8 139.7l14.4 14.4c15.6 15.6 15.6 40.9 0 56.6l-21.4 21.4-71-71 21.4-21.4c15.6-15.6 40.9-15.6 56.6 0zM119.9 289L225.1 183.8l71 71L190.9 359.9c-4.1 4.1-9.2 7-14.9 8.4l-60.1 15c-5.5 1.4-11.2-.2-15.2-4.2s-5.6-9.7-4.2-15.2l15-60.1c1.4-5.6 4.3-10.8 8.4-14.9z"/></svg>

After

Width:  |  Height:  |  Size: 601 B

View file

@ -1 +1 @@
!function(){var e={127:function(){document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelector(".nav-prev"),t=document.querySelector(".nav-next");document.addEventListener("keydown",(function(n){e&&"ArrowLeft"===n.key&&(location.href=e.getAttribute("href")),t&&"ArrowRight"===n.key&&(location.href=t.getAttribute("href"))}))}))},219:function(){!function(){function e(e){e.currentTarget.setAttribute("class","copy-btn copy"),e.currentTarget.setAttribute("aria-label","Copy this code.")}window.onload=function(){new ClipboardJS(".copy",{target:function(e){return e.nextElementSibling}}).on("success",(function(e){!function(e){e.setAttribute("class","copy-btn copy tooltipped"),e.setAttribute("aria-label","Copied!")}(e.trigger),e.clearSelection()})).on("error",(function(e){console.error("Action:",e.action),console.error("Trigger:",e.trigger)}))},document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".copy").forEach((function(t){t.addEventListener("animationend",e)}))}))}()},447:function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelector("main").querySelectorAll("h1, h2, h3, h4, h5, h6").forEach((function(e){if(e.id){var t=document.createElement("a");t.setAttribute("class","headerlink"),t.setAttribute("href","#"+e.id),t.setAttribute("title","Permalink to this headline");var n=document.createElement("i");n.setAttribute("class","fas fa-hashtag"),n.setAttribute("aria-hidden","true"),t.append(n),e.append(t)}}))}))},738:function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelector(".slide-menu").addEventListener("click",(function(e){var t=e.target;if(t.classList.contains("mark")){e.preventDefault();var n=t.parentNode.parentNode.querySelector(".sub-menu"),r="";"-"===t.innerHTML&&(r="+",n.style.display="none"),"+"===t.innerHTML&&(r="-",n.style.display="unset"),t.innerHTML=r}}))}))}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n(738),n(127),n(447),n(219)}(); !function(){var e={738:function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelector(".slide-menu").addEventListener("click",(function(e){var n=e.target;if(n.classList.contains("mark")){e.preventDefault();var t=n.parentNode.parentNode.querySelector(".sub-menu"),r="";"-"===n.innerHTML&&(r="+",t.style.display="none"),"+"===n.innerHTML&&(r="-",t.style.display="unset"),n.innerHTML=r}}))}))}},n={};!function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports}(738)}();