diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2021-02-05 02:22:37 +0300 |
---|---|---|
committer | Marcel Amirault <mamirault@gitlab.com> | 2021-02-05 02:22:37 +0300 |
commit | 8b7a906df0f1eb989ddf9b877962da3190d5e205 (patch) | |
tree | da45cd10e7f6accaa1ea1bdbdc6b151f3dee8e15 /.gitlab-ci.yml | |
parent | 59f1990f51b3ee7c09a15354d28fa8429b08d3fd (diff) |
List the READMEs that need to be symlinked into index.html
We need to only symlink the READMEs that are not redirected,
in order to avoid redirect loops.
Once a README.md is redirected to an index.md, remove it from the list.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b12a395b..b0d51fa8 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 + - for i in `cat scripts/readmes.txt`; do ln -sf README.html $(dirname $i)/index.html; done # 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) |