Merge pull request #3398 from lissyx/fix-rtd

Force npm install on RTD and set appropriate PATH value
This commit is contained in:
lissyx 2020-11-03 14:36:47 +01:00 committed by GitHub
commit 19eeadd0f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -30,7 +30,11 @@ autodoc_mock_imports = ['deepspeech']
# on our CI as in RTD to avoid regressions on RTD that we would not catch on
# TaskCluster
import subprocess
parent = subprocess.check_output("cd ../ && pwd", shell=True).decode().strip()
os.environ["PATH"] = os.path.join(parent, 'node_modules', '.bin') + ':' + os.environ["PATH"]
subprocess.check_call('cd ../ && npm install typedoc@0.17.4 typescript@3.8.3 @types/node@13.9.x', shell=True)
subprocess.check_call('env', shell=True)
subprocess.check_call('which typedoc', shell=True)
subprocess.check_call('cd ../ && doxygen doc/doxygen-c.conf', shell=True)
subprocess.check_call('cd ../ && doxygen doc/doxygen-java.conf', shell=True)
subprocess.check_call('cd ../ && doxygen doc/doxygen-dotnet.conf', shell=True)