diff options
Diffstat (limited to 'lib/tasks/gitlab/docs/redirect.rake')
-rw-r--r-- | lib/tasks/gitlab/docs/redirect.rake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/tasks/gitlab/docs/redirect.rake b/lib/tasks/gitlab/docs/redirect.rake index 2d234fcdb36..35e0d083210 100644 --- a/lib/tasks/gitlab/docs/redirect.rake +++ b/lib/tasks/gitlab/docs/redirect.rake @@ -1,12 +1,13 @@ # frozen_string_literal: true -require 'date' -require 'pathname' -require "yaml" # # https://docs.gitlab.com/ee/development/documentation/#move-or-rename-a-page # namespace :gitlab do + require 'date' + require 'pathname' + require 'yaml' + namespace :docs do desc 'GitLab | Docs | Create a doc redirect' task :redirect, [:old_path, :new_path] do |_, args| |