mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +01:00
Add API docs to repo.
This commit is contained in:
parent
797ea29113
commit
6f2eb00c43
5 changed files with 18730 additions and 47 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "wekan",
|
||||
"version": "v2.98.0",
|
||||
"version": "v2.99.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
|||
15766
public/api/wekan.html
Normal file
15766
public/api/wekan.html
Normal file
File diff suppressed because one or more lines are too long
2937
public/api/wekan.yml
Normal file
2937
public/api/wekan.yml
Normal file
File diff suppressed because it is too large
Load diff
21
releases/rebuild-docs-install-deps.sh
Executable file
21
releases/rebuild-docs-install-deps.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
# 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/
|
||||
|
|
@ -1,50 +1,9 @@
|
|||
# Generate docs.
|
||||
|
||||
# extract the OpenAPI specification
|
||||
npm install -g api2html@0.3.3
|
||||
mkdir -p ~/python
|
||||
cd ~/python
|
||||
git clone --depth 1 -b master https://github.com/Kronuz/esprima-python
|
||||
cd ~/python/esprima-python
|
||||
python3 setup.py install --record files.txt
|
||||
cd ~/app
|
||||
mkdir -p ~/app/public/api
|
||||
chown wekan --recursive ~/app
|
||||
mkdir -p public/api
|
||||
python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml
|
||||
/opt/nodejs/bin/api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml; \
|
||||
# Build app
|
||||
cd ~/app
|
||||
mkdir -p ~/.npm
|
||||
chown wekan --recursive ~/.npm ~/.config
|
||||
#~/.meteor/meteor add standard-minifier-js
|
||||
npm install
|
||||
~/.meteor/meteor build --directory ~/app_build
|
||||
cp ~/app/fix-download-unicode/cfs_access-point.txt ~/app_build/bundle/programs/server/packages/cfs_access-point.js
|
||||
#rm ~/app_build/bundle/programs/server/npm/node_modules/meteor/rajit_bootstrap3-datepicker/lib/bootstrap-datepicker/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
|
||||
chown wekan ~/app_build/bundle/programs/server/packages/cfs_access-point.js
|
||||
#Removed binary version of bcrypt because of security vulnerability that is not fixed yet.
|
||||
#https://github.com/wekan/wekan/commit/4b2010213907c61b0e0482ab55abb06f6a668eac
|
||||
#https://github.com/wekan/wekan/commit/7eeabf14be3c63fae2226e561ef8a0c1390c8d3c
|
||||
#cd ~/app_build/bundle/programs/server/npm/node_modules/meteor/npm-bcrypt
|
||||
#rm -rf node_modules/bcrypt
|
||||
#npm install bcrypt
|
||||
cd ~/app_build/bundle/programs/server/
|
||||
npm install
|
||||
#npm install bcrypt
|
||||
mv ~/app_build/bundle /build
|
||||
\
|
||||
# Put back the original tar
|
||||
mv $(which tar)~ $(which tar)
|
||||
\
|
||||
# Cleanup
|
||||
apt-get remove --purge -y ${BUILD_DEPS}
|
||||
apt-get autoremove -y
|
||||
npm uninstall -g api2html &&\
|
||||
rm -R /var/lib/apt/lists/*
|
||||
rm -R ~/.meteor
|
||||
rm -R ~/app
|
||||
rm -R ~/app_build
|
||||
cat ~/python/esprima-python/files.txt | xargs rm -R
|
||||
rm -R ~/python
|
||||
api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml
|
||||
|
||||
echo Done.
|
||||
# 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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue