From 820d6d830b7641972eba2c391c3e14bfee74442a Mon Sep 17 00:00:00 2001 From: korki <65349313+korki43@users.noreply.github.com> Date: Sat, 18 Dec 2021 23:45:05 +0100 Subject: [PATCH 1/9] dont show deprecated items in search --- docs/layouts/partials/icons.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/docs/layouts/partials/icons.html b/docs/layouts/partials/icons.html index b9c9b26ac8..6e9447b999 100644 --- a/docs/layouts/partials/icons.html +++ b/docs/layouts/partials/icons.html @@ -10,20 +10,22 @@

Icons

{{ range (where .Site.RegularPages "Type" "icons") -}} {{- $filename := .File.TranslationBaseName -}} {{- with .Site.GetPage .File.Path }} -
  • - -
    - {{ if $.IsHome -}} + {{- if not (in .Params.tags "deprecated")}} +
  • + +
    + {{ if $.IsHome -}} {{- else -}} - - - {{- end }} + + + {{- end }}
    -
    {{ $filename }}
    -
    -
  • +
    {{ $filename }}
    + + + {{- end }} {{- end }} {{- end }} From c0490cadea3b73cc5addcffce88af6b835244677 Mon Sep 17 00:00:00 2001 From: korki <65349313+korki43@users.noreply.github.com> Date: Sun, 19 Dec 2021 00:15:41 +0100 Subject: [PATCH 2/9] show deprecation notice on icon page --- docs/layouts/icons/single.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/layouts/icons/single.html b/docs/layouts/icons/single.html index 0d791da886..c64ef240a8 100644 --- a/docs/layouts/icons/single.html +++ b/docs/layouts/icons/single.html @@ -31,7 +31,14 @@

    {{ .Title }}

    + {{ if in .Params.tags "deprecated" }} + + {{- end }} +
    + {{- $localSvgPath := printf "/icons/%s.svg" .File.TranslationBaseName -}} {{- $svgPath := path.Join "/assets/" $localSvgPath -}} From 62d22364a4ae9e62fad50fcd6af645395062e5e3 Mon Sep 17 00:00:00 2001 From: korki <65349313+korki43@users.noreply.github.com> Date: Sun, 19 Dec 2021 15:34:41 +0100 Subject: [PATCH 3/9] format --- docs/layouts/icons/single.html | 2 +- docs/layouts/partials/icons.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/layouts/icons/single.html b/docs/layouts/icons/single.html index c64ef240a8..9748f98b9d 100644 --- a/docs/layouts/icons/single.html +++ b/docs/layouts/icons/single.html @@ -31,7 +31,7 @@

    {{ .Title }}

    - {{ if in .Params.tags "deprecated" }} + {{ if in .Params.tags "deprecated" -}} diff --git a/docs/layouts/partials/icons.html b/docs/layouts/partials/icons.html index 6e9447b999..688356eaca 100644 --- a/docs/layouts/partials/icons.html +++ b/docs/layouts/partials/icons.html @@ -10,7 +10,7 @@

    Icons

    {{ range (where .Site.RegularPages "Type" "icons") -}} {{- $filename := .File.TranslationBaseName -}} {{- with .Site.GetPage .File.Path }} - {{- if not (in .Params.tags "deprecated")}} + {{ if not (in .Params.tags "deprecated") }}
  • @@ -25,7 +25,7 @@

    Icons

    {{ $filename }}
  • - {{- end }} + {{ end }} {{- end }} {{- end }} From d81af1e5d90a4cfbec5f0e59bf7967c76ea8007a Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 24 Dec 2021 15:16:08 +0200 Subject: [PATCH 4/9] Update single.html --- docs/layouts/icons/single.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/layouts/icons/single.html b/docs/layouts/icons/single.html index 9748f98b9d..fefec4f5bc 100644 --- a/docs/layouts/icons/single.html +++ b/docs/layouts/icons/single.html @@ -33,13 +33,12 @@

    {{ .Title }}

    {{ if in .Params.tags "deprecated" -}} {{- end }}
    - {{- $localSvgPath := printf "/icons/%s.svg" .File.TranslationBaseName -}} {{- $svgPath := path.Join "/assets/" $localSvgPath -}} {{- $svgHtml := readFile $localSvgPath | chomp | safeHTML -}} From d774f492afe37ce297891804d8f7fccf8dcaaf17 Mon Sep 17 00:00:00 2001 From: korki <65349313+korki43@users.noreply.github.com> Date: Sun, 26 Mar 2023 15:49:46 +0200 Subject: [PATCH 5/9] change from deprecated tag to a dedicated key --- docs/layouts/icons/single.html | 4 ++-- docs/layouts/partials/icons.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/layouts/icons/single.html b/docs/layouts/icons/single.html index fefec4f5bc..40facd2025 100644 --- a/docs/layouts/icons/single.html +++ b/docs/layouts/icons/single.html @@ -31,14 +31,14 @@

    {{ .Title }}

    - {{ if in .Params.tags "deprecated" -}} + {{ if .Params.deprecated -}} {{- end }}
    - + {{- $localSvgPath := printf "/icons/%s.svg" .File.TranslationBaseName -}} {{- $svgPath := path.Join "/assets/" $localSvgPath -}} {{- $svgHtml := readFile $localSvgPath | chomp | safeHTML -}} diff --git a/docs/layouts/partials/icons.html b/docs/layouts/partials/icons.html index 688356eaca..72c0b1ee65 100644 --- a/docs/layouts/partials/icons.html +++ b/docs/layouts/partials/icons.html @@ -10,7 +10,7 @@

    Icons

    {{ range (where .Site.RegularPages "Type" "icons") -}} {{- $filename := .File.TranslationBaseName -}} {{- with .Site.GetPage .File.Path }} - {{ if not (in .Params.tags "deprecated") }} + {{ if not (.Params.deprecated) }}
  • From 9d21424f269a04bf3360808588e486c6d4f4df60 Mon Sep 17 00:00:00 2001 From: korki <65349313+korki43@users.noreply.github.com> Date: Sun, 26 Mar 2023 15:50:06 +0200 Subject: [PATCH 6/9] import alert styles --- docs/assets/scss/docs.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assets/scss/docs.scss b/docs/assets/scss/docs.scss index a3ae687e9a..fb8ac95ef7 100644 --- a/docs/assets/scss/docs.scss +++ b/docs/assets/scss/docs.scss @@ -23,7 +23,7 @@ @import "bootstrap/breadcrumb"; // @import "bootstrap/pagination"; // @import "bootstrap/badge"; -// @import "bootstrap/alert"; +@import "bootstrap/alert"; // @import "bootstrap/progress"; // @import "bootstrap/list-group"; @import "bootstrap/close"; From a038d2ae4b22fa4eea1961a5f46be56023c69b0c Mon Sep 17 00:00:00 2001 From: korki <65349313+korki43@users.noreply.github.com> Date: Sun, 26 Mar 2023 15:56:20 +0200 Subject: [PATCH 7/9] add example --- docs/content/icons/~deprecated.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/content/icons/~deprecated.md diff --git a/docs/content/icons/~deprecated.md b/docs/content/icons/~deprecated.md new file mode 100644 index 0000000000..da707bd28b --- /dev/null +++ b/docs/content/icons/~deprecated.md @@ -0,0 +1,11 @@ +--- +# TODO XXX +# PREVIEW FILE -- REMOVE BEFORE RELEASE +title: Deprecated Example +categories: + - Files and folders +tags: + - box + - delete +deprecated: true +--- From 3a8fbd58be068cce413a872387c59e893003d3fd Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 26 Mar 2023 19:14:02 +0300 Subject: [PATCH 8/9] Update icons.html --- docs/layouts/partials/icons.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/layouts/partials/icons.html b/docs/layouts/partials/icons.html index 72c0b1ee65..feb371705e 100644 --- a/docs/layouts/partials/icons.html +++ b/docs/layouts/partials/icons.html @@ -10,7 +10,7 @@

    Icons

    {{ range (where .Site.RegularPages "Type" "icons") -}} {{- $filename := .File.TranslationBaseName -}} {{- with .Site.GetPage .File.Path }} - {{ if not (.Params.deprecated) }} + {{- if not (.Params.deprecated) }}
  • - {{ end }} + {{- end }} {{- end }} {{- end }} From b7d2110e369ac49d2f389b0fa46d4cdae1d3c30b Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 26 Mar 2023 19:14:33 +0300 Subject: [PATCH 9/9] Update icons.html --- docs/layouts/partials/icons.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/layouts/partials/icons.html b/docs/layouts/partials/icons.html index feb371705e..8064d81a1d 100644 --- a/docs/layouts/partials/icons.html +++ b/docs/layouts/partials/icons.html @@ -15,13 +15,13 @@

    Icons

    {{ if $.IsHome -}} - - {{- else -}} - + + {{- else -}} + {{- end }} -
    +
    {{ $filename }}