1
0
mirror of https://github.com/docker/docs.git synced 2026-10-28 07:15:09 +03:00

check in apidocs move

Signed-off-by: LRubin <lrubin@docker.com>
This commit is contained in:
LRubin
2016-10-04 15:53:07 -07:00
parent 7480dc4e2a
commit 55be806bd7
29 changed files with 10 additions and 9 deletions

View File

@@ -14,14 +14,15 @@ release: build
docker rm -f $(CONTAINER_NAME) || true
docker run --name $(CONTAINER_NAME) -it \
dockercloud/api-docs middleman build
docker cp $(CONTAINER_NAME):/app/build ../cloud-api-output/
rm -r ../cloud-api-output/docker-cloud
mv ../cloud-api-output/build ../cloud-api-output/docker-cloud
cp ../cloud-api-output/docker-cloud/index.html ../cloud-api-output/layouts/single.html
docker cp $(CONTAINER_NAME):/app/build ../
rm -r ../docker-cloud
mv ../build ../docker-cloud
cp ../docker-cloud/index.html ../layouts/single.html
# defuse text that looks like a go template
grep -rl '{{' ../cloud-api-output/* | xargs sed -i~ "s/{{/{ {/g"
rm ../cloud-api-output/docker-cloud/includes/node.html~
rm ../cloud-api-output/docker-cloud/includes/stack.html~
rm ../cloud-api-output/docker-cloud/index.html~
rm ../cloud-api-output/layouts/single.html~
# commenting out until we know that we're not using Hugo anywhere & can remove
# grep -rl '{ {' ../docker-cloud/* | xargs sed -i~ "s/{ {/{ {/g"
#rm source/includes/node.md~
#rm source/includes/stack.md~
#rm ../source/index.html~
#rm ../source/layouts/single.html~
docker rm $(CONTAINER_NAME)

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 96 B

After

Width:  |  Height:  |  Size: 96 B