Merge pull request #1395 from aduermael/remove-apidocs-layouts-after-build

remove apidocs/layout after jekyll build
This commit is contained in:
Misty Stanley-Jones 2017-01-26 12:14:38 -08:00 committed by GitHub
commit 1f7516c140
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ RUN svn co https://github.com/docker/docker/branches/$ENGINE_BRANCH/docs/extend
&& rm -rf allv/tests \
&& wget -O allv/engine/api/v1.25/swagger.yaml https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/api/swagger.yaml \
&& jekyll build -s allv -d allvbuild \
&& rm -rf allv/apidocs/layouts \
&& rm -rf allvbuild/apidocs/layouts \
&& find allvbuild -type f -name '*.html' -print0 | xargs -0 sed -i 's#href="https://docs.docker.com/#href="/#g' \
&& rm -rf allv