Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable docs IA update redirects for zh-hans site #434

Merged
merged 1 commit into from Apr 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/static/redirects.njk
Expand Up @@ -32,8 +32,6 @@ eleventyExcludeFromCollections: true
/docs/maintainer-guide/* /docs/latest/maintainer-guide/:splat 301!
/docs/developer-guide/* /docs/latest/developer-guide/:splat 301!

{% if site.language.code == "en" %}

# Redirects for the ESLint IA Refactor (https://github.com/eslint/rfcs/pull/97)
/docs/latest/user-guide/ /docs/latest/use/ 301!
/docs/latest/user-guide/core-concepts /docs/latest/use/core-concepts 301!
Expand All @@ -49,8 +47,18 @@ eleventyExcludeFromCollections: true
/docs/latest/user-guide/integrations /docs/latest/use/integrations 301!
/docs/latest/user-guide/migrating-to-8.0.0 /docs/latest/use/migrate-to-8.0.0 301!
/docs/latest/developer-guide/architecture/ /docs/latest/contribute/architecture/ 301!

{% if site.language.code == "en" %}

/docs/latest/developer-guide/source-code /docs/latest/contribute/development-environment 301!
/docs/latest/contribute/source-code /docs/latest/contribute/development-environment 301!

{% else %}

/docs/latest/developer-guide/source-code /docs/latest/contribute/source-code 301!

{% endif %}

/docs/latest/developer-guide/development-environment /docs/latest/contribute/development-environment 301!
/docs/latest/developer-guide/unit-tests /docs/latest/contribute/tests 301!
/docs/latest/developer-guide/working-with-rules /docs/latest/extend/custom-rules 301!
Expand Down Expand Up @@ -83,8 +91,6 @@ eleventyExcludeFromCollections: true
/docs/latest/developer-guide/* /docs/latest/extend/:splat 301!
/docs/latest/maintainer-guide/* /docs/latest/maintain/:splat 301!

{% endif %}

# Regular Docs
/docs/latest/* https://{{ site.locals.docs_latest }}/:splat 200!
/docs/ /docs/latest/ 301!
Expand Down