d58bf9ed47
Signed-off-by: Ian Babrou <ibobrik@gmail.com> (cherry picked from commit824e7e8ae2
) Conflicts: docs/mkdocs.yml Add environment variable override instructions Signed-off-by: Richard Scothern <richard.scothern@gmail.com> (cherry picked from commit937c356585
) Fixing headings Signed-off-by: Mary Anthony <mary@docker.com> (cherry picked from commit7c93c8c265
) Fixes Issue #471 with Publish - Add sed to Dockerfile; this sed exists on publish script; breaks headings/nav in files without metadata - Ensure sed runs over storage-driver/ subdir - Add metadata to all the files (including specs) that don't have it; this ensures they display correctly on publish - Implement the fix for the showing up in Github - Update template with GITHUB IGNORES Signed-off-by: Mary Anthony <mary@docker.com> (cherry picked from commit68c0682e00
)
37 lines
1.2 KiB
Docker
37 lines
1.2 KiB
Docker
FROM docs/base:latest
|
|
MAINTAINER Mary <mary@docker.com> (@moxiegirl)
|
|
|
|
# to get the git info for this repo
|
|
COPY . /src
|
|
|
|
# Reset the /docs dir so we can replace the theme meta with the new repo's git info
|
|
RUN git reset --hard
|
|
|
|
RUN grep "VERSION =" /src/version/version.go | sed 's/.*"\(.*\)".*/\1/' > /docs/VERSION
|
|
|
|
|
|
#
|
|
# RUN git describe --match 'v[0-9]*' --dirty='.m' --always > /docs/VERSION
|
|
# The above line causes a floating point error in our tools
|
|
#
|
|
COPY docs/* /docs/sources/registry/
|
|
COPY docs/images/* /docs/sources/registry/images/
|
|
COPY docs/spec/* /docs/sources/registry/spec/
|
|
COPY docs/spec/auth/* /docs/sources/registry/spec/auth/
|
|
COPY docs/storage-drivers/* /docs/sources/registry/storage-drivers/
|
|
COPY docs/mkdocs.yml /docs/mkdocs-distribution.yml
|
|
|
|
RUN sed -i.old '1s;^;no_version_dropdown: true;' \
|
|
/docs/sources/registry/*.md \
|
|
/docs/sources/registry/spec/*.md \
|
|
/docs/sources/registry/spec/auth/*.md \
|
|
/docs/sources/registry/storage-drivers/*.md
|
|
|
|
RUN sed -i.old -e '/^<!--GITHUB/g' -e '/^IGNORES-->/g'\
|
|
/docs/sources/registry/*.md \
|
|
/docs/sources/registry/spec/*.md \
|
|
/docs/sources/registry/spec/auth/*.md \
|
|
/docs/sources/registry/storage-drivers/*.md
|
|
|
|
# Then build everything together, ready for mkdocs
|
|
RUN /docs/build.sh
|