Skip to content

Commit

Permalink
Merge pull request #91 from N8-CIR-Bede/split-software-rtd-fixes
Browse files Browse the repository at this point in the history
Fix RTD buillds post Software Sources version bump
  • Loading branch information
ptheywood authored Feb 8, 2022
2 parents aeadaea + e37a8b2 commit fd63639
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
jobs:
# This workflow contains a single job called "build"
build:
# Define environment variables in the job
env:
# When building on RTD, conf.py has some conditional logic. Test building with this enabled.
READTHEDOCS: "True"

# The type of runner that the job will run on
runs-on: ubuntu-latest

Expand Down
4 changes: 2 additions & 2 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@
def setup(app):
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
app.add_javascript('https://use.fontawesome.com/c79ff27dd1.js')
app.add_javascript('js/rtd-versions.js')
app.add_js_file('https://use.fontawesome.com/c79ff27dd1.js')
app.add_js_file('js/rtd-versions.js')

# Control use of the shphinx-rediraffe plugin to generate redirect files for moved documentation.
# This is only viable for whole-pages, not for any bookmarks within a page unfortunately.
Expand Down

0 comments on commit fd63639

Please sign in to comment.