mirror of https://github.com/wekan/wekan
The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://transifex.com/wekan/wekan only.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
838 B
22 lines
838 B
![]()
6 years ago
|
# Generate docs.
|
||
|
|
||
|
# extract the OpenAPI specification
|
||
|
sudo apt-get install python3-pip
|
||
|
sudo pip3 install -U setuptools wheel
|
||
|
sudo npm install -g api2html@0.3.3
|
||
|
sudo npm install -g --unsafe-perm api2html@0.3.0
|
||
|
sudo npm install -g --unsafe-perm mkdirp
|
||
|
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
|
||
|
cd ~/repos/wekan
|
||
|
mkdir -p public/api
|
||
|
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/
|
||
|
#cp -pR ./public/api ~/repos/wekan/.build/bundle/programs/web.browser.legacy/app/
|