Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 617ce14

Browse files
author
Alexandre Lissy
committed
Force npm install on RTD and set appropriate PATH value
1 parent 2d04fbe commit 617ce14

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@
3030
# on our CI as in RTD to avoid regressions on RTD that we would not catch on
3131
# TaskCluster
3232
import subprocess
33+
parent = subprocess.check_output("cd ../ && pwd", shell=True).decode().strip()
34+
os.environ["PATH"] = os.path.join(parent, 'node_modules', '.bin') + ':' + os.environ["PATH"]
3335
subprocess.check_call('cd ../ && npm install typedoc@0.17.4 typescript@3.8.3 @types/node@13.9.x', shell=True)
36+
subprocess.check_call('env', shell=True)
37+
subprocess.check_call('which typedoc', shell=True)
3438
subprocess.check_call('cd ../ && doxygen doc/doxygen-c.conf', shell=True)
3539
subprocess.check_call('cd ../ && doxygen doc/doxygen-java.conf', shell=True)
3640
subprocess.check_call('cd ../ && doxygen doc/doxygen-dotnet.conf', shell=True)

0 commit comments

Comments
 (0)