Skip to content

Commit

Permalink
Symlink on built website to support /docs/ links
Browse files Browse the repository at this point in the history
  • Loading branch information
cason committed Sep 29, 2023
1 parent 4255daf commit 5632e4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ build:
@rm -rf _site
@docker run -it --rm --volume ${PWD}:/srv/jekyll jekyll/builder:stable \
/bin/bash -c 'cd /srv/jekyll/ && bundle install && bundle exec jekyll build --future -V '
@while read -r branch output_path visible ; do \
ln -s . _site/$${output_path}/docs ; \
done < VERSIONS
@if [ "${LOCAL_DOCS_REPO}" ]; then \
ln -s . _site/dev/docs ; \
fi
@rm -rf _site/build
.PHONY: build

Expand Down

0 comments on commit 5632e4a

Please sign in to comment.