Преглед изворни кода

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 !
Lauri Ojansivu пре 2 година
родитељ
комит
97c6b65315
1 измењених фајлова са 4 додато и 9 уклоњено
  1. 4 9
      releases/rebuild-docs.sh

+ 4 - 9
releases/rebuild-docs.sh

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