Simplify docs sidebar design #3
Some checks are pending
Publish / publish (push) Waiting to run
Some checks are pending
Publish / publish (push) Waiting to run
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:
parent
905af6f9bc
commit
2c0b3fa55e
@ -1,7 +1,6 @@
|
||||
+++
|
||||
title = "Docs"
|
||||
sort_by = "weight"
|
||||
template = "docs.html"
|
||||
page_template = "documentation_page.html"
|
||||
|
||||
[extra]
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -72,6 +72,7 @@ body {
|
||||
|
||||
main {
|
||||
margin: 4.25rem auto 4rem;
|
||||
max-width: var(--max-container-width)
|
||||
}
|
||||
|
||||
.restricted-width {
|
||||
|
||||
@ -74,6 +74,8 @@
|
||||
|
||||
// CONTAINERS
|
||||
--container-width: 720px;
|
||||
--max-container-width: 1500px;
|
||||
--min-container-width: 350px;
|
||||
|
||||
// CORNERS
|
||||
--rounded-corner: 0.75rem;
|
||||
|
||||
@ -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 %}
|
||||
Loading…
x
Reference in New Issue
Block a user