Implement remainder of redirects

This commit is contained in:
Jonny Gerig Meyer 2023-06-08 23:10:35 -04:00
parent 76fd79e6da
commit ae6b72a058
No known key found for this signature in database
4 changed files with 65 additions and 18 deletions

View File

@ -24,7 +24,6 @@ module.exports = (eleventyConfig) => {
eleventyConfig.addPassthroughCopy('source/assets/img'); eleventyConfig.addPassthroughCopy('source/assets/img');
eleventyConfig.addPassthroughCopy('source/favicon.ico'); eleventyConfig.addPassthroughCopy('source/favicon.ico');
eleventyConfig.addPassthroughCopy('source/icon.png'); eleventyConfig.addPassthroughCopy('source/icon.png');
eleventyConfig.addPassthroughCopy('source/_redirects');
eleventyConfig.addPassthroughCopy('source/browserconfig.xml'); eleventyConfig.addPassthroughCopy('source/browserconfig.xml');
eleventyConfig.addPassthroughCopy('source/tile.png'); eleventyConfig.addPassthroughCopy('source/tile.png');
eleventyConfig.addPassthroughCopy('source/tile-wide.png'); eleventyConfig.addPassthroughCopy('source/tile-wide.png');

View File

@ -0,0 +1,30 @@
- from:
- /d/random-with-units
- /documentation/breaking-changes/random-with-units
- /d/color-units
- /documentation/breaking-changes/color-units
to: /documentation/breaking-changes/function-units
- from:
- /docs/yardoc/file.SASS_REFERENCE.html
- /documentation/file.SASS_REFERENCE.html
to: /documentation
- from:
- /docs/yardoc/file.SASS_CHANGELOG.html
- /documentation/file.SASS_CHANGELOG.html
to: https://github.com/sass/dart-sass/blob/main/CHANGELOG.md
- from:
- /docs/yardoc/file.INDENTED_SYNTAX.html
- /documentation/file.INDENTED_SYNTAX.html
- /docs/yardoc/file.SCSS_FOR_SASS_USERS.html
- /documentation/file.SCSS_FOR_SASS_USERS.html
to: /documentation/syntax
- from:
- /docs/yardoc/Sass/Script/Functions.html
- /documentation/Sass/Script/Functions.html
- /docs/yardoc/functions.html
- /documentation/functions.html
to: /documentation/modules
- from:
- /docs/yardoc/functions/css.html
- /documentation/functions/css.html
to: /documentation/at-rules/function/#plain-css-functions

View File

@ -1,17 +0,0 @@
/feed /feed.xml 200
/sitemap /sitemap.xml 200
/tutorial /guide
/download /install
/try https://www.sassmeister.com
/about /
/blog/posts/560719 /blog/dropping-support-for-old-ruby-versions
/blog/posts/1305238 /blog/dart-sass-is-on-chocolatey
/blog/posts/1404451 /blog/sass-and-browser-compatibility
/blog/posts/1909151 /blog/dart-sass-is-in-beta
/blog/posts/7081811 /blog/ruby-sass-is-deprecated
/d/random-with-units /documentation/breaking-changes/function-units
/documentation/breaking-changes/random-with-units /documentation/breaking-changes/function-units
/d/color-units /documentation/breaking-changes/function-units
/documentation/breaking-changes/color-units /documentation/breaking-changes/function-units

35
source/_redirects.liquid Normal file
View File

@ -0,0 +1,35 @@
---
permalink: '/_redirects'
eleventyExcludeFromCollections: true
---
/feed /feed.xml 200
/sitemap /sitemap.xml 200
/tutorial /guide
/download /install
/try https://www.sassmeister.com
/about /
/blog/posts/560719 /blog/dropping-support-for-old-ruby-versions
/blog/posts/1305238 /blog/dart-sass-is-on-chocolatey
/blog/posts/1404451 /blog/sass-and-browser-compatibility
/blog/posts/1909151 /blog/dart-sass-is-in-beta
/blog/posts/7081811 /blog/ruby-sass-is-deprecated
{% for r in redirects -%}
{%- for from in r.from %}
{%- for to in r.to %}
{{ from }} {{ to }}
{%- endfor -%}
{%- endfor -%}
{%- endfor %}
{%- assign mods = 'color list map math meta selector string' | split: ' ' -%}
{%- for mod in mods %}
/docs/yardoc/functions/{{ mod }}.html /documentation/modules/{{ mod }}/
/documentation/functions/{{ mod }}.html /documentation/modules/{{ mod }}/
{%- endfor -%}
{%- assign breaking = 'bogus-combinators css-vars duplicate-var-flags extend-compound function-units media-logic moz-document slash-div strict-unary' | split: ' ' -%}
{%- for b in breaking %}
/d/{{ b }}.html /documentation/breaking-changes/{{ b }}/
{%- endfor -%}