Răsfoiți Sursa

- Use older api2html@0.3.0 to fix broken snap and docker build,
because newer api2html caused
[breaking change](https://github.com/tobilg/api2html/commit/a9a41bca18db3f9ec61395d7262eff071a995783)
at api2html/bin/api2html.js:23 has error about "php: "PHP".

Thanks to bentiss with Apache I-CLA !

Closes #2286

Lauri Ojansivu 6 ani în urmă
părinte
comite
625682a4da
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      Dockerfile
  2. 1 1
      snapcraft.yaml

+ 1 - 1
Dockerfile

@@ -302,7 +302,7 @@ RUN \
     gosu wekan:wekan /home/wekan/.meteor/meteor -- help; \
     \
     # extract the OpenAPI specification
-    npm install -g api2html && \
+    npm install -g api2html@0.3.0 && \
     mkdir -p /home/wekan/python && \
     chown wekan:wekan --recursive /home/wekan/python && \
     cd /home/wekan/python && \

+ 1 - 1
snapcraft.yaml

@@ -113,7 +113,7 @@ parts:
             mkdir -p ./public/api
             python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml
             # we temporary need api2html and mkdirp
-            npm install -g api2html
+            npm install -g api2html@0.3.0
             npm install -g mkdirp
             api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml
             npm uninstall -g mkdirp