summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-01-18 15:51:16 +0100
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2019-01-18 19:33:08 +0100
commit048c3cd14d5f4236898e927576f9d2ad24e0cdb0 (patch)
tree4fa0d3f21eb164f7697b818ea7b72f0bda789513
parent08ca353205df9612b1e8c0773fce7e85750dfe3b (diff)
downloadwekan-048c3cd14d5f4236898e927576f9d2ad24e0cdb0.tar.gz
wekan-048c3cd14d5f4236898e927576f9d2ad24e0cdb0.tar.bz2
wekan-048c3cd14d5f4236898e927576f9d2ad24e0cdb0.zip
snap: also generate the html doc of the REST API
Same for snap: embed the documentation of the REST API in the snap.
-rw-r--r--snapcraft.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/snapcraft.yaml b/snapcraft.yaml
index cba5bf30..b2b3dfd2 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -112,6 +112,12 @@ parts:
cd ../../..
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 mkdirp
+ api2html -c ./public/wekan-logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml
+ npm uninstall -g mkdirp
+ npm uninstall -g api2html
# Node Fibers 100% CPU usage issue:
# https://github.com/wekan/wekan-mongodb/issues/2#issuecomment-381453161
# https://github.com/meteor/meteor/issues/9796#issuecomment-381676326