Fix site layouts after formatting (#1962)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-11-07 16:16:24 +02:00
committed by GitHub
parent 02355427b0
commit 2bb1611e1b
12 changed files with 391 additions and 444 deletions

View File

@@ -41,6 +41,11 @@
<SqlCodeStyleSettings version="7"> <SqlCodeStyleSettings version="7">
<option name="DISABLE_FORMATTING" value="true"/> <option name="DISABLE_FORMATTING" value="true"/>
</SqlCodeStyleSettings> </SqlCodeStyleSettings>
<codeStyleSettings language="HTML">
<arrangement>
<rules/>
</arrangement>
</codeStyleSettings>
<codeStyleSettings language="JAVA"> <codeStyleSettings language="JAVA">
<option name="RIGHT_MARGIN" value="144"/> <option name="RIGHT_MARGIN" value="144"/>
<option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1"/> <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1"/>

1
site/.gitignore vendored
View File

@@ -2,6 +2,7 @@
content/rest-api/*.json content/rest-api/*.json
content/rest-api/*.html content/rest-api/*.html
content/rest-api/*.yaml content/rest-api/*.yaml
static/rest-api/*.html
# npm leftover # npm leftover
node_modules node_modules
package.json package.json

View File

@@ -16,95 +16,95 @@ metadataformat = "toml"
canonifyurls = false canonifyurls = false
[markup] [markup]
[markup.goldmark] [markup.goldmark]
[markup.goldmark.extensions] [markup.goldmark.extensions]
typographer = true typographer = true
[markup.goldmark.renderer] [markup.goldmark.renderer]
unsafe = true unsafe = true
[markup.highlight] [markup.highlight]
codeFences = false codeFences = false
[params] [params]
# General information # General information
author = "The Eclipse hawkBit Project" author = "The Eclipse hawkBit Project"
description = "IoT. Update. Device." description = "IoT. Update. Device."
copyright = "The Eclipse hawkBit Project" copyright = "The Eclipse hawkBit Project"
logo = "images/hawkbit_icon.png" logo = "images/hawkbit_icon.png"
favicon = "images/favicon.ico" favicon = "images/favicon.ico"
# Repository # Repository
provider = "GitHub" provider = "GitHub"
repo_url = "https://github.com/eclipse-hawkbit/hawkbit" repo_url = "https://github.com/eclipse-hawkbit/hawkbit"
permalink = "#" permalink = "#"
# Custom assets # Custom assets
custom_css = ["css/hawkbit.css", "//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css"] custom_css = ["css/hawkbit.css","//www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css"]
custom_js = [] custom_js = []
# Syntax highlighting theme # Syntax highlighting theme
highlight_css = "" highlight_css = ""
[params.palette] [params.palette]
primary = "deep-purple" primary = "deep-purple"
accent = "light-green" accent = "light-green"
[params.font] [params.font]
text = "Ubuntu" text = "Ubuntu"
code = "Ubuntu Mono" code = "Ubuntu Mono"
[social] [social]
github = "eclipse/hawkbit" github = "eclipse/hawkbit"
gitter = "eclipse/hawkbit" gitter = "eclipse/hawkbit"
docker = "hawkbit" docker = "hawkbit"
[[menu.main]] [[menu.main]]
name = "What is hawkBit" name = "What is hawkBit"
url = "/whatishawkbit/" url = "/whatishawkbit/"
weight = 10 weight = 10
[[menu.main]] [[menu.main]]
name = "Getting started" name = "Getting started"
url = "/gettingstarted/" url = "/gettingstarted/"
weight = 20 weight = 20
[[menu.main]] [[menu.main]]
name = "Guides" name = "Guides"
url = "/guides/" url = "/guides/"
weight = 30 weight = 30
[[menu.main]] [[menu.main]]
name = "Features" name = "Features"
url = "/features/" url = "/features/"
weight = 40 weight = 40
[[menu.main]] [[menu.main]]
name = "Concepts" name = "Concepts"
url = "/concepts/" url = "/concepts/"
weight = 50 weight = 50
[[menu.main]] [[menu.main]]
name = "Architecture" name = "Architecture"
url = "/architecture/" url = "/architecture/"
weight = 60 weight = 60
[[menu.main]] [[menu.main]]
name = "APIs" name = "APIs"
url = "/apis/" url = "/apis/"
weight = 80 weight = 80
[[menu.main]] [[menu.main]]
name = "Release notes" name = "Release notes"
url = "/release-notes/" url = "/release-notes/"
weight = 90 weight = 90
[[menu.main]] [[menu.main]]
name = "Blog" name = "Blog"
url = "/blog/" url = "/blog/"
weight = 100 weight = 100
[[menu.main]] [[menu.main]]
name = "Community" name = "Community"
url = "/community/" url = "/community/"
weight = 110 weight = 110

View File

@@ -1,54 +1,54 @@
{{ partial "head" . }} {{ partial "head" . }}
{{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }} {{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }}
{{ $repo_id := replace .Site.Params.repo_url "https://github.com/" ""}} {{ $repo_id := replace .Site.Params.repo_url "https://github.com/" ""}}
{{ .Scratch.Set "repo_id" $repo_id }} {{ .Scratch.Set "repo_id" $repo_id }}
{{ end }} {{ end }}
<div class="backdrop"> <div class="backdrop">
<div class="backdrop-paper"></div> <div class="backdrop-paper"></div>
</div> </div>
<input class="toggle" id="toggle-drawer" type="checkbox"> <input class="toggle" type="checkbox" id="toggle-drawer">
<input class="toggle" id="toggle-search" type="checkbox"> <input class="toggle" type="checkbox" id="toggle-search">
<label class="toggle-button overlay" for="toggle-drawer"></label> <label class="toggle-button overlay" for="toggle-drawer"></label>
<header class="header"> <header class="header">
{{ partial "header" . }} {{ partial "header" . }}
</header> </header>
<main class="main"> <main class="main">
<div class="drawer"> <div class="drawer">
{{ partial "drawer" . }} {{ partial "drawer" . }}
</div> </div>
<article class="article"> <article class="article">
<div class="wrapper"> <div class="wrapper">
<h1>Pages in {{ .Title }}</h1> <h1>Pages in {{ .Title }}</h1>
{{ range .Data.Pages }} {{ range .Data.Pages }}
<a href="{{ .Permalink }}" title="{{ .Title }}"> <a href="{{ .Permalink }}" title="{{ .Title }}">
<h2>{{ .Title }}</h2> <h2>{{ .Title }}</h2>
</a> </a>
<br> <br>
{{ printf "%s" .Summary | markdownify }} <br><a href="{{ .Permalink }}">[...]</a> {{ printf "%s" .Summary | markdownify }} <br><a href="{{ .Permalink }}">[...]</a>
<hr> <hr>
{{ end }} {{ end }}
{{ partial "copyright.html" . }} {{ partial "copyright.html" . }}
</div> </div>
</article> </article>
<div aria-live="polite" class="results" role="status"> <div class="results" role="status" aria-live="polite">
<div class="scrollable"> <div class="scrollable">
<div class="wrapper"> <div class="wrapper">
<div class="meta"></div> <div class="meta"></div>
<div class="list"></div> <div class="list"></div>
</div> </div>
</div> </div>
</div> </div>
</main> </main>
{{ partial "footer_js" . }} {{ partial "footer_js" . }}

View File

@@ -1,49 +1,49 @@
{{ partial "head" . }} {{ partial "head" . }}
{{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }} {{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }}
{{ $repo_id := replace .Site.Params.repo_url "https://github.com/" ""}} {{ $repo_id := replace .Site.Params.repo_url "https://github.com/" ""}}
{{ .Scratch.Set "repo_id" $repo_id }} {{ .Scratch.Set "repo_id" $repo_id }}
{{ end }} {{ end }}
<div class="backdrop"> <div class="backdrop">
<div class="backdrop-paper"></div> <div class="backdrop-paper"></div>
</div> </div>
<input class="toggle" id="toggle-drawer" type="checkbox"> <input class="toggle" type="checkbox" id="toggle-drawer">
<input class="toggle" id="toggle-search" type="checkbox"> <input class="toggle" type="checkbox" id="toggle-search">
<label class="toggle-button overlay" for="toggle-drawer"></label> <label class="toggle-button overlay" for="toggle-drawer"></label>
<header class="header"> <header class="header">
{{ partial "header" . }} {{ partial "header" . }}
</header> </header>
<main class="main"> <main class="main">
<div class="drawer"> <div class="drawer">
{{ partial "drawer" . }} {{ partial "drawer" . }}
</div> </div>
<article class="article"> <article class="article">
<div class="wrapper"> <div class="wrapper">
<h1>{{ .Title }} {{ if .Draft }} (Draft){{ end }}</h1> <h1>{{ .Title }} {{ if .Draft }} (Draft){{ end }}</h1>
{{ .Content }} {{ .Content }}
{{ partial "copyright.html" . }} {{ partial "copyright.html" . }}
<footer class="footer"> <footer class="footer">
{{ partial "footer" . }} {{ partial "footer" . }}
</footer> </footer>
</div> </div>
</article> </article>
<div aria-live="polite" class="results" role="status"> <div class="results" role="status" aria-live="polite">
<div class="scrollable"> <div class="scrollable">
<div class="wrapper"> <div class="wrapper">
<div class="meta"></div> <div class="meta"></div>
<div class="list"></div> <div class="list"></div>
</div> </div>
</div> </div>
</div> </div>
</main> </main>
{{ partial "footer_js" . }} {{ partial "footer_js" . }}

View File

@@ -1,16 +1,16 @@
{{ partial "head" . }} {{ partial "head" . }}
{{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }} {{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }}
{{ $repo_id := replace .Site.Params.repo_url "https://github.com/" ""}} {{ $repo_id := replace .Site.Params.repo_url "https://github.com/" ""}}
{{ .Scratch.Set "repo_id" $repo_id }} {{ .Scratch.Set "repo_id" $repo_id }}
{{ end }} {{ end }}
<div class="backdrop"> <div class="backdrop">
<div class="backdrop-paper"></div> <div class="backdrop-paper"></div>
</div> </div>
<input class="toggle" id="toggle-drawer" type="checkbox"> <input class="toggle" type="checkbox" id="toggle-drawer">
<input class="toggle" id="toggle-search" type="checkbox"> <input class="toggle" type="checkbox" id="toggle-search">
<label class="toggle-button overlay" for="toggle-drawer"></label> <label class="toggle-button overlay" for="toggle-drawer"></label>
<header class="header"> <header class="header">
@@ -34,7 +34,7 @@
edge devices as well as more powerful controllers and gateways connected to IP based networking edge devices as well as more powerful controllers and gateways connected to IP based networking
infrastructure. infrastructure.
</p> </p>
<img src="images/hawkBit_overview.jpeg"/> <img src="images/hawkBit_overview.jpeg" />
<h2>Interfaces</h2> <h2>Interfaces</h2>
<p> <p>
hawkBit offers a direct device integration via HTTP or a device management federation API hawkBit offers a direct device integration via HTTP or a device management federation API
@@ -63,7 +63,7 @@
<div style="margin-left: 50%;"> <div style="margin-left: 50%;">
<br/> <br/>
<br/> <br/>
<img src="images/rollout.png"/> <img src="images/rollout.png" />
</div> </div>
</div> </div>
@@ -71,7 +71,7 @@
<div style="width: 100%; overflow: hidden;"> <div style="width: 100%; overflow: hidden;">
<div style="width: 50%; float: left;"> <div style="width: 50%; float: left;">
<br/> <br/>
<img src="images/packagemodel.png"/> <img src="images/packagemodel.png" />
</div> </div>
<div style="margin-left: 55%;"> <div style="margin-left: 55%;">
@@ -88,7 +88,7 @@
</div> </div>
</article> </article>
<div aria-live="polite" class="results" role="status"> <div class="results" role="status" aria-live="polite">
<div class="scrollable"> <div class="scrollable">
<div class="wrapper"> <div class="wrapper">
<div class="meta"></div> <div class="meta"></div>

View File

@@ -1,33 +1,33 @@
<aside class="copyright" role="note"> <aside class="copyright" role="note">
<div class="logo"> <div class="logo">
<a href="https://www.eclipse.org" target="_blank"> <a href="https://www.eclipse.org" target="_blank">
<img src="/hawkbit/images/eclipse_foundation_logo.png"/> <img src="/hawkbit/images/eclipse_foundation_logo.png" />
</a> </a>
</div> </div>
<p class="notice"> <p class="notice">
{{ with .Site.Params.copyright }} {{ with .Site.Params.copyright }}
&copy; {{ now.Year }} {{ . }} &ndash; &copy; {{ now.Year }} {{ . }} &ndash;
{{ end }} {{ end }}
Documentation built with Documentation built with
<a href="https://www.gohugo.io" target="_blank">Hugo</a> <a href="https://www.gohugo.io" target="_blank">Hugo</a>
using the using the
<a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme. <a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme.
</p> </p>
<p class="quickLinks"> <p class="quickLinks">
<a href="http://www.eclipse.org/legal/privacy.php" target="_blank"> <a href="http://www.eclipse.org/legal/privacy.php" target="_blank">
&gt; Privacy Policy &gt; Privacy Policy
</a> </a>
<a href="http://www.eclipse.org/legal/termsofuse.php" target="_blank"> <a href="http://www.eclipse.org/legal/termsofuse.php" target="_blank">
&gt; Terms of Use &gt; Terms of Use
</a> </a>
<a href="http://www.eclipse.org/legal/copyright.php" target="_blank"> <a href="http://www.eclipse.org/legal/copyright.php" target="_blank">
&gt; Copyright Agent &gt; Copyright Agent
</a> </a>
<a href="http://www.eclipse.org/legal" target="_blank"> <a href="http://www.eclipse.org/legal" target="_blank">
&gt; Legal &gt; Legal
</a> </a>
<a href="https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt" target="_blank"> <a href="https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt" target="_blank">
&gt; License &gt; License
</a> </a>
</p> </p>
</aside> </aside>

View File

@@ -1,89 +1,82 @@
<nav aria-label="Navigation"> <nav aria-label="Navigation">
<a class="project" href="{{ with .Site.BaseURL }}{{ . }}{{ else }}{{ .Site.BaseURL }}{{ end }}"> <a href="{{ with .Site.BaseURL }}{{ . }}{{ else }}{{ .Site.BaseURL }}{{ end }}" class="project">
<div class="banner"> <div class="banner">
{{ with .Site.Params.logo }} {{ with .Site.Params.logo }}
<div class="logo"> <div class="logo">
<img src="{{ $.Site.BaseURL }}{{ . }}"> <img src="{{ $.Site.BaseURL }}{{ . }}">
</div>
{{ end }}
<div class="name">
<strong>{{ .Site.Title }}&trade; {{ with .Site.Params.version }}<span class="version">{{ . }}</span>{{
end }}</strong>
{{ with .Scratch.Get "repo_id" }}
<br>
{{ . }}
{{ end }}
</div>
</div>
</a>
<div class="scrollable">
<div class="wrapper">
{{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }}
<ul class="repo">
<li class="repo-download">
<a data-action="sandbox" href="https://hawkbit.eclipseprojects.io" target="_blank"
title="hawkBit Sandbox">
<i class="fas fa-desktop"></i> &nbsp; Sandbox
</a>
</li>
<li class="repo-stars">
<a data-action="star" href="{{ .Site.Params.repo_url }}/stargazers" target="_blank"
title="Stargazers">
<i class="icon icon-star"></i> Stars
<span class="count">&ndash;</span>
</a>
</li>
</ul>
<hr>
{{ end }}
<div class="toc">
{{ if gt (len .Site.Menus.main) 0 }}
<ul>
{{ partial "nav" . }}
</ul>
{{ end }}
{{ if isset .Site.Params "author" }}
<hr>
<ul>
<li>
<a href="https://opensource.org/licenses/EPL-2.0" target="_blank" title="License">
<img src="https://img.shields.io/badge/License-EPL%202.0-green.svg"/>
</a>
</li>
<li>
<a href="https://github.com/eclipse-hawkbit/hawkbit/actions/workflows/verify.yml"
target="_blank" title="License">
<img src="https://github.com/eclipse-hawkbit/hawkbit/actions/workflows/verify.yml/badge.svg?branch=master"/>
</a>
</li>
<li>
<a href="https://sonarcloud.io/summary/new_code?id=eclipse-hawkbit_hawkbit"
target="_blank" title="Sonarcloud Status">
<img src="https://sonarcloud.io/api/project_badges/measure?project=eclipse-hawkbit_hawkbit&metric=alert_status"/>
</a>
</li>
<li>
<a href="https://search.maven.org/search?q=g:org.eclipse.hawkbit" target="_blank"
title="Maven Central Status">
<img src="https://img.shields.io/maven-central/v/org.eclipse.hawkbit/hawkbit-parent?label=maven-central&color=blue"/>
</a>
</li>
<li>
<a href="https://gitter.im/eclipse/hawkbit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"
target="_blank" title="Chat on Gitter">
<img src="https://badges.gitter.im/eclipse/hawkbit.svg"/>
</a>
</li>
</ul>
{{ end }}
</div>
</div> </div>
{{ end }}
<div class="name">
<strong>{{ .Site.Title }}&trade; {{ with .Site.Params.version }}<span class="version">{{ . }}</span>{{ end }}</strong>
{{ with .Scratch.Get "repo_id" }}
<br>
{{ . }}
{{ end }}
</div>
</div> </div>
</a>
<div class="scrollable">
<div class="wrapper">
{{ if (eq (trim .Site.Params.provider " " | lower) "github") | and (isset .Site.Params "repo_url") }}
<ul class="repo">
<li class="repo-download">
<a href="https://hawkbit.eclipseprojects.io" target="_blank" title="hawkBit Sandbox" data-action="sandbox">
<i class="fas fa-desktop"></i> &nbsp; Sandbox
</a>
</li>
<li class="repo-stars">
<a href="{{ .Site.Params.repo_url }}/stargazers" target="_blank" title="Stargazers" data-action="star">
<i class="icon icon-star"></i> Stars
<span class="count">&ndash;</span>
</a>
</li>
</ul>
<hr>
{{ end }}
<div class="toc">
{{ if gt (len .Site.Menus.main) 0 }}
<ul>
{{ partial "nav" . }}
</ul>
{{ end }}
{{ if isset .Site.Params "author" }}
<hr>
<ul>
<li>
<a href="https://opensource.org/licenses/EPL-2.0" title="License" target="_blank">
<img src="https://img.shields.io/badge/License-EPL%202.0-green.svg" />
</a>
</li>
<li>
<a href="https://github.com/eclipse-hawkbit/hawkbit/actions/workflows/verify.yml" title="License" target="_blank">
<img src="https://github.com/eclipse-hawkbit/hawkbit/actions/workflows/verify.yml/badge.svg?branch=master" />
</a>
</li>
<li>
<a href="https://sonarcloud.io/summary/new_code?id=eclipse-hawkbit_hawkbit" title="Sonarcloud Status" target="_blank">
<img src="https://sonarcloud.io/api/project_badges/measure?project=eclipse-hawkbit_hawkbit&metric=alert_status" />
</a>
</li>
<li>
<a href="https://search.maven.org/search?q=g:org.eclipse.hawkbit" title="Maven Central Status" target="_blank">
<img src="https://img.shields.io/maven-central/v/org.eclipse.hawkbit/hawkbit-parent?label=maven-central&color=blue" />
</a>
</li>
<li>
<a href="https://gitter.im/eclipse/hawkbit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge" title="Chat on Gitter" target="_blank">
<img src="https://badges.gitter.im/eclipse/hawkbit.svg" />
</a>
</li>
</ul>
{{ end }}
</div>
</div>
</div>
</nav> </nav>

View File

@@ -1,87 +1,60 @@
<script> <script>
{ {{ with .Scratch.Get "repo_id" }}
{ var base_url = '{{ (printf "%s" $.Site.BaseURL) | safeJS }}';
with . var repo_id = '{{ . | safeJS }}';
Scratch.Get {{ else }}
"repo_id" var base_url = '';
} var repo_id = '';
} {{ end }}
var base_url = '{{ (printf "%s" $.Site.BaseURL) | safeJS }}'; </script>
var repo_id = '{{ . | safeJS }}';
{
{ else
}
}
var base_url = '';
var repo_id = '';
{
{
end
}
}
</script>
<script javascripts src="{{ "/application.js" | absURL }}"></script> <script src="{{ "javascripts/application.js" | absURL }}"></script>
{{ range .Site.Params.custom_js }} {{ range .Site.Params.custom_js }}
<script src="{{ . | absURL }}"></script> <script src="{{ . | absURL }}"></script>
{{ end }} {{ end }}
<script> <script>
{ {{ "/* Add headers to scrollspy */" | safeJS }}
{ var headers = document.getElementsByTagName("h2");
"/* Add headers to scrollspy */" | safeJS var scrollspy = document.getElementById('scrollspy');
}
}
var headers = document.getElementsByTagName("h2");
var scrollspy = document.getElementById('scrollspy');
if (scrollspy) { if(scrollspy) {
if (headers.length > 0) { if(headers.length > 0) {
for (var i = 0; i < headers.length; i++) { for(var i = 0; i < headers.length; i++) {
var li = document.createElement("li"); var li = document.createElement("li");
li.setAttribute("class", "anchor"); li.setAttribute("class", "anchor");
var a = document.createElement("a"); var a = document.createElement("a");
if (!headers[i].id) if(!headers[i].id)
a.setAttribute("href", headers[i].parentNode.href); a.setAttribute("href", headers[i].parentNode.href);
else else
a.setAttribute("href", "#" + headers[i].id); a.setAttribute("href", "#" + headers[i].id);
a.setAttribute("title", headers[i].innerHTML); a.setAttribute("title", headers[i].innerHTML);
a.innerHTML = headers[i].innerHTML; a.innerHTML = headers[i].innerHTML;
li.appendChild(a); li.appendChild(a);
scrollspy.appendChild(li); scrollspy.appendChild(li);
} }
} else { } else {
scrollspy.parentElement.removeChild(scrollspy) scrollspy.parentElement.removeChild(scrollspy)
} }
{ {{ "/* Add permanent link next to the headers */" | safeJS }}
{ var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6");
"/* Add permanent link next to the headers */" | safeJS
}
}
var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6");
for (var i = 0; i < headers.length; i++) { for(var i = 0; i < headers.length; i++) {
var a = document.createElement("a"); var a = document.createElement("a");
a.setAttribute("class", "headerlink"); a.setAttribute("class", "headerlink");
a.setAttribute("href", "#" + headers[i].id); a.setAttribute("href", "#" + headers[i].id);
a.setAttribute("title", "Permanent link"); a.setAttribute("title", "Permanent link");
a.innerHTML = { a.innerHTML = {{ or .Site.Params.permalink "¶" }};
{
or.Site.Params.permalink
"¶"
}
}
;
headers[i].appendChild(a); headers[i].appendChild(a);
} }
} }
</script> </script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script> <script>hljs.initHighlightingOnLoad();</script>
</body> </body>
</html> </html>

View File

@@ -1,103 +1,83 @@
<!DOCTYPE html> <!DOCTYPE html>
<!--[if lt IE 7 ]> <!--[if lt IE 7 ]><html class="no-js ie6"><![endif]-->
<html class="no-js ie6"><![endif]--> <!--[if IE 7 ]><html class="no-js ie7"><![endif]-->
<!--[if IE 7 ]> <!--[if IE 8 ]><html class="no-js ie8"><![endif]-->
<html class="no-js ie7"><![endif]--> <!--[if IE 9 ]><html class="no-js ie9"><![endif]-->
<!--[if IE 8 ]> <!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
<html class="no-js ie8"><![endif]-->
<!--[if IE 9 ]>
<html class="no-js ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html class="no-js"> <!--<![endif]-->
<head .Site.LanguageCode end with {{ {{ }} }}lang="{{ . }}"> <head {{ with .Site.LanguageCode }}lang="{{ . }}"{{ end }}>
<meta charset="utf-8"> <meta charset="utf-8">
<meta content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1" name="viewport"> <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
<meta content="IE=10" http-equiv="X-UA-Compatible"/> <meta http-equiv="X-UA-Compatible" content="IE=10" />
<title>{{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}</title> <title>{{ .Title }}{{ if not .IsHome }} - {{ .Site.Title }}{{ end }}</title>
{{ hugo.Generator }} {{ hugo.Generator }}
{{ with .Site.Params.description }} {{ with .Site.Params.description }}
<meta content="{{ . }}" name="description"> <meta name="description" content="{{ . }}">
{{ end }} {{ end }}
<link href="{{ .Permalink }}" rel="canonical"> <link rel="canonical" href="{{ .Permalink }}">
{{ with .Site.Params.author }} {{ with .Site.Params.author }}
<meta content="{{ . }}" name="author"> <meta name="author" content="{{ . }}">
{{ end }} {{ end }}
<meta content="{{ .Permalink }}" property="og:url"> <meta property="og:url" content="{{ .Permalink }}">
{{ with .Site.Title }} {{ with .Site.Title }}<meta property="og:title" content="{{ . }}">{{ end }}
<meta content="{{ . }}" property="og:title"> {{ with .Site.Params.logo }}<meta property="og:image" content="{{ . | absURL }}">{{ end }}
{{ end }} {{ with .Site.Title }}<meta name="apple-mobile-web-app-title" content="{{ . }}">{{ end }}
{{ with .Site.Params.logo }} <meta name="apple-mobile-web-app-capable" content="yes">
<meta content="{{ . | absURL }}" property="og:image"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
{{ end }}
{{ with .Site.Title }}
<meta content="{{ . }}" name="apple-mobile-web-app-title">
{{ end }}
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black-translucent" name="apple-mobile-web-app-status-bar-style">
{{ if .Params.redirectURL }} {{ if .Params.redirectURL }}<meta http-equiv="refresh" content="1; url={{ .Params.redirectURL }}"/>{{ end }}
<meta content="1; url={{ .Params.redirectURL }}" http-equiv="refresh"/>
{{ end }}
<link href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ " images rel="shortcut icon" <link rel="shortcut icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
type="image/x-icon" <link rel="icon" type="image/x-icon" href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ "images/favicon.ico" | absURL }}{{ end }}">
/favicon.ico" | absURL }}{{ end }}">
<link href="{{ with .Site.Params.favicon }}{{ . | absURL }}{{ else }}{{ " images rel="icon" type="image/x-icon"
/favicon.ico" | absURL }}{{ end }}">
<style> <style>
@font-face { @font-face {
font-family: 'Icon'; font-family: 'Icon';
src: url('{{ "fonts/icon.eot?52m981" | absURL }}'); src: url('{{ "fonts/icon.eot?52m981" | absURL }}');
src: url('{{ "fonts/icon.eot?#iefix52m981" | absURL }}') format('embedded-opentype'), src: url('{{ "fonts/icon.eot?#iefix52m981" | absURL }}')
url('{{ "fonts/icon.woff?52m981" | absURL }}') format('woff'), format('embedded-opentype'),
url('{{ "fonts/icon.ttf?52m981" | absURL }}') format('truetype'), url('{{ "fonts/icon.woff?52m981" | absURL }}')
url('{{ "fonts/icon.svg?52m981#icon" | absURL }}') format('svg'); format('woff'),
font-weight: normal; url('{{ "fonts/icon.ttf?52m981" | absURL }}')
font-style: normal; format('truetype'),
} url('{{ "fonts/icon.svg?52m981#icon" | absURL }}')
format('svg');
font-weight: normal;
font-style: normal;
}
</style> </style>
<link href="{{ " rel="stylesheet" stylesheets <link rel="stylesheet" href="{{ "stylesheets/application.css" | absURL }}">
/application.css" | absURL }}"> <link rel="stylesheet" href="{{ "stylesheets/temporary.css" | absURL }}">
<link href="{{ " rel="stylesheet" stylesheets <link rel="stylesheet" href="{{ "stylesheets/palettes.css" | absURL }}">
/temporary.css" | absURL }}"> <link rel="stylesheet" href="{{ with .Site.Params.highlight_css }}{{ . | absURL }}{{ else }}{{ "stylesheets/highlight/highlight.css" | absURL }}{{ end }}">
<link href="{{ " rel="stylesheet" stylesheets
/palettes.css" | absURL }}">
<link href="{{ with .Site.Params.highlight_css }}{{ . | absURL }}{{ else }}{{ " rel="stylesheet" stylesheets
/highlight/highlight.css" | absURL }}{{ end }}">
{{/* set default values if no custom ones are defined */}} {{/* set default values if no custom ones are defined */}}
{{ $text := or .Site.Params.font.text "Roboto" }} {{ $text := or .Site.Params.font.text "Roboto" }}
{{ $code := or .Site.Params.font.code "Roboto Mono" }} {{ $code := or .Site.Params.font.code "Roboto Mono" }}
<link href="//fonts.googleapis.com/css?family={{ $text }}:400,700|{{ replace $code " rel="stylesheet" <link rel="stylesheet" href="//fonts.googleapis.com/css?family={{ $text }}:400,700|{{ replace $code " " "+" | safeURL }}">
" "+" | safeURL }}">
<style> <style>
body, input { body, input {
font-family: '{{ $text }}', Helvetica, Arial, sans-serif; font-family: '{{ $text }}', Helvetica, Arial, sans-serif;
} }
pre, code {
pre, code { font-family: '{{ $code }}', 'Courier New', 'Courier', monospace;
font-family: '{{ $code }}', 'Courier New', 'Courier', monospace; }
}
</style> </style>
{{ range .Site.Params.custom_css }} {{ range .Site.Params.custom_css }}
<link href="{{ . | absURL }}" rel="stylesheet"> <link rel="stylesheet" href="{{ . | absURL }}">
{{ end }} {{ end }}
<script javascripts src="{{ " <script src="{{ "javascripts/modernizr.js" | absURL }}"></script>
/modernizr.js" | absURL }}"></script>
<script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script> <script src="//www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
{{ with .OutputFormats.Get "RSS" }} {{ with .OutputFormats.Get "RSS" }}
<link href="{{ . }}" rel="alternate" title="{{ $.Site.Title }}" type="application/rss+xml"/> <link href="{{ . }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
<link href="{{ . }}" rel="feed" title="{{ $.Site.Title }}" type="application/rss+xml"/> <link href="{{ . }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{ end }} {{ end }}
<link crossorigin="anonymous" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" rel="stylesheet"> </head>
</head> <body class="{{ with .Site.Params.palette.primary }}palette-primary-{{ . }}{{end }} {{ with .Site.Params.palette.accent }}palette-accent-{{ . }}{{ end }}">
<body class="{{ with .Site.Params.palette.primary }}palette-primary-{{ . }}{{end }} {{ with .Site.Params.palette.accent }}palette-accent-{{ . }}{{ end }}">

View File

@@ -1,62 +1,57 @@
<nav aria-label="Header"> <nav aria-label="Header">
<div class="bar default"> <div class="bar default">
<div aria-label="Menu" class="button button-menu" role="button"> <div class="button button-menu" role="button" aria-label="Menu">
<label class="toggle-button icon icon-menu" for="toggle-drawer"> <label class="toggle-button icon icon-menu" for="toggle-drawer">
<span></span> <span></span>
</label> </label>
</div>
<div class="stretch">
<div class="title">
{{ .Title | safeHTML }}
</div>
</div>
{{ with .Site.Social.twitter }}
<div aria-label="Twitter" class="button button-twitter" role="button">
<a class="toggle-button icon icon-twitter" href="https://twitter.com/{{ . }}" target="_blank"
title="@{{ . }} on Twitter"></a>
</div>
{{ end }}
{{ with .Site.Social.github }}
<div aria-label="GitHub" class="button button-github" role="button">
<a class="toggle-button icon icon-github" href="https://github.com/{{ . }}" target="_blank"
title="@{{ . }} on GitHub"></a>
</div>
{{ end }}
{{ with .Site.Social.gitter }}
<div aria-label="Gitter" class="button button-github" role="button">
<a class="toggle-button icon fab fa-gitter" href="https://gitter.im/{{ . }}" target="_blank"
title="@{{ . }} on Gitter"></a>
</div>
{{ end }}
{{ with .Site.Social.docker }}
<div aria-label="Docker" class="button button-github" role="button">
<a class="toggle-button icon fab fa-docker" href="https://hub.docker.com/u/{{ . }}" target="_blank"
title="{{ . }} on Docker Hub"></a>
</div>
{{ end }}
<!-- TODO: disabled until Hugo supports the generation of a content index natively
<div class="button button-search" role="button" aria-label="Search">
<label class="toggle-button icon icon-search" title="Search" for="toggle-search"></label>
</div>
-->
</div> </div>
<div class="bar search"> <div class="stretch">
<div aria-label="Close" class="button button-close" role="button"> <div class="title">
<label class="toggle-button icon icon-back" for="toggle-search"></label> {{ .Title | safeHTML }}
</div> </div>
<div class="stretch">
<div class="field">
<input autocapitalize="off" autocomplete="off" autocorrect="off" class="query" placeholder="Search"
spellcheck type="text">
</div>
</div>
<div aria-label="Search" class="button button-reset" role="button">
<button class="toggle-button icon icon-close" id="reset-search"></button>
</div>
</div> </div>
{{ with .Site.Social.twitter }}
<div class="button button-twitter" role="button" aria-label="Twitter">
<a href="https://twitter.com/{{ . }}" title="@{{ . }} on Twitter" target="_blank" class="toggle-button icon icon-twitter"></a>
</div>
{{ end }}
{{ with .Site.Social.github }}
<div class="button button-github" role="button" aria-label="GitHub">
<a href="https://github.com/{{ . }}" title="@{{ . }} on GitHub" target="_blank" class="toggle-button icon icon-github"></a>
</div>
{{ end }}
{{ with .Site.Social.gitter }}
<div class="button button-github" role="button" aria-label="Gitter">
<a href="https://gitter.im/{{ . }}" title="@{{ . }} on Gitter" target="_blank" class="toggle-button icon fab fa-gitter"></a>
</div>
{{ end }}
{{ with .Site.Social.docker }}
<div class="button button-github" role="button" aria-label="Docker">
<a href="https://hub.docker.com/u/{{ . }}" title="{{ . }} on Docker Hub" target="_blank" class="toggle-button icon fab fa-docker"></a>
</div>
{{ end }}
<!-- TODO: disabled until Hugo supports the generation of a content index natively
<div class="button button-search" role="button" aria-label="Search">
<label class="toggle-button icon icon-search" title="Search" for="toggle-search"></label>
</div>
-->
</div>
<div class="bar search">
<div class="button button-close" role="button" aria-label="Close">
<label class="toggle-button icon icon-back" for="toggle-search"></label>
</div>
<div class="stretch">
<div class="field">
<input class="query" type="text" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck>
</div>
</div>
<div class="button button-reset" role="button" aria-label="Search">
<button class="toggle-button icon icon-close" id="reset-search"></button>
</div>
</div>
</nav> </nav>

View File

@@ -2,9 +2,9 @@
{{ $isCurrent := eq .Permalink ($currentMenuEntry.URL | absURL | printf "%s") }} {{ $isCurrent := eq .Permalink ($currentMenuEntry.URL | absURL | printf "%s") }}
<a $isCurrent end href="{{ $currentMenuEntry.URL }}" if title="{{ $currentMenuEntry.Name }}" {{ {{ }} }}class="current"> <a {{ if $isCurrent }}class="current"{{ end }} title="{{ $currentMenuEntry.Name }}" href="{{ $currentMenuEntry.URL }}">
{{ $currentMenuEntry.Pre }} {{ $currentMenuEntry.Pre }}
{{ $currentMenuEntry.Name }} {{ $currentMenuEntry.Name }}
</a> </a>
{{ if $isCurrent }} {{ if $isCurrent }}