From 548342184e2173d6f39aba2462196ff8b397db8f Mon Sep 17 00:00:00 2001
From: Daniel Baumann
Date: Sun, 6 Aug 2023 09:58:36 +0200
Subject: Adding upstream version 5.3.1+dfsg.
Signed-off-by: Daniel Baumann
---
site/layouts/_default/examples.html | 2 +-
.../warning-color-assistive-technologies.md | 2 +-
site/layouts/partials/docs-navbar.html | 6 ++----
site/layouts/partials/footer.html | 22 +++++++++++-----------
site/layouts/partials/header.html | 2 --
site/layouts/partials/home/masthead.html | 2 --
site/layouts/partials/icons.html | 2 +-
site/layouts/partials/scripts.html | 3 ++-
site/layouts/partials/stylesheet.html | 2 --
site/layouts/shortcodes/js-docs.html | 8 +++++++-
site/layouts/shortcodes/scss-docs.html | 8 +++++++-
11 files changed, 32 insertions(+), 27 deletions(-)
(limited to 'site/layouts')
diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html
index 5ec9263..11759a2 100644
--- a/site/layouts/_default/examples.html
+++ b/site/layouts/_default/examples.html
@@ -100,7 +100,7 @@
{{- end }}
-
{{ partial "ads" . }}
diff --git a/site/layouts/partials/icons.html b/site/layouts/partials/icons.html
index e181d8b..4ec1eab 100644
--- a/site/layouts/partials/icons.html
+++ b/site/layouts/partials/icons.html
@@ -1,4 +1,4 @@
-
+
diff --git a/site/layouts/partials/scripts.html b/site/layouts/partials/scripts.html
index 3378a23..dc92d30 100644
--- a/site/layouts/partials/scripts.html
+++ b/site/layouts/partials/scripts.html
@@ -4,8 +4,9 @@
{{- end }}
-{{ if eq .Page.Layout "docs" -}}
+
+{{ if eq .Page.Layout "docs" -}}
{{- end }}
diff --git a/site/layouts/partials/stylesheet.html b/site/layouts/partials/stylesheet.html
index 1aa3296..7a5b077 100644
--- a/site/layouts/partials/stylesheet.html
+++ b/site/layouts/partials/stylesheet.html
@@ -1,6 +1,4 @@
-{{ if eq .Page.Layout "docs" -}}
-{{- end }}
{{ if eq hugo.Environment "production" -}}
{{ if eq .Page.Params.direction "rtl" -}}
diff --git a/site/layouts/shortcodes/js-docs.html b/site/layouts/shortcodes/js-docs.html
index 4739e0a..8eed4a0 100644
--- a/site/layouts/shortcodes/js-docs.html
+++ b/site/layouts/shortcodes/js-docs.html
@@ -13,8 +13,9 @@
{{- errorf "%s: %q: Missing required parameters! Got: name=%q file=%q!" .Position .Name $name $file -}}
{{- else -}}
{{- $capture_start := printf "// js-docs-start %s\n" $name -}}
- {{- $capture_end := printf "// js-docs-end %s" $name -}}
+ {{- $capture_end := printf "// js-docs-end %s\n" $name -}}
{{- $regex := printf `%s((?:.|\n)*)%s` $capture_start $capture_end -}}
+ {{- $regex_nested := printf `// js-docs-.*\n` -}}
{{- $match := findRE $regex (readFile $file) -}}
{{- $match = index $match 0 -}}
@@ -26,6 +27,11 @@
{{- $match = replace $match $capture_start "" -}}
{{- $match = replace $match $capture_end "" -}}
+ {{- $match_nested := findRE $regex_nested $match -}}
+ {{- range $to_remove := $match_nested -}}
+ {{- $match = replace $match $to_remove "" -}}
+ {{- end -}}
+