docs: Print working directory on readthedocs.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
Tim 'mithro' Ansell 2019-04-04 18:48:04 -07:00
parent c7c8f00748
commit 431641d038
1 changed files with 5 additions and 12 deletions

View File

@ -74,19 +74,12 @@ if not on_rtd:
"conf_py_path": "/doc/",
}
else:
docs_dir = os.path.abspath(os.path.dirname(__file__))
print("Docs dir is:", docs_dir)
import subprocess
subprocess.call(
'git fetch origin --unshallow',
cwd=os.path.abspath(os.path.dirname(__file__)),
shell=True)
subprocess.check_call(
'git fetch origin --tags',
cwd=os.path.abspath(os.path.dirname(__file__)),
shell=True)
subprocess.check_call(
'make links',
cwd=os.path.abspath(os.path.dirname(__file__)),
shell=True)
subprocess.call('git fetch origin --unshallow', cwd=docs_dir, shell=True)
subprocess.check_call('git fetch origin --tags', cwd=docs_dir, shell=True)
subprocess.check_call('make links', cwd=docs_dir, shell=True)
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the