From 267dcd7aaa770f66bb3419d898630da4528c04d1 Mon Sep 17 00:00:00 2001 From: Ilya Lesikov Date: Tue, 7 May 2024 21:02:57 +0300 Subject: [PATCH] fix: docs routing /2 Signed-off-by: Ilya Lesikov --- .helm/templates/20-ingress-tuf-router.yaml | 8 +- .helm/templates/_rewrites.tpl | 437 +++++++++--------- .helm/trdl_channels-dev.yaml | 20 +- .werf/nginx-dev.conf | 4 +- DEVELOPMENT.md | 2 +- README.md | 2 +- _config.yml | 2 +- _data/en/topnav.yml | 2 +- _data/ru/topnav.yml | 2 +- _includes/_common/channel-menu-v2.html | 2 +- _includes/_common/channel-menu.html | 2 +- _includes/_common/group-menu.html | 2 +- _includes/_common/topnav-documentation.html | 5 +- _includes/_common/topnav.html | 5 +- _includes/_common/version-menu.html | 2 +- .../en/guides/100_basic/10_build.md.liquid | 8 +- .../20_cluster/has_cluster.md.liquid | 2 +- .../en/guides/100_basic/30_deploy.md.liquid | 4 +- .../100_basic/35_deploy_changes.md.liquid | 2 +- .../guides/100_basic/40_must_haves.md.liquid | 26 +- .../200_real_apps/020_logging.md.liquid | 2 +- .../200_real_apps/080_configuration.md.liquid | 12 +- .../030_gitlab_ci_cd.md.liquid | 8 +- .../040_github_actions.md.liquid | 4 +- .../ru/guides/100_basic/10_build.md.liquid | 8 +- .../20_cluster/has_cluster.md.liquid | 2 +- .../ru/guides/100_basic/30_deploy.md.liquid | 4 +- .../100_basic/35_deploy_changes.md.liquid | 2 +- .../guides/100_basic/40_must_haves.md.liquid | 26 +- .../200_real_apps/020_logging.md.liquid | 2 +- .../200_real_apps/080_configuration.md.liquid | 12 +- .../030_gitlab_ci_cd.md.liquid | 8 +- .../040_github_actions.md.liquid | 4 +- _layouts/guides-page-base.html | 3 +- assets/js/customscripts.js | 6 +- backend/common.go | 32 +- backend/handlers.go | 12 +- backend/main.go | 9 +- .../ci/argocd_host_project_section.md.liquid | 2 +- .../ci/gitlab_project_main_section.md.liquid | 2 +- .../linux/buildah/project.md.liquid | 2 +- .../linux/buildah/project.md.liquid | 2 +- .../linux/docker/project.md.liquid | 2 +- .../linux/buildah/infra.md.liquid | 2 +- .../linux/buildah/infra.md.liquid | 2 +- .../linux/buildah/project.md.liquid | 2 +- .../host-runner/linux/buildah/infra.md.liquid | 2 +- .../linux/buildah/project.md.liquid | 2 +- .../host-runner/linux/docker/infra.md.liquid | 2 +- .../linux/docker/project.md.liquid | 2 +- .../linux/buildah/infra.md.liquid | 2 +- .../linux/buildah/project.md.liquid | 2 +- .../ci/argocd_host_project_section.md.liquid | 2 +- .../ci/gitlab_project_main_section.md.liquid | 2 +- .../linux/buildah/project.md.liquid | 2 +- .../linux/buildah/project.md.liquid | 2 +- .../linux/docker/project.md.liquid | 2 +- .../linux/buildah/infra.md.liquid | 2 +- .../linux/buildah/project.md.liquid | 2 +- .../host-runner/linux/buildah/infra.md.liquid | 2 +- .../linux/buildah/project.md.liquid | 2 +- .../host-runner/linux/docker/infra.md.liquid | 2 +- .../linux/docker/project.md.liquid | 2 +- .../linux/buildah/infra.md.liquid | 2 +- .../linux/buildah/project.md.liquid | 2 +- robots.txt | 16 +- scripts/docs/check_broken_links.sh | 2 +- sitemap.xml | 2 +- 68 files changed, 386 insertions(+), 383 deletions(-) diff --git a/.helm/templates/20-ingress-tuf-router.yaml b/.helm/templates/20-ingress-tuf-router.yaml index 2faa88d3e..3552cca8a 100644 --- a/.helm/templates/20-ingress-tuf-router.yaml +++ b/.helm/templates/20-ingress-tuf-router.yaml @@ -19,14 +19,14 @@ spec: - host: {{ $host }} http: paths: - - path: /targets + - path: /targets/ pathType: Prefix backend: service: name: tuf-router port: name: http - - path: /download + - path: /download/ pathType: Prefix backend: service: @@ -36,14 +36,14 @@ spec: - host: ru.{{ $host }} http: paths: - - path: /targets + - path: /targets/ pathType: Prefix backend: service: name: tuf-router port: name: http - - path: /download + - path: /download/ pathType: Prefix backend: service: diff --git a/.helm/templates/_rewrites.tpl b/.helm/templates/_rewrites.tpl index 7a37df404..670f539f9 100644 --- a/.helm/templates/_rewrites.tpl +++ b/.helm/templates/_rewrites.tpl @@ -5,80 +5,76 @@ # Normalize urls ############################################ -rewrite ^/js/(?.+) /assets/js/$tail redirect; -rewrite ^/css/(?.+) /assets/css/$tail redirect; -rewrite ^/images/(?.+) /assets/images/$tail redirect; - -rewrite ^/documentation/latest/?$ /documentation/ redirect; -rewrite ^/documentation/latest/(?.+) /documentation/$tail redirect; -rewrite ^/latest/documentation/?$ /documentation/ redirect; -rewrite ^/latest/documentation/(?.+) /documentation/$tail redirect; - -rewrite ^/documentation\.html$ /documentation/ redirect; -rewrite ^/documentation/(?v\d+(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)$ /documentation/$ver/ redirect; -rewrite ^/documentation/(?v\d+(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/index\.html$ /documentation/$ver/ redirect; -rewrite ^/(?v\d+(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/documentation\.html$ /documentation/$ver/ redirect; -rewrite ^/(?v\d+(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/documentation/?$ /documentation/$ver/ redirect; -rewrite ^/(?v\d+(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/documentation/(?.+) /documentation/$ver/$tail redirect; - -rewrite ^/documentation/(?v\d+(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/configurator/?$ /documentation/$ver/configurator.html redirect; -rewrite ^/documentation/(?v\d+(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/configurator/(?.+) /documentation/$ver/configurator.html redirect; -rewrite ^/(?v\d+(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/documentation/configurator\.html$ /documentation/$ver/configurator.html redirect; -rewrite ^/(?v\d+(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/documentation/configurator/?$ /documentation/$ver/configurator.html redirect; -rewrite ^/(?v\d+(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/documentation/configurator/(?.+) /documentation/$ver/configurator.html redirect; - -rewrite ^/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/how_to/?$ /documentation/$ver/how_to/ redirect; -rewrite ^/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/how_to/(?.+) /documentation/$ver/how_to/$tail redirect; +rewrite ^/js/(?.+) /assets/js/$tail redirect; +rewrite ^/css/(?.+) /assets/css/$tail redirect; +rewrite ^/images/(?.+) /assets/images/$tail redirect; + +rewrite ^/docs\.html$ /docs/ redirect; +rewrite ^/docs/(?v\d+(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)$ /docs/$ver/ redirect; +rewrite ^/docs/(?v\d+(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/index\.html$ /docs/$ver/ redirect; +rewrite ^/(?v\d+(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/docs\.html$ /docs/$ver/ redirect; +rewrite ^/(?v\d+(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/docs/?$ /docs/$ver/ redirect; +rewrite ^/(?v\d+(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/docs/(?.+) /docs/$ver/$tail redirect; + +rewrite ^/documentation\.html$ /docs/ redirect; +rewrite ^/documentation/(?v\d+(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)$ /docs/$ver/ redirect; +rewrite ^/documentation/(?v\d+(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/index\.html$ /docs/$ver/ redirect; +rewrite ^/(?v\d+(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/documentation\.html$ /docs/$ver/ redirect; +rewrite ^/(?v\d+(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/documentation/?$ /docs/$ver/ redirect; +rewrite ^/(?v\d+(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/documentation/(?.+) /docs/$ver/$tail redirect; + +rewrite ^/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/how_to/?$ /docs/$ver/how_to/ redirect; +rewrite ^/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/how_to/(?.+) /docs/$ver/how_to/$tail redirect; ############################################ # Temporary versioned redirects ############################################ -rewrite ^/documentation/?$ /documentation/v2/ redirect; -rewrite ^/documentation/(?!v\d+(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?/)(?:.+) /documentation/v2/ redirect; - -rewrite ^/documentation/(?v2(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/?$ /documentation/$ver/usage/project_configuration/overview.html redirect; -rewrite ^/documentation/(?v2(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/usage/?$ /documentation/$ver/usage/project_configuration/overview.html redirect; -rewrite ^/documentation/(?v2(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/usage/project_configuration/?$ /documentation/$ver/usage/project_configuration/overview.html redirect; -rewrite ^/documentation/(?v2(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/usage/build/?$ /documentation/$ver/usage/build/overview.html redirect; -rewrite ^/documentation/(?v2(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/usage/build/stapel/?$ /documentation/$ver/usage/build/stapel/overview.html redirect; -rewrite ^/documentation/(?v2(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/usage/deploy/?$ /documentation/$ver/usage/deploy/overview.html redirect; -rewrite ^/documentation/(?v2(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/usage/distribute/?$ /documentation/$ver/usage/distribute/overview.html redirect; -rewrite ^/documentation/(?v2(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/usage/cleanup/?$ /documentation/$ver/usage/cleanup/cr_cleanup.html redirect; -rewrite ^/documentation/(?v2(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/reference/?$ /documentation/$ver/reference/werf_yaml.html redirect; -rewrite ^/documentation/(?v2(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/reference/cli/?$ /documentation/$ver/reference/cli/overview.html redirect; -rewrite ^/documentation/(?v2(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/resources/?$ /documentation/$ver/resources/cheat_sheet.html redirect; - -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/?$ /documentation/$ver/usage/project_configuration/overview.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/usage/?$ /documentation/$ver/usage/project_configuration/overview.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/usage/project_configuration/?$ /documentation/$ver/usage/project_configuration/overview.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/usage/build/?$ /documentation/$ver/usage/build/overview.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/usage/build/stapel/?$ /documentation/$ver/usage/build/stapel/overview.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/usage/deploy/?$ /documentation/$ver/usage/deploy/overview.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/usage/distribute/?$ /documentation/$ver/usage/distribute/overview.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/usage/cleanup/?$ /documentation/$ver/usage/cleanup/cr_cleanup.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/?$ /documentation/$ver/reference/werf_yaml.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/cli/?$ /documentation/$ver/reference/cli/overview.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/resources/?$ /documentation/$ver/resources/cheat_sheet.html redirect; - -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/?$ /documentation/$ver/index.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/configuration/?$ /documentation/$ver/configuration/introduction.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/configuration/stapel_image/?$ /documentation/$ver/configuration/stapel_image/naming.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/?$ /documentation/$ver/reference/stages_and_images.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/deploy_process/?$ /documentation/$ver/reference/deploy_process/deploy_into_kubernetes.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/plugging_into_cicd/?$ /documentation/$ver/reference/plugging_into_cicd/overview.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/development_and_debug/?$ /documentation/$ver/reference/development_and_debug/setup_minikube.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/toolbox/?$ /documentation/$ver/reference/toolbox/slug.html redirect; +rewrite ^/docs/?$ /docs/v2/ redirect; +rewrite ^/docs/(?!(v\d+(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/)(?:.+) /docs/v2/ redirect; + +rewrite ^/docs/(?v2(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/?$ /docs/$ver/usage/project_configuration/overview.html redirect; +rewrite ^/docs/(?v2(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/usage/?$ /docs/$ver/usage/project_configuration/overview.html redirect; +rewrite ^/docs/(?v2(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/usage/project_configuration/?$ /docs/$ver/usage/project_configuration/overview.html redirect; +rewrite ^/docs/(?v2(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/usage/build/?$ /docs/$ver/usage/build/overview.html redirect; +rewrite ^/docs/(?v2(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/usage/build/stapel/?$ /docs/$ver/usage/build/stapel/overview.html redirect; +rewrite ^/docs/(?v2(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/usage/deploy/?$ /docs/$ver/usage/deploy/overview.html redirect; +rewrite ^/docs/(?v2(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/usage/distribute/?$ /docs/$ver/usage/distribute/overview.html redirect; +rewrite ^/docs/(?v2(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/usage/cleanup/?$ /docs/$ver/usage/cleanup/cr_cleanup.html redirect; +rewrite ^/docs/(?v2(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/reference/?$ /docs/$ver/reference/werf_yaml.html redirect; +rewrite ^/docs/(?v2(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/reference/cli/?$ /docs/$ver/reference/cli/overview.html redirect; +rewrite ^/docs/(?v2(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/resources/?$ /docs/$ver/resources/cheat_sheet.html redirect; + +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/?$ /docs/$ver/usage/project_configuration/overview.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/usage/?$ /docs/$ver/usage/project_configuration/overview.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/usage/project_configuration/?$ /docs/$ver/usage/project_configuration/overview.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/usage/build/?$ /docs/$ver/usage/build/overview.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/usage/build/stapel/?$ /docs/$ver/usage/build/stapel/overview.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/usage/deploy/?$ /docs/$ver/usage/deploy/overview.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/usage/distribute/?$ /docs/$ver/usage/distribute/overview.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/usage/cleanup/?$ /docs/$ver/usage/cleanup/cr_cleanup.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/?$ /docs/$ver/reference/werf_yaml.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/cli/?$ /docs/$ver/reference/cli/overview.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/resources/?$ /docs/$ver/resources/cheat_sheet.html redirect; + +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/?$ /docs/$ver/index.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/configuration/?$ /docs/$ver/configuration/introduction.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/configuration/stapel_image/?$ /docs/$ver/configuration/stapel_image/naming.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/?$ /docs/$ver/reference/stages_and_images.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/deploy_process/?$ /docs/$ver/reference/deploy_process/deploy_into_kubernetes.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/plugging_into_cicd/?$ /docs/$ver/reference/plugging_into_cicd/overview.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/development_and_debug/?$ /docs/$ver/reference/development_and_debug/setup_minikube.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/toolbox/?$ /docs/$ver/reference/toolbox/slug.html redirect; ############################################ # Redirects for moved or deleted urls ############################################ -rewrite ^/installation\.html$ /getting_started/ redirect; -rewrite ^/applications_guide_(?:ru|en)/? /guides.html redirect; -rewrite ^/publications_ru\.html$ https://ru.werf.io/publications.html redirect; -rewrite ^/how_it_works\.html /#how-it-works redirect; -rewrite ^/introduction\.html$ /#how-it-works redirect; +rewrite ^/installation\.html$ /getting_started/ redirect; +rewrite ^/applications_guide_(?:ru|en)/? /guides.html redirect; +rewrite ^/publications_ru\.html$ https://ru.werf.io/publications.html redirect; +rewrite ^/how_it_works\.html /#how-it-works redirect; +rewrite ^/introduction\.html$ /#how-it-works redirect; rewrite ^/guides/(?[^/]+)/400_ci_cd_workflow/030_gitlab_ci_cd/010_workflows\.html /guides/$lang/400_ci_cd_workflow/030_gitlab_ci_cd.html redirect; rewrite ^/guides/(?[^/]+)/400_ci_cd_workflow/030_gitlab_ci_cd/020_docker_executor\.html /guides/$lang/400_ci_cd_workflow/030_gitlab_ci_cd.html redirect; @@ -88,170 +84,173 @@ rewrite ^/guides/(?[^/]+)/400_ci_cd_workflow/030_gitlab_ci_cd/030_kubernet # v1.1/v1.2 redirects for moved or deleted urls ############################################ -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/quickstart\.html$ /documentation/$ver/ redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/using_with_ci_cd_systems\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; - -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/supported_registry_implementations\.html$ /documentation/$ver/usage/cleanup/cr_cleanup.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/buildah_mode\.html$ /documentation/$ver/usage/build/process.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/building_images_with_stapel/artifacts\.html$ /documentation/$ver/usage/build/stapel/imports.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/building_images_with_stapel/assembly_instructions\.html$ /documentation/$ver/usage/build/stapel/instructions.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/building_images_with_stapel/base_image\.html$ /documentation/$ver/usage/build/stapel/base.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/building_images_with_stapel/docker_directive\.html$ /documentation/$ver/usage/build/stapel/dockerfile.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/building_images_with_stapel/git_directive\.html$ /documentation/$ver/usage/build/stapel/git.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/building_images_with_stapel/import_directive\.html$ /documentation/$ver/usage/build/stapel/imports.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/building_images_with_stapel/mount_directive\.html$ /documentation/$ver/usage/build/stapel/mounts.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/bundles\.html$ /documentation/$ver/usage/distribute/bundles.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/ci_cd_workflow_basics\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/generic_ci_cd_integration\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/github_actions\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/gitlab_ci_cd\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/run_in_container/run_in_docker_container\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/run_in_container/run_in_kubernetes\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/run_in_container/use_docker_container\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/run_in_container/use_github_actions_with_docker_executor\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/run_in_container/use_github_actions_with_kubernetes_executor\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/run_in_container/use_gitlab_ci_cd_with_docker_executor\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/run_in_container/use_gitlab_ci_cd_with_kubernetes_executor\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/run_in_container/use_kubernetes\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/werf_with_argocd/ci_cd_flow_overview\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/werf_with_argocd/configure_ci_cd\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/ci_cd/werf_with_argocd/prepare_kubernetes_cluster\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/cleanup\.html$ /documentation/$ver/usage/cleanup/cr_cleanup.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/configuration/giterminism\.html$ /documentation/$ver/usage/project_configuration/giterminism.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/configuration/organizing_configuration\.html$ /documentation/$ver/reference/werf_yaml_template_engine.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/configuration/supported_go_templates\.html$ /documentation/$ver/reference/werf_yaml_template_engine.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/development_and_debug/stage_introspection\.html$ /documentation/$ver/usage/build/stapel/base.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/giterminism\.html$ /documentation/$ver/usage/project_configuration/giterminism.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/configuration/chart\.html$ /documentation/$ver/usage/deploy/charts.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/configuration/chart_dependencies\.html$ /documentation/$ver/usage/deploy/charts.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/configuration/giterminism\.html$ /documentation/$ver/usage/project_configuration/giterminism.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/configuration/secrets\.html$ /documentation/$ver/usage/deploy/values.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/configuration/templates\.html$ /documentation/$ver/usage/deploy/templates.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/configuration/values\.html$ /documentation/$ver/usage/deploy/values.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/deploy_process/annotating_and_labeling\.html$ /documentation/$ver/usage/deploy/releases.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/deploy_process/deployment_order\.html$ /documentation/$ver/usage/deploy/deployment_order.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/deploy_process/external_dependencies\.html$ /documentation/$ver/usage/deploy/deployment_order.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/deploy_process/helm_hooks\.html$ /documentation/$ver/usage/deploy/deployment_order.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/deploy_process/resources_adoption\.html$ /documentation/$ver/usage/deploy/releases.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/deploy_process/steps\.html$ /documentation/$ver/usage/deploy/deployment_order.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/overview\.html$ /documentation/$ver/usage/deploy/overview.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/releases/manage_releases\.html$ /documentation/$ver/usage/deploy/releases.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/releases/naming\.html$ /documentation/$ver/usage/deploy/releases.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/releases/release\.html$ /documentation/$ver/usage/deploy/releases.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/working_with_chart_dependencies\.html$ /documentation/$ver/usage/deploy/charts.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/helm/working_with_secrets\.html$ /documentation/$ver/usage/deploy/values.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/storage_layouts\.html$ /documentation/$ver/usage/build/process.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/supported_container_registries\.html$ /documentation/$ver/usage/cleanup/cr_cleanup.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/advanced/synchronization\.html$ /documentation/$ver/usage/build/process.html redirect; - -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/internals/build_process\.html$ /documentation/$ver/usage/build/process.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/internals/development/stapel_image\.html$ /documentation/$ver/usage/build/stapel/base.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/internals/how_ci_cd_integration_works/general_overview\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/internals/how_ci_cd_integration_works/github_actions\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/internals/how_ci_cd_integration_works/gitlab_ci_cd\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/internals/integration_with_ssh_agent\.html$ /documentation/$ver/usage/build/stapel/base.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/internals/stages_and_storage\.html$ /documentation/$ver/usage/build/process.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/internals/telemetry\.html$ /documentation/$ver/resources/telemetry.html redirect; - -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/reference/build/artifact\.html$ /documentation/$ver/usage/build/stapel/imports.html redirect; -rewrite ^/documentation/(?v1\.[12](?:\.\d+(?:-[^/]+)?)?)/reference/cheat_sheet\.html$ /documentation/$ver/resources/cheat_sheet.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/quickstart\.html$ /docs/$ver/ redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/using_with_ci_cd_systems\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; + +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/supported_registry_implementations\.html$ /docs/$ver/usage/cleanup/cr_cleanup.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/buildah_mode\.html$ /docs/$ver/usage/build/process.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/building_images_with_stapel/artifacts\.html$ /docs/$ver/usage/build/stapel/imports.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/building_images_with_stapel/assembly_instructions\.html$ /docs/$ver/usage/build/stapel/instructions.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/building_images_with_stapel/base_image\.html$ /docs/$ver/usage/build/stapel/base.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/building_images_with_stapel/docker_directive\.html$ /docs/$ver/usage/build/stapel/dockerfile.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/building_images_with_stapel/git_directive\.html$ /docs/$ver/usage/build/stapel/git.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/building_images_with_stapel/import_directive\.html$ /docs/$ver/usage/build/stapel/imports.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/building_images_with_stapel/mount_directive\.html$ /docs/$ver/usage/build/stapel/mounts.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/bundles\.html$ /docs/$ver/usage/distribute/bundles.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/ci_cd_workflow_basics\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/generic_ci_cd_integration\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/github_actions\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/gitlab_ci_cd\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/run_in_container/run_in_docker_container\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/run_in_container/run_in_kubernetes\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/run_in_container/use_docker_container\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/run_in_container/use_github_actions_with_docker_executor\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/run_in_container/use_github_actions_with_kubernetes_executor\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/run_in_container/use_gitlab_ci_cd_with_docker_executor\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/run_in_container/use_gitlab_ci_cd_with_kubernetes_executor\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/run_in_container/use_kubernetes\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/werf_with_argocd/ci_cd_flow_overview\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/werf_with_argocd/configure_ci_cd\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/ci_cd/werf_with_argocd/prepare_kubernetes_cluster\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/cleanup\.html$ /docs/$ver/usage/cleanup/cr_cleanup.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/configuration/giterminism\.html$ /docs/$ver/usage/project_configuration/giterminism.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/configuration/organizing_configuration\.html$ /docs/$ver/reference/werf_yaml_template_engine.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/configuration/supported_go_templates\.html$ /docs/$ver/reference/werf_yaml_template_engine.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/development_and_debug/stage_introspection\.html$ /docs/$ver/usage/build/stapel/base.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/giterminism\.html$ /docs/$ver/usage/project_configuration/giterminism.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/configuration/chart\.html$ /docs/$ver/usage/deploy/charts.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/configuration/chart_dependencies\.html$ /docs/$ver/usage/deploy/charts.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/configuration/giterminism\.html$ /docs/$ver/usage/project_configuration/giterminism.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/configuration/secrets\.html$ /docs/$ver/usage/deploy/values.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/configuration/templates\.html$ /docs/$ver/usage/deploy/templates.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/configuration/values\.html$ /docs/$ver/usage/deploy/values.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/deploy_process/annotating_and_labeling\.html$ /docs/$ver/usage/deploy/releases.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/deploy_process/deployment_order\.html$ /docs/$ver/usage/deploy/deployment_order.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/deploy_process/external_dependencies\.html$ /docs/$ver/usage/deploy/deployment_order.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/deploy_process/helm_hooks\.html$ /docs/$ver/usage/deploy/deployment_order.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/deploy_process/resources_adoption\.html$ /docs/$ver/usage/deploy/releases.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/deploy_process/steps\.html$ /docs/$ver/usage/deploy/deployment_order.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/overview\.html$ /docs/$ver/usage/deploy/overview.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/releases/manage_releases\.html$ /docs/$ver/usage/deploy/releases.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/releases/naming\.html$ /docs/$ver/usage/deploy/releases.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/releases/release\.html$ /docs/$ver/usage/deploy/releases.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/working_with_chart_dependencies\.html$ /docs/$ver/usage/deploy/charts.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/helm/working_with_secrets\.html$ /docs/$ver/usage/deploy/values.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/storage_layouts\.html$ /docs/$ver/usage/build/process.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/supported_container_registries\.html$ /docs/$ver/usage/cleanup/cr_cleanup.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/advanced/synchronization\.html$ /docs/$ver/usage/build/process.html redirect; + +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/internals/build_process\.html$ /docs/$ver/usage/build/process.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/internals/development/stapel_image\.html$ /docs/$ver/usage/build/stapel/base.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/internals/how_ci_cd_integration_works/general_overview\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/internals/how_ci_cd_integration_works/github_actions\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/internals/how_ci_cd_integration_works/gitlab_ci_cd\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/internals/integration_with_ssh_agent\.html$ /docs/$ver/usage/build/stapel/base.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/internals/stages_and_storage\.html$ /docs/$ver/usage/build/process.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/internals/telemetry\.html$ /docs/$ver/resources/telemetry.html redirect; + +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/reference/build/artifact\.html$ /docs/$ver/usage/build/stapel/imports.html redirect; +rewrite ^/docs/(?v1\.[12](?:\.\d+(?:[^/]+)?)?|latest)/reference/cheat_sheet\.html$ /docs/$ver/resources/cheat_sheet.html redirect; ############################################ # v1.2 redirects for moved or deleted urls ############################################ -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/configuration/cleanup\.html$ /documentation/$ver/reference/werf_yaml.html#cleanup redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/configuration/deploy_into_kubernetes\.html$ /documentation/$ver/reference/werf_yaml.html#deploy redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/configuration/dockerfile_image\.html$ /documentation/$ver/reference/werf_yaml.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/configuration/introduction\.html$ /documentation/$ver/reference/werf_yaml.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/configuration/stapel_artifact\.html$ /documentation/$ver/usage/build/stapel/imports.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/configuration/stapel_image/image_directives\.html$ /documentation/$ver/reference/werf_yaml.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/configuration/stapel_image/naming\.html$ /documentation/$ver/reference/werf_yaml.html#image-section redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/configuration/stapel_image/(?.+) /documentation/$ver/advanced/building_images_with_stapel/$tail redirect; - -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/cli/main/(?.+) /documentation/$ver/reference/cli/werf_$tail redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/cli/management/(?[^/]+)/(?[^/]+)$ /documentation/$ver/reference/cli/werf_${tail1}_${tail2} redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/cli/management/(?[^/]+)/(?[^/]+)/(?[^/]+)$ /documentation/$ver/reference/cli/werf_${tail1}_${tail2}_${tail3} redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/cli/management/(?[^/]+)/(?[^/]+)/(?[^/]+)/(?[^/]+)$ /documentation/$ver/reference/cli/werf_${tail1}_${tail2}_${tail3}_${tail4} redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/cli/other/(?.+) /documentation/$ver/reference/cli/werf_$tail redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/cli/toolbox/(?.+) /documentation/$ver/reference/cli/werf_$tail redirect; - -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/development/stapel\.html$ /documentation/$ver/usage/build/stapel/base.html redirect; - -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/guides/advanced_build/artifacts\.html$ /guides.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/guides/advanced_build/first_application\.html$ /guides.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/guides/advanced_build/mounts\.html$ /guides.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/guides/advanced_build/multi_images\.html$ /guides.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/guides/deploy_into_kubernetes\.html$ /documentation/$ver/quickstart.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/guides/generic_ci_cd_integration\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/guides/getting_started\.html$ /documentation/$ver/quickstart.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/guides/github_ci_cd_integration\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/guides/gitlab_ci_cd_integration\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/guides/installation\.html$ /documentation/$ver/ redirect; - -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/build_process\.html$ /documentation/$ver/usage/build/process.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/ci_cd_workflows_overview\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/cleaning_process\.html$ /documentation/$ver/usage/cleanup/cr_cleanup.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/deploy_process/deploy_into_kubernetes\.html$ /documentation/$ver/usage/deploy/overview.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/deploy_process/working_with_chart_dependencies\.html$ /documentation/$ver/usage/deploy/charts.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/development_and_debug/lint_and_render_chart\.html$ /documentation/$ver/ redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/development_and_debug/stage_introspection\.html$ /documentation/$ver/usage/build/stapel/base.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/plugging_into_cicd/gitlab_ci\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/plugging_into_cicd/overview\.html$ /documentation/$ver/usage/integration_with_ci_cd_systems.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/stages_and_images\.html$ /documentation/$ver/usage/build/process.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/toolbox/slug\.html$ /documentation/$ver/ redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/toolbox/ssh\.html$ /documentation/$ver/usage/build/stapel/base.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/reference/working_with_docker_registries\.html$ /documentation/$ver/usage/cleanup/cr_cleanup.html redirect; - -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/whats_new_in_v1_2/changelog\.html$ /documentation/$ver/resources/how_to_migrate_from_v1_1_to_v1_2.html redirect; -rewrite ^/documentation/(?v1\.2(?:\.\d+(?:-[^/]+)?)?)/whats_new_in_v1_2/how_to_migrate_from_v1_1_to_v1_2\.html$ /documentation/$ver/resources/how_to_migrate_from_v1_1_to_v1_2.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/configurator\.html$ /docs/$ver/getting_started/ redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/configurator/?$ /docs/$ver/getting_started/ redirect; + +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/configuration/cleanup\.html$ /docs/$ver/reference/werf_yaml.html#cleanup redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/configuration/deploy_into_kubernetes\.html$ /docs/$ver/reference/werf_yaml.html#deploy redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/configuration/dockerfile_image\.html$ /docs/$ver/reference/werf_yaml.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/configuration/introduction\.html$ /docs/$ver/reference/werf_yaml.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/configuration/stapel_artifact\.html$ /docs/$ver/usage/build/stapel/imports.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/configuration/stapel_image/image_directives\.html$ /docs/$ver/reference/werf_yaml.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/configuration/stapel_image/naming\.html$ /docs/$ver/reference/werf_yaml.html#image-section redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/configuration/stapel_image/(?.+) /docs/$ver/advanced/building_images_with_stapel/$tail redirect; + +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/cli/main/(?.+) /docs/$ver/reference/cli/werf_$tail redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/cli/management/(?[^/]+)/(?[^/]+)$ /docs/$ver/reference/cli/werf_${tail1}_${tail2} redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/cli/management/(?[^/]+)/(?[^/]+)/(?[^/]+)$ /docs/$ver/reference/cli/werf_${tail1}_${tail2}_${tail3} redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/cli/management/(?[^/]+)/(?[^/]+)/(?[^/]+)/(?[^/]+)$ /docs/$ver/reference/cli/werf_${tail1}_${tail2}_${tail3}_${tail4} redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/cli/other/(?.+) /docs/$ver/reference/cli/werf_$tail redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/cli/toolbox/(?.+) /docs/$ver/reference/cli/werf_$tail redirect; + +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/development/stapel\.html$ /docs/$ver/usage/build/stapel/base.html redirect; + +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/guides/advanced_build/artifacts\.html$ /guides.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/guides/advanced_build/first_application\.html$ /guides.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/guides/advanced_build/mounts\.html$ /guides.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/guides/advanced_build/multi_images\.html$ /guides.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/guides/deploy_into_kubernetes\.html$ /docs/$ver/quickstart.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/guides/generic_ci_cd_integration\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/guides/getting_started\.html$ /docs/$ver/quickstart.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/guides/github_ci_cd_integration\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/guides/gitlab_ci_cd_integration\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/guides/installation\.html$ /docs/$ver/ redirect; + +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/build_process\.html$ /docs/$ver/usage/build/process.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/ci_cd_workflows_overview\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/cleaning_process\.html$ /docs/$ver/usage/cleanup/cr_cleanup.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/deploy_process/deploy_into_kubernetes\.html$ /docs/$ver/usage/deploy/overview.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/deploy_process/working_with_chart_dependencies\.html$ /docs/$ver/usage/deploy/charts.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/development_and_debug/lint_and_render_chart\.html$ /docs/$ver/ redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/development_and_debug/stage_introspection\.html$ /docs/$ver/usage/build/stapel/base.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/plugging_into_cicd/gitlab_ci\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/plugging_into_cicd/overview\.html$ /docs/$ver/usage/integration_with_ci_cd_systems.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/stages_and_images\.html$ /docs/$ver/usage/build/process.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/toolbox/slug\.html$ /docs/$ver/ redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/toolbox/ssh\.html$ /docs/$ver/usage/build/stapel/base.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/reference/working_with_docker_registries\.html$ /docs/$ver/usage/cleanup/cr_cleanup.html redirect; + +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/whats_new_in_v1_2/changelog\.html$ /docs/$ver/resources/how_to_migrate_from_v1_1_to_v1_2.html redirect; +rewrite ^/docs/(?v1\.2(?:\.\d+(?:[^/]+)?)?|latest)/whats_new_in_v1_2/how_to_migrate_from_v1_1_to_v1_2\.html$ /docs/$ver/resources/how_to_migrate_from_v1_1_to_v1_2.html redirect; ############################################ # v1.1 redirects for moved or deleted urls ############################################ -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/quickstart\.html$ /documentation/$ver/guides/getting_started.html redirect; - -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/how_to/?$ /documentation/$ver/guides/ redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/how_to/mounts\.html$ /documentation/$ver/guides/advanced_build/mounts.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/how_to/multi_images\.html$ /documentation/$ver/guides/advanced_build/multi_images.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/how_to/artifacts\.html$ /documentation/$ver/guides/advanced_build/artifacts.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/how_to/(?.+) /documentation/$ver/guides/$tail redirect; - -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/guides/guides/unsupported_ci_cd_integration\.html$ /documentation/$ver/guides/generic_ci_cd_integration.html redirect; - -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/cli/?$ /documentation/$ver/reference/cli/ redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/cli/management/helm/get_release\.html$ /documentation/$ver/reference/cli/werf_helm_get_release.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/cli/toolbox/meta/get_helm_release\.html$ /documentation/$ver/reference/cli/werf_helm_get_release.html redirect; - -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/configuration/stapel_image/assembly_process\.html$ /documentation/$ver/configuration/stapel_image/assembly_instructions.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/configuration/stapel_image/image_from_dockerfile\.html$ /documentation/$ver/configuration/dockerfile_image.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/configuration/stapel_image/stage_introspection\.html$ /documentation/$ver/advanced/development_and_debug/stage_introspection.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/configuration/stapel_image/stages\.html$ /documentation/$ver/reference/stages_and_images.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/configuration/stapel_image/stages_and_images\.html$ /documentation/$ver/internals/stages_and_storage.html redirect; - -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/cleanup_process\.html$ /documentation/$ver/reference/cleaning_process.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/config\.html$ /documentation/$ver/configuration/introduction.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/stages_and_images\.html$ /documentation/$ver/internals/stages_and_storage.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/build/as_layers\.html$ /documentation/$ver/reference/development_and_debug/as_layers.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/build/stage_introspection\.html$ /documentation/$ver/reference/development_and_debug/stage_introspection.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/build/(?.+) /documentation/$ver/configuration/stapel_image/$tail redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/deploy/chart_configuration\.html$ /documentation/$ver/reference/deploy_process/deploy_into_kubernetes.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/deploy/deploy_to_kubernetes\.html$ /documentation/$ver/reference/deploy_process/deploy_into_kubernetes.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/deploy/minikube\.html$ /documentation/$ver/reference/development_and_debug/setup_minikube.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/deploy/secrets\.html$ /documentation/$ver/reference/deploy_process/working_with_secrets.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/deploy/track_kubernetes_resources\.html$ /documentation/$ver/reference/deploy_process/differences_with_helm.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/development_and_debug/stage_introspection\.html$ /documentation/$ver/advanced/development_and_debug/stage_introspection.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/local_development/as_layers\.html$ /documentation/$ver/reference/development_and_debug/as_layers.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/local_development/installing_minikube\.html$ /documentation/$ver/reference/development_and_debug/setup_minikube.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/local_development/lint_and_render_chart\.html$ /documentation/$ver/reference/development_and_debug/lint_and_render_chart.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/local_development/setup_minikube\.html$ /documentation/$ver/reference/development_and_debug/setup_minikube.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/local_development/stage_introspection\.html$ /documentation/$ver/reference/development_and_debug/stage_introspection.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/registry/authorization\.html$ /documentation/$ver/reference/registry_authorization.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/registry/cleaning\.html$ /documentation/$ver/reference/cleaning_process.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/registry/image_naming\.html$ /documentation/$ver/reference/stages_and_images.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/registry/publish\.html$ /documentation/$ver/reference/publish_process.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/registry/push\.html$ /documentation/$ver/reference/publish_process.html redirect; -rewrite ^/documentation/(?v1\.1(?:\.\d+(?:-[^/]+)?)?)/reference/registry/tag\.html$ /documentation/$ver/reference/publish_process.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/quickstart\.html$ /docs/$ver/guides/getting_started.html redirect; + +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/how_to/?$ /docs/$ver/guides/ redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/how_to/mounts\.html$ /docs/$ver/guides/advanced_build/mounts.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/how_to/multi_images\.html$ /docs/$ver/guides/advanced_build/multi_images.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/how_to/artifacts\.html$ /docs/$ver/guides/advanced_build/artifacts.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/how_to/(?.+) /docs/$ver/guides/$tail redirect; + +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/guides/guides/unsupported_ci_cd_integration\.html$ /docs/$ver/guides/generic_ci_cd_integration.html redirect; + +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/cli/?$ /docs/$ver/reference/cli/ redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/cli/management/helm/get_release\.html$ /docs/$ver/reference/cli/werf_helm_get_release.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/cli/toolbox/meta/get_helm_release\.html$ /docs/$ver/reference/cli/werf_helm_get_release.html redirect; + +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/configuration/stapel_image/assembly_process\.html$ /docs/$ver/configuration/stapel_image/assembly_instructions.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/configuration/stapel_image/image_from_dockerfile\.html$ /docs/$ver/configuration/dockerfile_image.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/configuration/stapel_image/stage_introspection\.html$ /docs/$ver/advanced/development_and_debug/stage_introspection.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/configuration/stapel_image/stages\.html$ /docs/$ver/reference/stages_and_images.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/configuration/stapel_image/stages_and_images\.html$ /docs/$ver/internals/stages_and_storage.html redirect; + +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/cleanup_process\.html$ /docs/$ver/reference/cleaning_process.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/config\.html$ /docs/$ver/configuration/introduction.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/stages_and_images\.html$ /docs/$ver/internals/stages_and_storage.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/build/as_layers\.html$ /docs/$ver/reference/development_and_debug/as_layers.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/build/stage_introspection\.html$ /docs/$ver/reference/development_and_debug/stage_introspection.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/build/(?.+) /docs/$ver/configuration/stapel_image/$tail redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/deploy/chart_configuration\.html$ /docs/$ver/reference/deploy_process/deploy_into_kubernetes.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/deploy/deploy_to_kubernetes\.html$ /docs/$ver/reference/deploy_process/deploy_into_kubernetes.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/deploy/minikube\.html$ /docs/$ver/reference/development_and_debug/setup_minikube.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/deploy/secrets\.html$ /docs/$ver/reference/deploy_process/working_with_secrets.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/deploy/track_kubernetes_resources\.html$ /docs/$ver/reference/deploy_process/differences_with_helm.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/development_and_debug/stage_introspection\.html$ /docs/$ver/advanced/development_and_debug/stage_introspection.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/local_development/as_layers\.html$ /docs/$ver/reference/development_and_debug/as_layers.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/local_development/installing_minikube\.html$ /docs/$ver/reference/development_and_debug/setup_minikube.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/local_development/lint_and_render_chart\.html$ /docs/$ver/reference/development_and_debug/lint_and_render_chart.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/local_development/setup_minikube\.html$ /docs/$ver/reference/development_and_debug/setup_minikube.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/local_development/stage_introspection\.html$ /docs/$ver/reference/development_and_debug/stage_introspection.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/registry/authorization\.html$ /docs/$ver/reference/registry_authorization.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/registry/cleaning\.html$ /docs/$ver/reference/cleaning_process.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/registry/image_naming\.html$ /docs/$ver/reference/stages_and_images.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/registry/publish\.html$ /docs/$ver/reference/publish_process.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/registry/push\.html$ /docs/$ver/reference/publish_process.html redirect; +rewrite ^/docs/(?v1\.1(?:\.\d+(?:[^/]+)?)?|latest)/reference/registry/tag\.html$ /docs/$ver/reference/publish_process.html redirect; {{- end }} diff --git a/.helm/trdl_channels-dev.yaml b/.helm/trdl_channels-dev.yaml index c108a8d46..63113d3d0 100644 --- a/.helm/trdl_channels-dev.yaml +++ b/.helm/trdl_channels-dev.yaml @@ -14,24 +14,24 @@ groups: - name: "1.2" channels: - name: alpha - version: 1.2.3-dev + version: 1.2.294+fix1 - name: beta - version: 1.2.3-dev + version: 1.2.294+fix1 - name: ea - version: 1.2.3-dev + version: 1.2.294+fix1 - name: stable - version: 1.2.3-dev + version: 1.2.294+fix1 - name: rock-solid - version: 1.2.3-dev + version: 1.2.294+fix1 - name: "2" channels: - name: alpha - version: 2.0.3-dev + version: 2.0.3 - name: beta - version: 2.0.3-dev + version: 2.0.3 - name: ea - version: 2.0.3-dev + version: 2.0.3 - name: stable - version: 2.0.3-dev + version: 2.0.3 - name: rock-solid - version: 2.0.3-dev + version: 2.0.3 diff --git a/.werf/nginx-dev.conf b/.werf/nginx-dev.conf index 0c9687844..eba5df43a 100644 --- a/.werf/nginx-dev.conf +++ b/.werf/nginx-dev.conf @@ -85,8 +85,8 @@ http { proxy_pass http://website-$lang; } - location /documentation/ { - rewrite ^/documentation/(?v\d+(?:\.\d+(?:\.\d+(?:-[^/]+)?)?)?)/(?.*) /$tail break; + location /docs/ { + rewrite ^/docs/(?v\d+(?:\.\d+(?:\.\d+(?:[^/]+)?)?)?|latest)/(?.*) /$tail break; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index f253dfd74..b707a413d 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -5,7 +5,7 @@ ___ ## Development -- Install [werf](http://werf.io/documentation/index.html). +- Install [werf](http://werf.io/docs/index.html). - Install [task](https://taskfile.dev/installation/). ### Local development setup diff --git a/README.md b/README.md index 7a111026d..5586c0191 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This repository contains files required to build the [werf CI/CD tool website](h and run it locally. It includes all of website pages with the only exception for the official -[werf documentation](https://werf.io/documentation/) which can be found +[werf documentation](https://werf.io/docs/) which can be found in the [main werf](https://github.com/werf/werf/tree/main/docs) repo since it's versioned and provided together with werf releases themselves (e.g. we have the documentation for werf v1.2.51, v1.1.23, and so on). diff --git a/_config.yml b/_config.yml index 54b922cb0..7fc1a408c 100644 --- a/_config.yml +++ b/_config.yml @@ -5,7 +5,7 @@ site_urls: ru: https://ru.werf.io en: https://werf.io editlink: "https://github.com/werf/website/edit/main" -canonical_url_prefix: /documentation/v2 +canonical_url_prefix: /docs/v2 social_links: ru: diff --git a/_data/en/topnav.yml b/_data/en/topnav.yml index 954c1669d..4d3893c1b 100644 --- a/_data/en/topnav.yml +++ b/_data/en/topnav.yml @@ -1,7 +1,7 @@ - title: Getting Started url: /getting_started/ - title: Documentation - url: /documentation/v2/ + url: /docs/v2/ - title: Kubernetes guide url: /guides.html hot: true diff --git a/_data/ru/topnav.yml b/_data/ru/topnav.yml index 0e3d8260f..98f70eb2e 100644 --- a/_data/ru/topnav.yml +++ b/_data/ru/topnav.yml @@ -1,7 +1,7 @@ - title: Быстрый старт url: /getting_started/ - title: ДокумСнтация - url: /documentation/v2/ + url: /docs/v2/ - title: Π‘Π°ΠΌΠΎΡƒΡ‡ΠΈΡ‚Π΅Π»ΡŒ ΠΏΠΎ Kubernetes url: /guides.html hot: true diff --git a/_includes/_common/channel-menu-v2.html b/_includes/_common/channel-menu-v2.html index 110aaabf0..e716829c5 100644 --- a/_includes/_common/channel-menu-v2.html +++ b/_includes/_common/channel-menu-v2.html @@ -11,7 +11,7 @@ {{- $prevVersion := "" }} {{- range (slice .VersionItems 1) }} diff --git a/_includes/_common/topnav-documentation.html b/_includes/_common/topnav-documentation.html index b9316c251..8f0d2055e 100644 --- a/_includes/_common/topnav-documentation.html +++ b/_includes/_common/topnav-documentation.html @@ -23,10 +23,11 @@ {%- if folder.folderitems %} header__menu-item_parent{% endif %} {%- if folder.url.size>1 and page.url == folder.url %} header__menu-item_active{% endif %} {%- if folder.url.size>1 and page.url != folder.url and page.url contains folder.url - and page.url != '/documentation/index.html' %} header__menu-item_active{% endif %} + and page.url != '/docs/index.html' %} header__menu-item_active{% endif %} {%- if folder.title == 'ДокумСнтация' or folder.title == 'Documentation' %} header__menu-item_active{% endif %}"> {%- if folder.title == 'ДокумСнтация' or folder.title == 'Documentation' %} - {%- if page.name == '404.md' %} + {%- assign page_name = page.url | split: "/" | last %} + {%- if page_name == '404.html' %} {{ folder.title }} {%- else %} {{ folder.title }} diff --git a/_includes/_common/topnav.html b/_includes/_common/topnav.html index 413b87bbe..ee35560b5 100644 --- a/_includes/_common/topnav.html +++ b/_includes/_common/topnav.html @@ -27,12 +27,13 @@ {% endif %} {%- if folder.url.size>=1 and page.url == folder.url %} header__menu-item_active{% endif %} {%- if folder.url.size>1 and page.url != folder.url and page.url contains folder.url - and page.url != '/documentation/index.html' %} header__menu-item_active{% endif %}"> + and page.url != '/docs/index.html' %} header__menu-item_active{% endif %}"> {%- comment -%} {%- if folder.url.size<2 and page.url.size<2 %} header__menu-item_active{% endif %}"> {%- endcomment -%} {%- if folder.title == 'ДокумСнтация' or folder.title == 'Documentation' %} - {%- if page.name == '404.md' %} + {%- assign page_name = page.url | split: "/" | last %} + {%- if page_name == '404.html' %} {{ folder.title }} {%- else %} {{ folder.title }} diff --git a/_includes/_common/version-menu.html b/_includes/_common/version-menu.html index 59616de2e..4feae4456 100644 --- a/_includes/_common/version-menu.html +++ b/_includes/_common/version-menu.html @@ -17,7 +17,7 @@ {{- $prevVersion := "" }} {{- range (slice .VersionItems 1) }}