mirror of
https://github.com/wekan/wekan.git
synced 2026-02-28 10:54:07 +01:00
15 lines
509 B
Bash
Executable file
15 lines
509 B
Bash
Executable file
# Extract the OpenAPI specification.
|
|
|
|
# Install dependencies.
|
|
sudo apt-get install python3-pip
|
|
sudo pip3 install -U setuptools wheel
|
|
sudo npm install -g api2html
|
|
cd ~/repos/wekan
|
|
mkdir -p public/api
|
|
|
|
# Generate docs.
|
|
python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml
|
|
api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml
|
|
|
|
# Copy docs to bundle
|
|
#cp -pR ./public/api ~/repos/wekan/.build/bundle/programs/web.browser/app/
|