1aa8b00bdf
Renaming to index.md;rereading of Hugo showed me my mistake; removing commented out/Markdown has no comment feature Updating with Olivier. Yay! It looks great Signed-off-by: Mary Anthony <mary@docker.com>
26 lines
No EOL
920 B
Docker
26 lines
No EOL
920 B
Docker
FROM docs/base:hugo
|
|
MAINTAINER Mary Anthony <mary@docker.com> (@moxiegirl)
|
|
|
|
# To get the git info for this repo
|
|
COPY . /src
|
|
|
|
COPY . /docs/content/registry/
|
|
|
|
# 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/registry -type f -name "*.md" -exec sed -i.old \
|
|
-e '/^<!.*metadata]>/g' \
|
|
-e '/^<!.*end-metadata.*>/g' \
|
|
-e 's/\(\]\)\([(]\)\(\/\)/\1\2\/registry\//g' \
|
|
-e 's/\(\][(]\)\([A-z].*\)\(\.md\)/\1\/registry\/\2/g' \
|
|
-e 's/\([(]\)\(.*\)\(\.md\)/\1\2/g' \
|
|
-e 's/\(\][(]\)\(\.\/\)/\1\/registry\//g' \
|
|
-e 's/\(\][(]\)\(\.\.\/\.\.\/\)/\1\/registry\//g' \
|
|
-e 's/\(\][(]\)\(\.\.\/\)/\1\/registry\//g' {} \; |