diff --git a/mkdocs/assets/stylesheets/extra.css b/mkdocs/assets/stylesheets/extra.css index 3981492d..8e2ad1fb 100644 --- a/mkdocs/assets/stylesheets/extra.css +++ b/mkdocs/assets/stylesheets/extra.css @@ -272,6 +272,39 @@ border: 0; } +/* —————————————————————————————————————————— + LLM markdown pill (top-right of reference pages) + —————————————————————————————————————————— */ +.llm-md-link { + float: right; + margin: 0.65rem 0 0.5rem 1rem; + padding: 0.2rem 0.65rem; + border: 1px solid var(--wiggly-border); + border-radius: 999px; + background: transparent; + color: var(--wiggly-muted); + text-decoration: none; + font-size: 0.7rem; + line-height: 1.5; + transition: color 0.15s ease, border-color 0.15s ease; +} + +.llm-md-link:hover { + color: var(--md-primary-fg-color); + border-color: var(--wiggly-border-hover); +} + +.llm-md-link code { + background: none; + padding: 0; + font-size: inherit; + color: inherit; +} + +.llm-md-link__arrow { + margin-left: 0.15rem; +} + /* —————————————————————————————————————————— Small-screen adjustments —————————————————————————————————————————— */ diff --git a/mkdocs/overrides/main.html b/mkdocs/overrides/main.html index dfa7a5d3..194d9bfd 100644 --- a/mkdocs/overrides/main.html +++ b/mkdocs/overrides/main.html @@ -8,3 +8,13 @@ plausible.init() {% endblock %} + +{% block content %} + {% if page and "reference/" in page.url and page.url != "reference/" %} + {% set slug = page.url | replace("reference/", "") | replace("/", "") %} + + Feeding a clanker? Grab this page as raw .md + + {% endif %} + {% include "partials/content.html" %} +{% endblock %} diff --git a/zensical.toml b/zensical.toml index dd9b4974..aa28f335 100644 --- a/zensical.toml +++ b/zensical.toml @@ -79,13 +79,22 @@ features = [ repo = "fontawesome/brands/github" [project.theme.font] -text = "PT Sans" -code = "Fira Mono" +text = "Geist" +code = "Geist Mono" [[project.theme.palette]] scheme = "default" primary = "grey" accent = "blue grey" +toggle.icon = "lucide/sun" +toggle.name = "Switch to dark mode" + +[[project.theme.palette]] +scheme = "slate" +primary = "grey" +accent = "blue grey" +toggle.icon = "lucide/moon" +toggle.name = "Switch to light mode" # ---------------------------------------------------------------------------- # Extra