rebuild-docs-install-deps.sh 838 B

123456789101112131415161718192021
  1. # Generate docs.
  2. # extract the OpenAPI specification
  3. sudo apt-get install python3-pip
  4. sudo pip3 install -U setuptools wheel
  5. sudo npm install -g api2html@0.3.3
  6. sudo npm install -g --unsafe-perm api2html@0.3.0
  7. sudo npm install -g --unsafe-perm mkdirp
  8. mkdir -p ~/python
  9. cd ~/python
  10. git clone --depth 1 -b master https://github.com/Kronuz/esprima-python
  11. cd ~/python/esprima-python
  12. sudo python3 setup.py install --record files.txt
  13. cd ~/repos/wekan
  14. mkdir -p public/api
  15. python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml
  16. api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml
  17. # Copy docs to bundle
  18. #cp -pR ./public/api ~/repos/wekan/.build/bundle/programs/web.browser/app/
  19. #cp -pR ./public/api ~/repos/wekan/.build/bundle/programs/web.browser.legacy/app/