Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Sep 19, 2023
1 parent d231a49 commit 84cb46f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pwa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ COPY --from=composer /usr/bin/composer /usr/bin/composer
COPY --from=phario/phive:0.15.2 /usr/local/bin/phive /usr/bin/phive
RUN docker-php-ext-install zip
RUN phive install --trust-gpg-keys 62D05354C61458CB8378FD323F82299C64F51AD2 --copy php-documentation-generator/php-documentation-generator
COPY docs-versions.txt docs-versions.txt
COPY tools/get-core-docs.sh ./get-core-docs.sh
COPY pdg.config.yaml ./pdg.config.yaml
# this is used to preload data see phpwasm
RUN git clone -b main --single-branch --depth=1 https://github.com/api-platform/core core.docs && \
cd core.docs/docs && \
composer install
RUN bash get-core-docs.sh
RUN echo 'run' && bash get-core-docs.sh

FROM soyuka/php-wasm:8.2.9 as phpwasm
# We want soyuka/php-wasm to compile without js optimisation so that we can `sed`
Expand Down
2 changes: 1 addition & 1 deletion pwa/tools/get-core-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ do
git fetch --depth=1 origin $version
git checkout FETCH_HEAD -b $version-temp
cp $root/core.temp/CHANGELOG.md $root/data/docs/changelog/$version.mdx
if [[ -d docs/guides ]];
if [[ -d $root/core.temp/docs/guides ]];
then
composer install
mkdir -p $root/data/docs/{guides,reference}/$version
Expand Down

0 comments on commit 84cb46f

Please sign in to comment.