rebuild-docs-install-deps.sh 509 B

123456789101112131415
  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. cd ~/repos/wekan
  7. mkdir -p public/api
  8. # Generate docs.
  9. python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml
  10. api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml
  11. # Copy docs to bundle
  12. #cp -pR ./public/api ~/repos/wekan/.build/bundle/programs/web.browser/app/