Skip to content

Commit

Permalink
For prototype repo, use main instead of 'documentation' branch to get…
Browse files Browse the repository at this point in the history
… docs
  • Loading branch information
Michiel-s committed Oct 4, 2023
1 parent 732c49c commit 0c85ccc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ RUN npm install
RUN npx update-browserslist-db@latest

ADD https://github.com/AmpersandTarski/ampersand/archive/refs/heads/documentation.zip /tmp/Ampersand.zip
ADD https://github.com/AmpersandTarski/prototype/archive/refs/heads/documentation.zip /tmp/prototype.zip
ADD https://github.com/AmpersandTarski/RAP/archive/refs/heads/documentation.zip /tmp/RAP.zip
# For prototype repo we use the main branch
ADD https://github.com/AmpersandTarski/prototype/archive/refs/heads/main.zip /tmp/prototype.zip

RUN mkdir -p /app/docs

# For local testing, this is the place to locally edit this dockerfile.
# 1) Comment out the specific RUN statement(s) for the repo you want to test your local changes:
RUN unzip /tmp/Ampersand.zip 'Ampersand-documentation/docs/*' -d /tmp/ampersand/ \
&& cp -R /tmp/ampersand/Ampersand-documentation/docs/ /app/docs/ampersand
RUN unzip /tmp/prototype.zip 'prototype-documentation/docs/*' -d /tmp/prototype/ \
&& cp -R /tmp/prototype/prototype-documentation/docs/ /app/docs/prototype
RUN unzip /tmp/prototype.zip 'prototype-main/docs/*' -d /tmp/prototype/ \
&& cp -R /tmp/prototype/prototype-main/docs/ /app/docs/prototype
RUN unzip /tmp/RAP.zip 'RAP-documentation/docs/*' -d /tmp/rap/ \
&& cp -R /tmp/rap/RAP-documentation/docs/ /app/docs/rap

Expand Down

0 comments on commit 0c85ccc

Please sign in to comment.