Skip to content

Commit ba5d5f6

Browse files
thaJeztahMisty Stanley-Jones
authored and
Misty Stanley-Jones
committed
Update netlify URL's for CLI reference and API (docker#3958)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 3558712 commit ba5d5f6

File tree

2 files changed

+29
-24
lines changed

2 files changed

+29
-24
lines changed

_scripts/fetch-upstream-resources.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ wget -O md_source/engine/api/v1.27/swagger.yaml https://raw.githubusercontent.co
2929
# When you change this you need to make sure to copy the previous
3030
# directory into a new one in the docs git and change the index.html
3131
wget -O md_source/engine/api/v1.28/swagger.yaml https://raw.githubusercontent.com/docker/docker/v17.04.0-ce/api/swagger.yaml || (echo "Failed 1.28 swagger download or the 1.28 directory doesn't exist" && exit -1)
32-
wget -O md_source/engine/api/v1.29/swagger.yaml https://raw.githubusercontent.com/moby/moby/17.05.x/api/swagger.yaml || (echo "Failed 1.29 swagger download or the 1.29 directory doesn't exist" && exit -1)
32+
wget -O md_source/engine/api/v1.29/swagger.yaml https://raw.githubusercontent.com/docker/docker/17.05.x/api/swagger.yaml || (echo "Failed 1.29 swagger download or the 1.29 directory doesn't exist" && exit -1)
3333
# New location for swagger.yaml for 17.06
3434
wget -O md_source/engine/api/v1.30/swagger.yaml https://raw.githubusercontent.com/docker/docker-ce/17.06/components/engine/api/swagger.yaml || (echo "Failed 1.30 swagger download or the 1.30 directory doesn't exist" && exit -1)
3535

netlify.sh

+28-23
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,36 @@
44
# Replicates the non-archive functionality of the Dockerfile
55

66
# First build master
7-
ENGINE_SVN_BRANCH="branches/17.03.x"
8-
ENGINE_BRANCH="17.03.x"
7+
ENGINE_SVN_BRANCH="branches/17.06"
8+
ENGINE_BRANCH="17.06"
99
DISTRIBUTION_SVN_BRANCH="branches/release/2.6"
1010
DISTRIBUTION_BRANCH="release/2.6"
1111

12-
svn co https://github.com/docker/docker/$ENGINE_SVN_BRANCH/docs/extend engine/extend \
13-
&& wget -O engine/api/v1.18.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/api/v1.18.md \
14-
&& wget -O engine/api/v1.19.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/api/v1.19.md \
15-
&& wget -O engine/api/v1.20.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/api/v1.20.md \
16-
&& wget -O engine/api/v1.21.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/api/v1.21.md \
17-
&& wget -O engine/api/v1.22.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/api/v1.22.md \
18-
&& wget -O engine/api/v1.23.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/api/v1.23.md \
19-
&& wget -O engine/api/v1.24.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/api/v1.24.md \
20-
&& wget -O engine/api/version-history.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/api/version-history.md \
21-
&& wget -O engine/reference/glossary.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/reference/glossary.md \
22-
&& wget -O engine/reference/builder.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/reference/builder.md \
23-
&& wget -O engine/reference/run.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/reference/run.md \
24-
&& wget -O engine/reference/commandline/cli.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/reference/commandline/cli.md \
25-
&& wget -O engine/deprecated.md https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/docs/deprecated.md \
12+
svn co https://github.com/docker/docker-ce/$ENGINE_SVN_BRANCH/components/cli/docs/extend engine/extend \
13+
&& wget -O engine/api/v1.18.md https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/cli/docs/api/v1.18.md \
14+
&& wget -O engine/api/v1.19.md https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/cli/docs/api/v1.19.md \
15+
&& wget -O engine/api/v1.20.md https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/cli/docs/api/v1.20.md \
16+
&& wget -O engine/api/v1.21.md https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/cli/docs/api/v1.21.md \
17+
&& wget -O engine/api/v1.22.md https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/cli/docs/api/v1.22.md \
18+
&& wget -O engine/api/v1.23.md https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/cli/docs/api/v1.23.md \
19+
&& wget -O engine/api/v1.24.md https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/cli/docs/api/v1.24.md \
20+
&& wget -O engine/api/version-history.md https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/cli/docs/api/version-history.md \
21+
&& wget -O engine/reference/glossary.md https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/cli/docs/reference/glossary.md \
22+
&& wget -O engine/reference/builder.md https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/cli/docs/reference/builder.md \
23+
&& wget -O engine/reference/run.md https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/cli/docs/reference/run.md \
24+
&& wget -O engine/reference/commandline/cli.md https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/cli/docs/reference/commandline/cli.md \
25+
&& wget -O engine/deprecated.md https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/cli/docs/deprecated.md \
2626
&& svn co https://github.com/docker/distribution/$DISTRIBUTION_SVN_BRANCH/docs/spec registry/spec \
2727
&& rm registry/spec/api.md.tmpl \
2828
&& wget -O registry/configuration.md https://raw.githubusercontent.com/docker/distribution/$DISTRIBUTION_BRANCH/docs/configuration.md \
2929
&& rm -rf apidocs/cloud-api-source \
3030
&& rm -rf tests \
31-
&& wget -O engine/api/v1.25/swagger.yaml https://raw.githubusercontent.com/docker/docker/v1.13.0/api/swagger.yaml \
32-
&& wget -O engine/api/v1.26/swagger.yaml https://raw.githubusercontent.com/docker/docker/v17.03.0-ce/api/swagger.yaml \
33-
&& wget -O engine/api/v1.27/swagger.yaml https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/api/swagger.yaml \
31+
&& wget -O engine/api/v1.25/swagger.yaml https://raw.githubusercontent.com/docker/docker/v1.13.0/api/swagger.yaml \
32+
&& wget -O engine/api/v1.26/swagger.yaml https://raw.githubusercontent.com/docker/docker/v17.03.0-ce/api/swagger.yaml \
33+
&& wget -O engine/api/v1.27/swagger.yaml https://raw.githubusercontent.com/docker/docker/v17.03.1-ce/api/swagger.yaml \
34+
&& wget -O engine/api/v1.28/swagger.yaml https://raw.githubusercontent.com/docker/docker/v17.04.0-ce/api/swagger.yaml \
35+
&& wget -O engine/api/v1.29/swagger.yaml https://raw.githubusercontent.com/docker/docker/v17.05.0-ce/api/swagger.yaml \
36+
&& wget -O engine/api/v1.30/swagger.yaml https://raw.githubusercontent.com/docker/docker-ce/$ENGINE_BRANCH/components/engine/api/swagger.yaml \
3437
&& jekyll build -d site --config _config.yml \
3538
&& rm -rf site/apidocs/layouts \
3639
&& find site -type f -name '*.html' -print0 | xargs -0 sed -i 's#href="https://docs.docker.com/#href="/#g'
@@ -39,8 +42,8 @@ echo "Jekyll site in site/"
3942

4043
# Then build edge
4144

42-
ENGINE_SVN_BRANCH="branches/17.04.x"
43-
ENGINE_BRANCH="17.04.x"
45+
ENGINE_SVN_BRANCH="branches/17.05.x"
46+
ENGINE_BRANCH="17.05.x"
4447
DISTRIBUTION_SVN_BRANCH="branches/release/2.6"
4548
DISTRIBUTION_BRANCH="release/2.6"
4649

@@ -65,9 +68,11 @@ svn co https://github.com/docker/docker/$ENGINE_SVN_BRANCH/docs/extend engine/ex
6568
&& rm -rf tests \
6669
&& wget -O engine/api/v1.25/swagger.yaml https://raw.githubusercontent.com/docker/docker/v1.13.0/api/swagger.yaml \
6770
&& wget -O engine/api/v1.26/swagger.yaml https://raw.githubusercontent.com/docker/docker/v17.03.0-ce/api/swagger.yaml \
68-
&& wget -O engine/api/v1.27/swagger.yaml https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/api/swagger.yaml \
71+
&& wget -O engine/api/v1.27/swagger.yaml https://raw.githubusercontent.com/docker/docker/v17.03.1-ce/api/swagger.yaml \
72+
&& wget -O engine/api/v1.28/swagger.yaml https://raw.githubusercontent.com/docker/docker/v17.04.0-ce/api/swagger.yaml \
73+
&& wget -O engine/api/v1.29/swagger.yaml https://raw.githubusercontent.com/docker/docker/$ENGINE_BRANCH/api/swagger.yaml \
6974
&& jekyll build -d site/edge --config _config-edge.yml \
70-
&& echo "Jekyll site in site/edge"
75+
&& echo "Jekyll site in site/edge" \
7176
&& rm -rf site/edge/apidocs/layouts \
7277
&& find site/edge -type f -name '*.html' -print0 | xargs -0 sed -i 's#href="https://docs.docker.com/#href="/#g'
7378

0 commit comments

Comments
 (0)