mirror of
https://github.com/rancher/os.git
synced 2025-09-06 17:22:34 +00:00
update master to generate docs like rancher.github.io does
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
21
docs/Dockerfile.build
Normal file
21
docs/Dockerfile.build
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM jekyll/jekyll:3.4 AS builder
|
||||
WORKDIR /build
|
||||
COPY Gemfile /build
|
||||
COPY Gemfile.lock /build
|
||||
COPY _config.yml /build
|
||||
RUN jekyll build
|
||||
COPY . /build
|
||||
|
||||
# IMPORTANT: this line moves the development docs to where they would be in rancher/rancher.gihub.io
|
||||
RUN mv os os-orig \
|
||||
&& mkdir -p os/v1.0/en \
|
||||
&& mv os-orig/* os/v1.0/en/
|
||||
|
||||
# Set up the latest pages that get converted into redirects
|
||||
ENV OS_DOCS_LATEST v1.0
|
||||
RUN mkdir -p os/latest/en \
|
||||
&& cp -r os/v1.0/en/* os/latest/en/ \
|
||||
&& cp -r os/v1.0/en/* os/latest/ \
|
||||
&& cp -r os/v1.0/en/* os/
|
||||
|
||||
RUN jekyll build
|
Reference in New Issue
Block a user