From 900cd57a1cdd57284534782375306d0bdecec649 Mon Sep 17 00:00:00 2001 From: Adrien Duermael Date: Thu, 26 Jan 2017 10:47:24 -0800 Subject: [PATCH] make links to https://docs.docker.com relative All of them, not just the ones in /engine/extend & /engine/reference Signed-off-by: Adrien Duermael --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 740a9913540..ab0e05f597c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,8 +45,7 @@ RUN svn co https://github.com/docker/docker/branches/$ENGINE_BRANCH/docs/extend && 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 \ - && find allvbuild/engine/reference -type f -name '*.html' -print0 | xargs -0 sed -i 's#href="https://docs.docker.com/#href="/#g' \ - && find allvbuild/engine/extend -type f -name '*.html' -print0 | xargs -0 sed -i 's#href="https://docs.docker.com/#href="/#g' \ + && find allvbuild -type f -name '*.html' -print0 | xargs -0 sed -i 's#href="https://docs.docker.com/#href="/#g' \ && rm -rf allv # Serve the site, which is now all static HTML