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-02-05 12:17:36 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2021-02-05 12:35:43 +0300
commit4f6638affa46de8bcfae368fafa920fc8c070e2c (patch)
treea52efa32586a597de2a71ecfe20948b538cbf683 /.gitlab-ci.yml
parent9c372f7cbdba7b755161476dafc17c1130765878 (diff)
Symlink only listed READMEs to index.html
We need to only symlink the READMEs that are not redirected, in order to avoid redirect loops.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b12a395b..cfcfbc1c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -147,7 +147,7 @@ variables:
- bundle exec rake setup_git default
- bundle exec nanoc compile -VV
# Symlink all README.html to index.html so that we can have clean URLs
- - for i in `find public -name README.html`; do ln -sf README.html $(dirname $i)/index.html; done
+ - bundle exec rake symlink_readmes
# Remove CE dir and symlink EE to CE
- if [ $CI_PIPELINE_SOURCE != 'pipeline' ]; then cd public && rm -rf ce && ln -s ee ce && cd ../; fi
# Calculate sizes before and after minifying/gzipping the static files (HTML, CSS, JS)