.*?
" . 1) 0 -}} + {{- $firstPara := index (findRE "(?s).*?
" .Content 1) 0 -}} {{- $firstPara := $firstPara | strings.TrimSuffix "" | strings.TrimPrefix "" -}} {{- $first := slicestr $firstPara 0 1 | lower -}} {{- if $prepend -}} @@ -28,13 +25,15 @@ {{- end -}} {{- else -}} {{- if $prepend -}} - {{- $firstPara := index (findRE "(?s)
.*?
" . 1) 0 -}} + {{- $firstPara := index (findRE "(?s).*?
" .Content 1) 0 -}} {{- $firstPara := $firstPara | strings.TrimSuffix "" | strings.TrimPrefix "" -}} {{- $first := slicestr $firstPara 0 1 | lower -}} {{- $prepended := printf "
%s %s%s
" $prepend $first (slicestr $firstPara 1) -}} - {{- replace . $firstPara $prepended | safeHTML -}} + {{- replace .Content $firstPara $prepended | safeHTML -}} {{- else -}} - {{- . -}} + {{- .Content -}} {{- end -}} {{- end -}} +{{- else -}} + {{- errorf "[%s] %q: %q is not a valid glossary term_id, see ./docs/reference/glossary/* for a full list" site.Language.Lang .Page.Path $id -}} {{- end -}} diff --git a/layouts/shortcodes/reference_docs.html b/layouts/shortcodes/reference_docs.html deleted file mode 100644 index f95a7fc374..0000000000 --- a/layouts/shortcodes/reference_docs.html +++ /dev/null @@ -1 +0,0 @@ -API reference docs diff --git a/themes/docsy b/themes/docsy index 1c77bb2448..9f55cf3480 160000 --- a/themes/docsy +++ b/themes/docsy @@ -1 +1 @@ -Subproject commit 1c77bb24483946f11c13f882f836a940b55ad019 +Subproject commit 9f55cf34808d720bcfff9398c9f9bb7fd8fce4ec