2015-07-19 18:39:43 -04:00
|
|
|
FROM docs/base:latest
|
2015-06-07 23:07:20 -04:00
|
|
|
MAINTAINER Mary Anthony <mary@docker.com> (@moxiegirl)
|
2014-10-22 18:14:02 -04:00
|
|
|
|
2015-06-07 23:07:20 -04:00
|
|
|
# To get the git info for this repo
|
2015-02-17 23:20:46 -05:00
|
|
|
COPY . /src
|
|
|
|
|
2015-06-16 09:04:13 -04:00
|
|
|
COPY . /docs/content/
|
2015-06-07 23:07:20 -04:00
|
|
|
|
2015-08-12 01:30:50 -04:00
|
|
|
RUN svn checkout https://github.com/docker/compose/trunk/docs /docs/content/compose
|
|
|
|
RUN svn checkout https://github.com/docker/swarm/trunk/docs /docs/content/swarm
|
|
|
|
RUN svn checkout https://github.com/docker/machine/trunk/docs /docs/content/machine
|
|
|
|
RUN svn checkout https://github.com/docker/distribution/trunk/docs /docs/content/registry
|
|
|
|
RUN svn checkout https://github.com/kitematic/kitematic/trunk/docs /docs/content/kitematic
|
|
|
|
RUN svn checkout https://github.com/docker/tutorials/trunk/docs /docs/content/
|
|
|
|
RUN svn checkout https://github.com/docker/opensource/trunk/docs /docs/content/opensource
|
2015-06-16 09:04:13 -04:00
|
|
|
|
|
|
|
|
2015-08-12 01:30:50 -04:00
|
|
|
|
|
|
|
|
|
|
|
# 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/ --> not implemented
|
|
|
|
#
|
|
|
|
#
|
|
|
|
RUN /src/pre-process.sh /docs
|