Tried to fix building WeKan OpenAPI docs using Ubuntu 23.04 amd64 with XFCE desktop, but it did not work, still getting error: Failed to parse the source OpenAPI document.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2023-05-08 22:46:53 +03:00
parent 8f176421da
commit 97c6b65315

View file

@ -14,22 +14,17 @@ fi
# install dependencies. # install dependencies.
if [ ! -d ~/python/esprima-python ]; then if [ ! -d ~/python/esprima-python ]; then
sudo apt-get -y install python3-pip sudo apt-get -y install python3-pip python3-swagger-spec-validator python3-wheel python3-setuptools
pip3 install -U setuptools wheel
sudo npm install -g api2html sudo npm install -g api2html
mkdir -p ~/python (mkdir -p ~/python && cd ~/python && git clone --depth 1 -b master https://github.com/Kronuz/esprima-python)
cd ~/python (cd ~/python/esprima-python && git fetch origin pull/20/head:delete_fix && git checkout delete_fix && sudo python3 setup.py install --record files.txt)
git clone --depth 1 -b master https://github.com/Kronuz/esprima-python #(cd ~/python/esprima-python && git fetch origin pull/20/head:delete_fix && git checkout delete_fix && sudo pip3 install .)
cd ~/python/esprima-python
# temporary fix until https://github.com/Kronuz/esprima-python/pull/20 gets merged # temporary fix until https://github.com/Kronuz/esprima-python/pull/20 gets merged
git fetch origin pull/20/head:delete_fix
git checkout delete_fix
# a) Generating docs works on Kubuntu 21.10 with this, # a) Generating docs works on Kubuntu 21.10 with this,
# but generating Sandstorm WeKan package does not work # but generating Sandstorm WeKan package does not work
# https://github.com/wekan/wekan/issues/4280 # https://github.com/wekan/wekan/issues/4280
# https://github.com/sandstorm-io/sandstorm/issues/3600 # https://github.com/sandstorm-io/sandstorm/issues/3600
# sudo pip3 install . # sudo pip3 install .
sudo pip3 install .
# b) Generating docs Works on Linux Mint with this, # b) Generating docs Works on Linux Mint with this,
# and also generating Sandstorm WeKan package works: # and also generating Sandstorm WeKan package works:
# sudo python3 setup.py install --record files.txt # sudo python3 setup.py install --record files.txt