From 0c85ccce99fb7ba911d5300c0b7dd9b1aa8a6e3c Mon Sep 17 00:00:00 2001 From: Michiel Stornebrink Date: Wed, 4 Oct 2023 22:57:52 +0200 Subject: [PATCH] For prototype repo, use main instead of 'documentation' branch to get docs --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 914124a..410f131 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,9 @@ 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 @@ -17,8 +18,8 @@ RUN mkdir -p /app/docs # 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