rebuild-docs-install-deps.sh 686 B

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