From 1cd5e44a52c8ef05879fcc1d1b2334d706d39f37 Mon Sep 17 00:00:00 2001 From: Alexandre Lissy Date: Tue, 3 Nov 2020 13:32:06 +0100 Subject: [PATCH] Force npm install on RTD and set appropriate PATH value --- doc/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index bb64d77e..a74fff70 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -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)