From ba848208bea997152b29927700db779b6da3c474 Mon Sep 17 00:00:00 2001 From: Ash Keel Date: Sat, 18 Feb 2023 13:18:01 +0100 Subject: [PATCH] add descriptions --- layouts/api/list.html | 1 + themes/strimertul/assets/scss/api.scss | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/layouts/api/list.html b/layouts/api/list.html index de08952..24caf4d 100644 --- a/layouts/api/list.html +++ b/layouts/api/list.html @@ -1,4 +1,5 @@ {{ define "schema" }} + {{ with .description }}
{{ . }}
{{ end }} {{ with .element }} {{ with $.name }} diff --git a/themes/strimertul/assets/scss/api.scss b/themes/strimertul/assets/scss/api.scss index 401b464..fa45c8e 100644 --- a/themes/strimertul/assets/scss/api.scss +++ b/themes/strimertul/assets/scss/api.scss @@ -75,6 +75,18 @@ .schema { margin-top: 1rem; + code > ul:first-of-type > li > blockquote { + padding-top: 0; + } + blockquote { + margin: 0; + padding: 0; + padding-top: 0.5rem; + color: $gray9; + &::before { + content: "// "; + } + } .nameblock { display: none; }