mirror of https://github.com/docker/docs.git
Change distribution URL to distribution/distribution (#13484)
* Change distribution URL to distribution/distribution * Indent code Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
This commit is contained in:
parent
4ff155699b
commit
e396d7aa86
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Fetches upstream resources from docker/docker and docker/distribution
|
# Fetches upstream resources from docker/docker and distribution/distribution
|
||||||
# before handing off the site to Jekyll to build
|
# before handing off the site to Jekyll to build
|
||||||
# Relies on the "ENGINE_BRANCH" and "DISTRIBUTION_BRANCH" environment variables,
|
# Relies on the "ENGINE_BRANCH" and "DISTRIBUTION_BRANCH" environment variables,
|
||||||
# which are usually set by the Dockerfile.
|
# which are usually set by the Dockerfile.
|
||||||
: "${ENGINE_BRANCH?No release branch set for docker/docker and docker/cli}"
|
: "${ENGINE_BRANCH?No release branch set for docker/docker and docker/cli}"
|
||||||
: "${DISTRIBUTION_BRANCH?No release branch set for docker/distribution}"
|
: "${DISTRIBUTION_BRANCH?No release branch set for distribution/distribution}"
|
||||||
: "${COMPOSE_CLI_BRANCH?No release branch set for docker/compose-cli}"
|
: "${COMPOSE_CLI_BRANCH?No release branch set for docker/compose-cli}"
|
||||||
|
|
||||||
# Translate branches for use by svn
|
# Translate branches for use by svn
|
||||||
|
@ -26,7 +26,7 @@ fi
|
||||||
svn co "https://github.com/docker/cli/${engine_svn_branch}/docs/extend" ./engine/extend || (echo "Failed engine/extend download" && exit 1)
|
svn co "https://github.com/docker/cli/${engine_svn_branch}/docs/extend" ./engine/extend || (echo "Failed engine/extend download" && exit 1)
|
||||||
svn co "https://github.com/docker/docker/${engine_svn_branch}/docs/api" ./engine/api || (echo "Failed engine/api download" && exit 1)
|
svn co "https://github.com/docker/docker/${engine_svn_branch}/docs/api" ./engine/api || (echo "Failed engine/api download" && exit 1)
|
||||||
svn co "https://github.com/docker/compose-cli/${compose_cli_svn_branch}/docs" ./cloud || (echo "Failed compose-cli/docs download" && exit 1)
|
svn co "https://github.com/docker/compose-cli/${compose_cli_svn_branch}/docs" ./cloud || (echo "Failed compose-cli/docs download" && exit 1)
|
||||||
svn co "https://github.com/docker/distribution/${distribution_svn_branch}/docs/spec" ./registry/spec || (echo "Failed registry/spec download" && exit 1)
|
svn co "https://github.com/distribution/distribution/${distribution_svn_branch}/docs/spec" ./registry/spec || (echo "Failed registry/spec download" && exit 1)
|
||||||
|
|
||||||
# Fix up URls in swagger files
|
# Fix up URls in swagger files
|
||||||
find ./engine/api -type f -name '*.yaml' | while read i; do sed -i 's#https://docs.docker.com/#/#g' "$i"; done;
|
find ./engine/api -type f -name '*.yaml' | while read i; do sed -i 's#https://docs.docker.com/#/#g' "$i"; done;
|
||||||
|
@ -40,7 +40,7 @@ wget --quiet --directory-prefix=./engine/reference/ "https://raw.git
|
||||||
wget --quiet --directory-prefix=./engine/reference/ "https://raw.githubusercontent.com/docker/cli/${ENGINE_BRANCH}/docs/reference/run.md" || (echo "Failed engine/reference/run.md download" && exit 1)
|
wget --quiet --directory-prefix=./engine/reference/ "https://raw.githubusercontent.com/docker/cli/${ENGINE_BRANCH}/docs/reference/run.md" || (echo "Failed engine/reference/run.md download" && exit 1)
|
||||||
wget --quiet --directory-prefix=./engine/reference/commandline/ "https://raw.githubusercontent.com/docker/cli/${ENGINE_BRANCH}/docs/reference/commandline/cli.md" || (echo "Failed engine/reference/commandline/cli.md download" && exit 1)
|
wget --quiet --directory-prefix=./engine/reference/commandline/ "https://raw.githubusercontent.com/docker/cli/${ENGINE_BRANCH}/docs/reference/commandline/cli.md" || (echo "Failed engine/reference/commandline/cli.md download" && exit 1)
|
||||||
wget --quiet --directory-prefix=./engine/reference/commandline/ "https://raw.githubusercontent.com/docker/cli/${ENGINE_BRANCH}/docs/reference/commandline/dockerd.md" || (echo "Failed engine/reference/commandline/dockerd.md download" && exit 1)
|
wget --quiet --directory-prefix=./engine/reference/commandline/ "https://raw.githubusercontent.com/docker/cli/${ENGINE_BRANCH}/docs/reference/commandline/dockerd.md" || (echo "Failed engine/reference/commandline/dockerd.md download" && exit 1)
|
||||||
wget --quiet --directory-prefix=./registry/ "https://raw.githubusercontent.com/docker/distribution/${DISTRIBUTION_BRANCH}/docs/configuration.md" || (echo "Failed registry/configuration.md download" && exit 1)
|
wget --quiet --directory-prefix=./registry/ "https://raw.githubusercontent.com/distribution/distribution/${DISTRIBUTION_BRANCH}/docs/configuration.md" || (echo "Failed registry/configuration.md download" && exit 1)
|
||||||
|
|
||||||
# Remove things we don't want in the build
|
# Remove things we don't want in the build
|
||||||
rm -f ./engine/extend/cli_plugins.md # the cli plugins api is not a stable API, and not included in the TOC for that reason.
|
rm -f ./engine/extend/cli_plugins.md # the cli plugins api is not a stable API, and not included in the TOC for that reason.
|
||||||
|
|
Loading…
Reference in New Issue