From e7de1328b174658e212f051df2e9315fcdfba190 Mon Sep 17 00:00:00 2001 From: Martin Atanasov Date: Wed, 19 Mar 2025 12:36:53 +0200 Subject: [PATCH 1/3] chore(docs): remove redundant files --- _staging.yml | 3 --- _staging_iis.yml | 3 --- _test_iis.yml | 3 --- _test_iis_azure.yml | 4 ---- _test_iis_azure_prod.yml | 3 --- all-pages.md | 9 --------- redirects.conf | 40 ---------------------------------------- 7 files changed, 65 deletions(-) delete mode 100644 _staging.yml delete mode 100644 _staging_iis.yml delete mode 100644 _test_iis.yml delete mode 100644 _test_iis_azure.yml delete mode 100644 _test_iis_azure_prod.yml delete mode 100644 all-pages.md delete mode 100644 redirects.conf diff --git a/_staging.yml b/_staging.yml deleted file mode 100644 index 387b3458e0..0000000000 --- a/_staging.yml +++ /dev/null @@ -1,3 +0,0 @@ -baseurl: /blazor-ui -all_pages_domain: "https://kendobuild-staging.dev.progress.com" -exclude: [README.md, Gemfile, Gemfile.lock,api_sort.rb, Dockerfile, bs-config.js, build-docs.sh, copy_content.sh, copy_local.sh, docs-watcher/*, exclude_files.txt, install-npm.sh, start-docs.sh, watch.sh, src-a11y/*] diff --git a/_staging_iis.yml b/_staging_iis.yml deleted file mode 100644 index a67dba416e..0000000000 --- a/_staging_iis.yml +++ /dev/null @@ -1,3 +0,0 @@ -baseurl: /blazor-ui -all_pages_domain: "https://winslaveblazor2.dev.progress.com" -exclude: [README.md, Gemfile, Gemfile.lock,api_sort.rb, Dockerfile, bs-config.js, build-docs.sh, copy_content.sh, copy_local.sh, docs-watcher/*, exclude_files.txt, install-npm.sh, start-docs.sh, watch.sh, src-a11y/*] diff --git a/_test_iis.yml b/_test_iis.yml deleted file mode 100644 index 34c3228342..0000000000 --- a/_test_iis.yml +++ /dev/null @@ -1,3 +0,0 @@ -baseurl: /blazor-ui -all_pages_domain: "https://testdocs.telerik.com" -exclude: [README.md, Gemfile, Gemfile.lock,api_sort.rb, Dockerfile, bs-config.js, build-docs.sh, copy_content.sh, copy_local.sh, docs-watcher/*, exclude_files.txt, install-npm.sh, start-docs.sh, watch.sh, src-a11y/*] diff --git a/_test_iis_azure.yml b/_test_iis_azure.yml deleted file mode 100644 index 44dfaf24d3..0000000000 --- a/_test_iis_azure.yml +++ /dev/null @@ -1,4 +0,0 @@ -url: "https://blazor-docs-test.azurewebsites.net/blazor-ui" -baseurl: /blazor-ui -all_pages_domain: "https://blazor-docs-test.azurewebsites.net" -exclude: [README.md, Gemfile, Gemfile.lock,api_sort.rb, Dockerfile, bs-config.js, build-docs.sh, copy_content.sh, copy_local.sh, docs-watcher/*, exclude_files.txt, install-npm.sh, start-docs.sh, watch.sh, src-a11y/*] diff --git a/_test_iis_azure_prod.yml b/_test_iis_azure_prod.yml deleted file mode 100644 index 3b4e147494..0000000000 --- a/_test_iis_azure_prod.yml +++ /dev/null @@ -1,3 +0,0 @@ -baseurl: /blazor-ui -all_pages_domain: "https://blazor-docs.azurewebsites.net" -exclude: [README.md, Gemfile, Gemfile.lock,api_sort.rb, Dockerfile, bs-config.js, build-docs.sh, copy_content.sh, copy_local.sh, docs-watcher/*, exclude_files.txt, install-npm.sh, start-docs.sh, watch.sh, src-a11y/*] \ No newline at end of file diff --git a/all-pages.md b/all-pages.md deleted file mode 100644 index 9bb169c425..0000000000 --- a/all-pages.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -published: false -layout: null ---- - -{% capture site_url %}{% if site.url %}{{ site.url }}{% else %}{{ site.github.url }}{% endif %}{% endcapture %} -{% for post in site.html_pages %} -{{ site.all_pages_domain }}/blazor-ui{{ post.url | replace:'.html','' }} -{% endfor %} diff --git a/redirects.conf b/redirects.conf deleted file mode 100644 index 17aa82add1..0000000000 --- a/redirects.conf +++ /dev/null @@ -1,40 +0,0 @@ -## -# Permanent redirects -## -rewrite ^/blazor-ui/$ - /blazor-ui/introduction - permanent; - -rewrite ^/blazor-ui/api/$ - /blazor-ui/api/index - permanent; - -rewrite ^/blazor/(.*)$ - /blazor-ui/$1 - permanent; -## -# Permanent redirects for moved topics -## -{% for page in site.redirect_pages %} -{% for redirect in page.previous_url %} -rewrite ^/blazor-ui/{{ redirect }}$ - /blazor-ui/{{ page.url | remove_first: '/' | replace: '.html', '' }} - permanent; -{% endfor %} -{% endfor %} - -## -# Temporary redirects for moved directories -## -{% for directory in site.redirect_directories %} -rewrite ^/blazor-ui/{{ directory.path }}/?$ - /blazor-ui/{{ directory.url }} - redirect; -{% endfor %} - -## -# Remove HTML extension so all pages only have 1 URL -## -rewrite ^(/blazor-ui/.*)\.html(\?.*)?$ - $1$2 - permanent; From 64295810256cc72b0fdbe8ad6ba21da139a1f77a Mon Sep 17 00:00:00 2001 From: Martin Atanasov Date: Wed, 19 Mar 2025 14:24:08 +0200 Subject: [PATCH 2/3] chore(docs): add back redirects.conf file --- redirects.conf | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 redirects.conf diff --git a/redirects.conf b/redirects.conf new file mode 100644 index 0000000000..17aa82add1 --- /dev/null +++ b/redirects.conf @@ -0,0 +1,40 @@ +## +# Permanent redirects +## +rewrite ^/blazor-ui/$ + /blazor-ui/introduction + permanent; + +rewrite ^/blazor-ui/api/$ + /blazor-ui/api/index + permanent; + +rewrite ^/blazor/(.*)$ + /blazor-ui/$1 + permanent; +## +# Permanent redirects for moved topics +## +{% for page in site.redirect_pages %} +{% for redirect in page.previous_url %} +rewrite ^/blazor-ui/{{ redirect }}$ + /blazor-ui/{{ page.url | remove_first: '/' | replace: '.html', '' }} + permanent; +{% endfor %} +{% endfor %} + +## +# Temporary redirects for moved directories +## +{% for directory in site.redirect_directories %} +rewrite ^/blazor-ui/{{ directory.path }}/?$ + /blazor-ui/{{ directory.url }} + redirect; +{% endfor %} + +## +# Remove HTML extension so all pages only have 1 URL +## +rewrite ^(/blazor-ui/.*)\.html(\?.*)?$ + $1$2 + permanent; From db0df7db11937d5328d3b981384297b9198ba1bd Mon Sep 17 00:00:00 2001 From: Martin Atanasov Date: Wed, 19 Mar 2025 16:12:56 +0200 Subject: [PATCH 3/3] chore(docs): remove redirects.conf file --- redirects.conf | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 redirects.conf diff --git a/redirects.conf b/redirects.conf deleted file mode 100644 index 17aa82add1..0000000000 --- a/redirects.conf +++ /dev/null @@ -1,40 +0,0 @@ -## -# Permanent redirects -## -rewrite ^/blazor-ui/$ - /blazor-ui/introduction - permanent; - -rewrite ^/blazor-ui/api/$ - /blazor-ui/api/index - permanent; - -rewrite ^/blazor/(.*)$ - /blazor-ui/$1 - permanent; -## -# Permanent redirects for moved topics -## -{% for page in site.redirect_pages %} -{% for redirect in page.previous_url %} -rewrite ^/blazor-ui/{{ redirect }}$ - /blazor-ui/{{ page.url | remove_first: '/' | replace: '.html', '' }} - permanent; -{% endfor %} -{% endfor %} - -## -# Temporary redirects for moved directories -## -{% for directory in site.redirect_directories %} -rewrite ^/blazor-ui/{{ directory.path }}/?$ - /blazor-ui/{{ directory.url }} - redirect; -{% endfor %} - -## -# Remove HTML extension so all pages only have 1 URL -## -rewrite ^(/blazor-ui/.*)\.html(\?.*)?$ - $1$2 - permanent;