2021-03-07 17:57:24 +02:00
|
|
|
# Extract the OpenAPI specification.
|
2019-07-17 17:06:25 +03:00
|
|
|
|
2021-03-07 17:57:24 +02:00
|
|
|
# Install dependencies.
|
2019-07-17 17:06:25 +03:00
|
|
|
sudo apt-get install python3-pip
|
|
|
|
sudo pip3 install -U setuptools wheel
|
2021-03-07 17:57:24 +02:00
|
|
|
sudo npm install -g api2html
|
2021-03-26 18:41:34 +01:00
|
|
|
mkdir -p ~/python
|
|
|
|
cd ~/python
|
|
|
|
git clone --depth 1 -b master https://github.com/Kronuz/esprima-python
|
|
|
|
cd ~/python/esprima-python
|
|
|
|
sudo python3 setup.py install --record files.txt
|
2019-07-17 17:06:25 +03:00
|
|
|
cd ~/repos/wekan
|
|
|
|
mkdir -p public/api
|
2021-03-07 17:57:24 +02:00
|
|
|
|
|
|
|
# Generate docs.
|
2019-07-17 17:06:25 +03:00
|
|
|
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/
|