Skip to content

Commit

Permalink
Remove need to cd into dir to call build_docs.sh (TriBITSPub#363)
Browse files Browse the repository at this point in the history
There is no need to cd into that directory anymore.  It knows where it is and
how to build the docs in-source.
  • Loading branch information
bartlettroscoe committed Jul 22, 2021
1 parent b67b4da commit 9cff12f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tribits/doc/sphinx/sphinx_rst_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ def build_docs() -> None:
""" Builds TriBITS documentation based on shell scripts.
"""
build_script_path = os.path.join(doc_path, 'build_docs.sh')
current_working_dir = os.path.split(build_script_path)[0]
subprocess.call([build_script_path, '--skip-final-generation'],
cwd=current_working_dir)
subprocess.call([build_script_path, '--skip-final-generation'])

@staticmethod
def run_sphinx(cwd: str) -> None:
Expand Down

0 comments on commit 9cff12f

Please sign in to comment.