diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9d1fb9..82d825d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/conf.py b/conf.py index 1278f63..dbffbec 100644 --- a/conf.py +++ b/conf.py @@ -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.