Skip to content

Commit

Permalink
Merge pull request #734 from michaeljones/fix-sys-path
Browse files Browse the repository at this point in the history
Fix sys.path adjustment in doc config
  • Loading branch information
michaeljones authored Sep 21, 2021
2 parents 943534f + 287113f commit 436c4f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: build the documentation
run: |
PYTHONPATH="${PWD}${PYTHONPATH:+:$PYTHONPATH}" make html
make html
rm documentation/build/html/.buildinfo
- uses: actions/upload-artifact@v1
Expand Down
5 changes: 3 additions & 2 deletions documentation/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@

else:

# For our usual dev build we'll be in the 'documentation' directory
sys.path.append('../')
# For our usual dev build we'll be in the 'documentation' directory but Sphinx seems to set the
# current working directory to 'source' so we append relative to that
sys.path.append('../../')

# Check if it matches a pure tag number vX.Y.Z, rather than vX.Y.Z-91-g8676988 which is how
# non-tagged commits are described (ie. relative to the last tag)
Expand Down

0 comments on commit 436c4f7

Please sign in to comment.