Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions mkdocs/assets/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
—————————————————————————————————————————— */
Expand Down
10 changes: 10 additions & 0 deletions mkdocs/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@
plausible.init()
</script>
{% endblock %}

{% block content %}
{% if page and "reference/" in page.url and page.url != "reference/" %}
{% set slug = page.url | replace("reference/", "") | replace("/", "") %}
<a class="llm-md-link" href="../{{ slug }}.md">
Feeding a clanker? Grab this page as raw <code>.md</code> <span class="llm-md-link__arrow">→</span>
</a>
{% endif %}
{% include "partials/content.html" %}
{% endblock %}
13 changes: 11 additions & 2 deletions zensical.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading