Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2021-03-01 18:02:39 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2021-03-01 18:05:49 +0300
commit99fe8f3f3ed00cee31c0d89553e1d554c0d06fb8 (patch)
tree34d53501357e205fd6f31abe3c72bc6c047b4e57 /Rakefile
parent72c5ad3430de0cb72a0baaec6f143bc4ded185c8 (diff)
Fix location of the _redirects file
The redirects raketask is run after the site is built, so _redirects needs to be under public/ instead of content/.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index d714ab75..6bf7b631 100644
--- a/Rakefile
+++ b/Rakefile
@@ -257,7 +257,7 @@ end
desc 'Create the _redirects file'
task :redirects do
redirects_yaml = YAML.load_file('content/_data/redirects.yaml')
- redirects_file = 'content/_redirects'
+ redirects_file = 'public/_redirects'
# Remove _redirects before populating it
File.delete(redirects_file) if File.exists?(redirects_file)