Minimalize docs sidebar design #3
Some checks failed
Publish / publish (push) Has been cancelled

Delete templates/docs.html as there is no need for a separate toc site.
The new design is optimized for the sidebar.
This commit is contained in:
david-swift 2025-04-01 15:57:02 +02:00
parent 905af6f9bc
commit 31f2fa7bac
5 changed files with 5 additions and 30 deletions

View File

@ -1,7 +1,6 @@
+++
title = "Docs"
sort_by = "weight"
template = "docs.html"
page_template = "documentation_page.html"
[extra]

View File

@ -1,5 +1,4 @@
#docs {
background-color: var(--fg-muted-1-soft);
padding: 0.5em 1em;
border-radius: var(--rounded-corner);
min-width: 200px;
@ -50,7 +49,8 @@
article {
margin-left: auto;
margin-right: auto;
max-width: min(var(--container-width), 90%);
max-width: var(--container-width);
min-width: var(--min-container-width);
}
}

View File

@ -72,6 +72,7 @@ body {
main {
margin: 4.25rem auto 4rem;
max-width: var(--max-container-width)
}
.restricted-width {

View File

@ -74,6 +74,8 @@
// CONTAINERS
--container-width: 720px;
--max-container-width: 1500px;
--min-container-width: 350px;
// CORNERS
--rounded-corner: 0.75rem;

View File

@ -1,27 +0,0 @@
{% extends "restricted_base.html" %}
{% block content %}
<h1>{{ section.title }}</h1>
{{ section.content | safe }}
{# <div class="sparkline">
{%- if paginator.pages -%}
{%- set pages = paginator.pages -%}
{%- elif section.pages -%}
{%- set pages = section.pages -%}
{%- else -%}
{%- set pages = term.pages -%}
{%- endif -%}
{%- for month, pages in pages | group_by(attribute="month") -%}
{%- set posts_per_bar = pages | length -%}
{%- set bar_height = pages | length * 10 -%}
<div style="--bar-height: {{ bar_height ~ '%' }}" title="{{ macros_translate::translate(key='posts', number=posts_per_bar, default='$NUMBER posts in total', language_strings=language_strings) }}"></div>
{%- endfor -%}
</div> #}
{% include "partials/docs_toc.html" %}
{% endblock content %}