From 10547d7d79e836669dfcffc76f8156860762018b Mon Sep 17 00:00:00 2001 From: Giles Gaskell Date: Tue, 26 Nov 2024 16:58:27 +1100 Subject: [PATCH] Refactor 'Security' overview landing page URL and implement redirects missed in initial major Pipelines docs URL restructure. --- .../_core_concepts.html.erb | 2 +- config/routes.rb | 17 ++++++++++++++++- data/nav.yml | 2 +- .../security/{overview => }/data-flow.png | Bin .../{security/overview.md => security.md} | 0 5 files changed, 18 insertions(+), 3 deletions(-) rename images/docs/pipelines/security/{overview => }/data-flow.png (100%) rename pages/pipelines/{security/overview.md => security.md} (100%) diff --git a/app/views/landing_page_pipelines/_core_concepts.html.erb b/app/views/landing_page_pipelines/_core_concepts.html.erb index 72e0d1b5fe..ef0efbe32a 100644 --- a/app/views/landing_page_pipelines/_core_concepts.html.erb +++ b/app/views/landing_page_pipelines/_core_concepts.html.erb @@ -26,7 +26,7 @@ { title: "Security", content: "Best practices for mitigating risk and securing your build infrasturcture.", - to: "/docs/pipelines/security/overview", + to: "/docs/pipelines/security", icon: "pipelines/icon_pipelines_security.svg" } ], diff --git a/config/routes.rb b/config/routes.rb index 6d1cde8458..c946876113 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -70,13 +70,22 @@ get "/docs/how-tos/gitlab", to: redirect("/docs/pipelines/source-control/gitlab") get "/docs/how-tos/deploying-to-heroku", to: redirect("/docs/deployments/deploying-to-heroku") get "/docs/how-tos/migrating-from-bamboo", to: redirect("/docs/pipelines/migration/from-bamboo") + get "/docs/integrations", to: redirect("/docs/pipelines/integrations") + get "/docs/integrations/amazon-eventbridge", to: redirect("/docs/pipelines/integrations/other/amazon-eventbridge") + get "/docs/integrations/artifactory", to: redirect("/docs/pipelines/integrations/other/artifactory") get "/docs/integrations/bitbucket", to: redirect("/docs/pipelines/source-control/bitbucket") get "/docs/integrations/bitbucket-server", to: redirect("/docs/pipelines/source-control/bitbucket-server") + get "/docs/integrations/build-status-badges", to: redirect("/docs/pipelines/integrations/other/build-status-badges") + get "/docs/integrations/cc-menu", to: redirect("/docs/pipelines/integrations/other/cc-menu") + get "/docs/integrations/docker-hub", to: redirect("/docs/pipelines/integrations/other/docker-hub") get "/docs/integrations/git", to: redirect("/docs/pipelines/source-control/git") get "/docs/integrations/github", to: redirect("/docs/pipelines/source-control/github") get "/docs/integrations/github-enterprise", to: redirect("/docs/pipelines/source-control/github-enterprise") get "/docs/integrations/gitlab", to: redirect("/docs/pipelines/source-control/gitlab") + get "/docs/integrations/pagerduty", to: redirect("/docs/pipelines/integrations/other/pagerduty") get "/docs/integrations/phabricator", to: redirect("/docs/pipelines/source-control/phabricator") + get "/docs/integrations/slack", to: redirect("/docs/pipelines/integrations/other/slack") + get "/docs/integrations/slack-workspace", to: redirect("/docs/pipelines/integrations/other/slack-workspace") get "/docs/integrations/source-control", to: redirect("/docs/pipelines/source-control") get "/docs/integrations/sso", to: redirect("/docs/platform/sso") get "/docs/integrations/sso/google-oauth", to: redirect("/docs/platform/sso/google-workspace") @@ -132,7 +141,8 @@ get "/docs/pipelines/public-pipelines", to: redirect("/docs/pipelines/configure/public-pipelines") get "/docs/pipelines/scheduled-builds", to: redirect("/docs/pipelines/configure/workflows/scheduled-builds") get "/docs/pipelines/secrets", to: redirect("/docs/pipelines/security/secrets/managing") - get "/docs/pipelines/security-overview", to: redirect("/docs/pipelines/security/overview") + get "/docs/pipelines/security/overview", to: redirect("/docs/pipelines/security") + get "/docs/pipelines/security-overview", to: redirect("/docs/pipelines/security") get "/docs/pipelines/security/audit-log", to: redirect("/docs/platform/audit-log") get "/docs/pipelines/security/managing-secrets", to: redirect("/docs/pipelines/security/secrets/managing") get "/docs/pipelines/skipping", to: redirect("/docs/pipelines/configure/skipping") @@ -144,6 +154,11 @@ get "/docs/pipelines/wait-step", to: redirect("/docs/pipelines/configure/step-types/wait-step") get "/docs/pipelines/waterfall", to: redirect("/docs/pipelines/insights/waterfall") get "/docs/pipelines/writing-build-scripts", to: redirect("/docs/pipelines/configure/writing-build-scripts") + get "/docs/plugins", to: redirect("/docs/pipelines/integrations/plugins") + get "/docs/plugins/using", to: redirect("/docs/pipelines/integrations/plugins/using") + get "/docs/plugins/directory", to: redirect("/docs/pipelines/integrations/plugins/directory") + get "/docs/plugins/tools", to: redirect("/docs/pipelines/integrations/plugins/tools") + get "/docs/plugins/writing", to: redirect("/docs/pipelines/integrations/plugins/writing") get "/docs/projects", to: redirect("/docs/pipelines") get "/docs/quickstart/*page", to: redirect("/docs/tutorials/%{page}") get "/docs/rest-api", to: redirect("/docs/apis/rest-api") diff --git a/data/nav.yml b/data/nav.yml index c1cbcf191d..02199f2577 100644 --- a/data/nav.yml +++ b/data/nav.yml @@ -333,7 +333,7 @@ - name: "Security" children: - name: "Overview" - path: "pipelines/security/overview" + path: "pipelines/security" - name: "Secrets" children: - name: "Overview" diff --git a/images/docs/pipelines/security/overview/data-flow.png b/images/docs/pipelines/security/data-flow.png similarity index 100% rename from images/docs/pipelines/security/overview/data-flow.png rename to images/docs/pipelines/security/data-flow.png diff --git a/pages/pipelines/security/overview.md b/pages/pipelines/security.md similarity index 100% rename from pages/pipelines/security/overview.md rename to pages/pipelines/security.md