From 2ffb54d4c462fab017d03f627d0125274edc03bd Mon Sep 17 00:00:00 2001 From: Erik Spears Date: Wed, 23 Oct 2024 13:55:09 -0400 Subject: [PATCH] remove disfunctional jekyll-sitemap plugin; add sitemap.xml and liquid templating to update it dynamically; update sitemap exclusion syntax is affected files --- docs/404.html | 2 +- docs/DOCKER_BUILD.md | 2 +- docs/Gemfile | 1 - docs/Gemfile.lock | 3 --- docs/_config.yml | 1 - docs/separator.md | 2 +- docs/separator1.md | 2 +- docs/separator2.md | 2 +- docs/separator3.md | 2 +- docs/separator4.md | 2 +- docs/sitemap.xml | 14 ++++++++++++++ 11 files changed, 21 insertions(+), 12 deletions(-) create mode 100644 docs/sitemap.xml diff --git a/docs/404.html b/docs/404.html index c0d5f85b1..48a4cee63 100644 --- a/docs/404.html +++ b/docs/404.html @@ -4,7 +4,7 @@ permalink: /404 nav_exclude: true search_exclude: true -sitemap: false +sitemap: 'false' ---

Page not found

diff --git a/docs/DOCKER_BUILD.md b/docs/DOCKER_BUILD.md index c42fcb980..23e7e6e68 100644 --- a/docs/DOCKER_BUILD.md +++ b/docs/DOCKER_BUILD.md @@ -3,7 +3,7 @@ layout: default title: Docker Build nav_exclude: true search_exclude: true -sitemap: false +sitemap: 'false' --- # DOCKER BUILD for SWIRL diff --git a/docs/Gemfile b/docs/Gemfile index 2e549213e..c76099a42 100644 --- a/docs/Gemfile +++ b/docs/Gemfile @@ -2,7 +2,6 @@ source "https://rubygems.org" gem "jekyll", "~> 4.3.4" # installed by `gem jekyll` gem "jekyll-default-layout" -gem "jekyll-sitemap" gem "jekyll-relative-links" gem "jemoji" gem "just-the-docs", "0.10.0" diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index ee11e8638..eb817e190 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -85,8 +85,6 @@ GEM sass-embedded (~> 1.54) jekyll-seo-tag (2.8.0) jekyll (>= 3.8, < 5.0) - jekyll-sitemap (1.4.0) - jekyll (>= 3.7, < 5.0) jekyll-watch (2.2.1) listen (~> 3.0) jemoji (0.13.0) @@ -179,7 +177,6 @@ DEPENDENCIES jekyll (~> 4.3.4) jekyll-default-layout jekyll-relative-links - jekyll-sitemap jemoji just-the-docs (= 0.10.0) diff --git a/docs/_config.yml b/docs/_config.yml index e631ad432..446d75f5b 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -85,7 +85,6 @@ markdown: kramdown theme: just-the-docs plugins: - jekyll-default-layout - - jekyll-sitemap - jekyll-relative-links - jemoji disable_disk_cache: true diff --git a/docs/separator.md b/docs/separator.md index 597501067..45c7f9fdd 100644 --- a/docs/separator.md +++ b/docs/separator.md @@ -4,5 +4,5 @@ title: "Community" nav_order: 2 permalink: /separator/ search_exclude: true -sitemap: false +sitemap: 'false' --- diff --git a/docs/separator1.md b/docs/separator1.md index 4f675fbc1..c05506627 100644 --- a/docs/separator1.md +++ b/docs/separator1.md @@ -4,5 +4,5 @@ title: "Enterprise" nav_order: 6 permalink: /separator1/ search_exclude: true -sitemap: false +sitemap: 'false' --- diff --git a/docs/separator2.md b/docs/separator2.md index c5fbe92c5..7de0c294b 100644 --- a/docs/separator2.md +++ b/docs/separator2.md @@ -4,5 +4,5 @@ title: "Reference" nav_order: 12 permalink: /separator2/ search_exclude: true -sitemap: false +sitemap: 'false' --- diff --git a/docs/separator3.md b/docs/separator3.md index 300960ec6..a122bd6ce 100644 --- a/docs/separator3.md +++ b/docs/separator3.md @@ -4,5 +4,5 @@ title: "Developer" nav_order: 17 permalink: /separator3/ search_exclude: true -sitemap: false +sitemap: 'false' --- diff --git a/docs/separator4.md b/docs/separator4.md index bcf6f55c6..b4275d6a7 100644 --- a/docs/separator4.md +++ b/docs/separator4.md @@ -4,5 +4,5 @@ title: "About SWIRL" nav_order: 22 permalink: /separator4/ search_exclude: true -sitemap: false +sitemap: 'false' --- diff --git a/docs/sitemap.xml b/docs/sitemap.xml new file mode 100644 index 000000000..aab12b586 --- /dev/null +++ b/docs/sitemap.xml @@ -0,0 +1,14 @@ +--- +layout: null +sitemap: 'false' +--- + + + {% for page in site.pages %} + {% unless page.sitemap == "false" or page.url contains "assets" %} + + {{ site.url }}/{{ page.name }} + + {% endunless %} + {% endfor %} +