mirror of https://github.com/docker/docs.git
remove the preprocessing
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
parent
a22901cde2
commit
14443ba2aa
26
Dockerfile
26
Dockerfile
|
@ -5,29 +5,3 @@ MAINTAINER Mary Anthony <mary@docker.com> (@moxiegirl)
|
|||
COPY . /src
|
||||
|
||||
COPY . /docs/content/docker-trusted-registry/
|
||||
|
||||
WORKDIR /docs/content
|
||||
|
||||
ADD touch-up.sh /docs/content/touch-up.sh
|
||||
RUN /docs/content/touch-up.sh
|
||||
|
||||
WORKDIR /docs
|
||||
|
||||
# Sed to process GitHub Markdown
|
||||
# 1-2 Remove comment code from metadata block
|
||||
# 3 Change ](/word to ](/project/ in links
|
||||
# 4 Change ](word.md) to ](/project/word)
|
||||
# 5 Remove .md extension from link text
|
||||
# 6 Change ](./ to ](/project/word)
|
||||
# 7 Change ](../../ to ](/project/
|
||||
# 8 Change ](../ to ](/project/
|
||||
#
|
||||
#RUN find /docs/content/docker-trusted-registry -type f -name "*.md" -exec sed -i.old \
|
||||
# -e '/^<!.*metadata]>/g' \
|
||||
# -e '/^<!.*end-metadata.*>/g' \
|
||||
# -e 's/\(\]\)\([(]\)\(\/\)/\1\2\/docker-trusted-registry\//g' \
|
||||
# -e 's/\(\][(]\)\([A-z].*\)\(\.md\)/\1\/docker-trusted-registry\/\2/g' \
|
||||
# -e 's/\([(]\)\(.*\)\(\.md\)/\1\2/g' \
|
||||
# -e 's/\(\][(]\)\(\.\/\)/\1\/docker-trusted-registry\//g' \
|
||||
# -e 's/\(\][(]\)\(\.\.\/\.\.\/\)/\1\/docker-trusted-registry\//g' \
|
||||
# -e 's/\(\][(]\)\(\.\.\/\)/\1\/docker-trusted-registry\//g' {} \;
|
||||
|
|
2
Makefile
2
Makefile
|
@ -41,7 +41,7 @@ test: docs-build
|
|||
-v $(CURDIR):/docs/content/docker-trusted-registry/ \
|
||||
-e DOCKERHOST "$(DOCKER_DOCS_IMAGE)" \
|
||||
hugo server \
|
||||
--log=true --watch=true --buildDrafts=true \
|
||||
--log=true --watch=true \
|
||||
--port=$(DOCSPORT) --baseUrl=$(HUGO_BASE_URL) --bind=$(HUGO_BIND_IP)
|
||||
|
||||
docs: docs-build
|
||||
|
|
Loading…
Reference in New Issue