This commit is contained in:
1
docs/overrides/.icons/github.svg
Normal file
1
docs/overrides/.icons/github.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.001 2C6.47598 2 2.00098 6.475 2.00098 12C2.00098 16.425 4.86348 20.1625 8.83848 21.4875C9.33848 21.575 9.52598 21.275 9.52598 21.0125C9.52598 20.775 9.51348 19.9875 9.51348 19.15C7.00098 19.6125 6.35098 18.5375 6.15098 17.975C6.03848 17.6875 5.55098 16.8 5.12598 16.5625C4.77598 16.375 4.27598 15.9125 5.11348 15.9C5.90098 15.8875 6.46348 16.625 6.65098 16.925C7.55098 18.4375 8.98848 18.0125 9.56348 17.75C9.65098 17.1 9.91348 16.6625 10.201 16.4125C7.97598 16.1625 5.65098 15.3 5.65098 11.475C5.65098 10.3875 6.03848 9.4875 6.67598 8.7875C6.57598 8.5375 6.22598 7.5125 6.77598 6.1375C6.77598 6.1375 7.61348 5.875 9.52598 7.1625C10.326 6.9375 11.176 6.825 12.026 6.825C12.876 6.825 13.726 6.9375 14.526 7.1625C16.4385 5.8625 17.276 6.1375 17.276 6.1375C17.826 7.5125 17.476 8.5375 17.376 8.7875C18.0135 9.4875 18.401 10.375 18.401 11.475C18.401 15.3125 16.0635 16.1625 13.8385 16.4125C14.201 16.725 14.5135 17.325 14.5135 18.2625C14.5135 19.6 14.501 20.675 14.501 21.0125C14.501 21.275 14.6885 21.5875 15.1885 21.4875C19.259 20.1133 21.9999 16.2963 22.001 12C22.001 6.475 17.526 2 12.001 2Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
1
docs/overrides/.icons/moon.svg
Normal file
1
docs/overrides/.icons/moon.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M10 6C10 10.4183 13.5817 14 18 14C19.4386 14 20.7885 13.6203 21.9549 12.9556C21.4738 18.0302 17.2005 22 12 22C6.47715 22 2 17.5228 2 12C2 6.79948 5.9698 2.52616 11.0444 2.04507C10.3797 3.21152 10 4.56142 10 6ZM4 12C4 16.4183 7.58172 20 12 20C14.9654 20 17.5757 18.3788 18.9571 15.9546C18.6407 15.9848 18.3214 16 18 16C12.4772 16 8 11.5228 8 6C8 5.67863 8.01524 5.35933 8.04536 5.04293C5.62119 6.42426 4 9.03458 4 12ZM18.1642 2.29104L19 2.5V3.5L18.1642 3.70896C17.4476 3.8881 16.8881 4.4476 16.709 5.16417L16.5 6H15.5L15.291 5.16417C15.1119 4.4476 14.5524 3.8881 13.8358 3.70896L13 3.5V2.5L13.8358 2.29104C14.5524 2.1119 15.1119 1.5524 15.291 0.835829L15.5 0H16.5L16.709 0.835829C16.8881 1.5524 17.4476 2.1119 18.1642 2.29104ZM23.1642 7.29104L24 7.5V8.5L23.1642 8.70896C22.4476 8.8881 21.8881 9.4476 21.709 10.1642L21.5 11H20.5L20.291 10.1642C20.1119 9.4476 19.5524 8.8881 18.8358 8.70896L18 8.5V7.5L18.8358 7.29104C19.5524 7.1119 20.1119 6.5524 20.291 5.83583L20.5 5H21.5L21.709 5.83583C21.8881 6.5524 22.4476 7.1119 23.1642 7.29104Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
1
docs/overrides/.icons/search.svg
Normal file
1
docs/overrides/.icons/search.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 490 B |
1
docs/overrides/.icons/sun.svg
Normal file
1
docs/overrides/.icons/sun.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 18C8.68629 18 6 15.3137 6 12C6 8.68629 8.68629 6 12 6C15.3137 6 18 8.68629 18 12C18 15.3137 15.3137 18 12 18ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16ZM11 1H13V4H11V1ZM11 20H13V23H11V20ZM3.51472 4.92893L4.92893 3.51472L7.05025 5.63604L5.63604 7.05025L3.51472 4.92893ZM16.9497 18.364L18.364 16.9497L20.4853 19.0711L19.0711 20.4853L16.9497 18.364ZM19.0711 3.51472L20.4853 4.92893L18.364 7.05025L16.9497 5.63604L19.0711 3.51472ZM5.63604 16.9497L7.05025 18.364L4.92893 20.4853L3.51472 19.0711L5.63604 16.9497ZM23 11V13H20V11H23ZM4 11V13H1V11H4Z"></path></svg>
|
||||
|
After Width: | Height: | Size: 720 B |
130
docs/overrides/main.html
Normal file
130
docs/overrides/main.html
Normal file
@@ -0,0 +1,130 @@
|
||||
{% extends "base.html" %} {% block scripts %} {{ super() }}
|
||||
<script>
|
||||
// Changelog headings use [ver] link-reference syntax, which renders a nested <a> inside
|
||||
// the outer .md-nav__link anchor. Browsers break nested anchors apart (HTML5 adoption
|
||||
// agency algorithm), leaving the TOC anchor empty and the version text as orphaned nodes.
|
||||
// This repairs those empty anchors by reading the text from the sibling nav's aria-label.
|
||||
document$.subscribe(function () {
|
||||
document.querySelectorAll("li.md-nav__item").forEach(function (item) {
|
||||
var link = item.querySelector(":scope > a.md-nav__link");
|
||||
var subNav = item.querySelector(":scope > nav.md-nav[aria-label]");
|
||||
var label = subNav && subNav.getAttribute("aria-label");
|
||||
if (link && label && !link.textContent.trim()) {
|
||||
link.textContent = label;
|
||||
var toRemove = [];
|
||||
for (var node = link.nextSibling; node && node !== subNav; node = node.nextSibling) {
|
||||
toRemove.push(node);
|
||||
}
|
||||
toRemove.forEach(function (n) {
|
||||
n.parentNode && n.parentNode.removeChild(n);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Workaround: zensical's repo source observable re-emits on each instant
|
||||
// navigation, appending another <ul class="md-source__facts"> without
|
||||
// removing the previous one. Keep only the most recent list. The GitHub
|
||||
// stars fetch is async, so an immediate sweep isn't enough — also attach
|
||||
// a MutationObserver so late appends get collapsed too.
|
||||
document.querySelectorAll(".md-source__repository").forEach(function (repo) {
|
||||
var dedupe = function () {
|
||||
var lists = repo.querySelectorAll(":scope > ul.md-source__facts");
|
||||
for (var i = 0; i < lists.length - 1; i++) {
|
||||
lists[i].remove();
|
||||
}
|
||||
};
|
||||
dedupe();
|
||||
if (!repo.__factsObserver) {
|
||||
repo.__factsObserver = new MutationObserver(dedupe);
|
||||
repo.__factsObserver.observe(repo, { childList: true });
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %} {% block extrahead %}
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8G4NQW55PF"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag("js", new Date());
|
||||
|
||||
gtag("config", "G-8G4NQW55PF");
|
||||
gtag("config", "AW-17853694443");
|
||||
</script>
|
||||
|
||||
<meta property="og:type" content="website" />
|
||||
<meta
|
||||
property="og:title"
|
||||
content="{{ config.site_name }}{% if page and page.title and not page.is_homepage %} - {{ page.title | striptags }}{% endif %}"
|
||||
/>
|
||||
<meta
|
||||
property="og:description"
|
||||
content="{% if page and page.meta and page.meta.description %}{{ page.meta.description }}{% else %}{{ config.site_description }}{% endif %}"
|
||||
/>
|
||||
<meta property="og:url" content="{{ page.canonical_url }}" />
|
||||
<meta property="og:site_name" content="{{ config.site_name }}" />
|
||||
<meta property="og:image" content="{{ config.site_url }}assets/og-image.png" />
|
||||
<meta property="og:image:width" content="1200" />
|
||||
<meta property="og:image:height" content="630" />
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta
|
||||
name="twitter:title"
|
||||
content="{{ config.site_name }}{% if page and page.title and not page.is_homepage %} - {{ page.title | striptags }}{% endif %}"
|
||||
/>
|
||||
<meta
|
||||
name="twitter:description"
|
||||
content="{% if page and page.meta and page.meta.description %}{{ page.meta.description }}{% else %}{{ config.site_description }}{% endif %}"
|
||||
/>
|
||||
<meta name="twitter:image" content="{{ config.site_url }}assets/og-image.png" />
|
||||
{% endblock %} {# Match Material: `.md-content` wraps article; `data-md-component="content"` stays
|
||||
on the wrapper for theme JS. #} {% block container %}
|
||||
<div class="md-content" data-md-component="content">
|
||||
<article class="md-content__inner md-typeset">
|
||||
{% if page and ( page.is_homepage | default(false) or (page.url | default("")) == ""
|
||||
or (page.url | default("")) == "/" or (page.url | default("")) == "." ) %}
|
||||
<div class="hero-banner">
|
||||
<a href="https://kreuzberg.dev/" title="Kreuzberg.dev">
|
||||
<img
|
||||
src="{{ 'assets/docs_top_banner.svg' | url }}"
|
||||
alt="Kreuzberg.dev"
|
||||
width="800"
|
||||
height="200"
|
||||
decoding="async"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if "navigation.path" in features %} {% include "partials/path.html" %} {% endif %} {% include
|
||||
"partials/content.html" %} {% if page and page.edit_url %}
|
||||
<p style="margin-top: 2rem; margin-bottom: 0; font-size: 0.75rem; line-height: 1.5">
|
||||
<a
|
||||
href="{{ page.edit_url }}"
|
||||
style="
|
||||
color: var(--md-default-fg-color--lighter, #737373);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 0.15em;
|
||||
"
|
||||
>Edit this page on GitHub</a
|
||||
>
|
||||
</p>
|
||||
{% endif %} {% if page and ( page.is_homepage | default(false) or (page.url | default("")) == ""
|
||||
or (page.url | default("")) == "/" or (page.url | default("")) == "." ) %}
|
||||
<div class="cloud-banner">
|
||||
<a href="https://kreuzberg.dev/" title="Kreuzberg.dev">
|
||||
<img
|
||||
src="{{ 'assets/docs_bottom_banner.svg' | url }}"
|
||||
alt="Kreuzberg.dev"
|
||||
width="800"
|
||||
height="200"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</article>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user