Skip to content

Commit

Permalink
docs: Print working directory on readthedocs.
Browse files Browse the repository at this point in the history
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
  • Loading branch information
mithro committed Apr 5, 2019
1 parent c7c8f00 commit 34d7894
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,20 @@
"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__)),
cwd=docs_dir,
shell=True)
subprocess.check_call(
'git fetch origin --tags',
cwd=os.path.abspath(os.path.dirname(__file__)),
cwd=docs_dir,
shell=True)
subprocess.check_call(
'make links',
cwd=os.path.abspath(os.path.dirname(__file__)),
cwd=docs_dir,
shell=True)

# The version info for the project you're documenting, acts as replacement for
Expand All @@ -107,7 +109,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'venv']

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
Expand Down

0 comments on commit 34d7894

Please sign in to comment.