Skip to content

Commit

Permalink
Fix deprecated sphinx html_context usage in conf.py (#1545)
Browse files Browse the repository at this point in the history
* Fix deprecated sphinx html_context usage in conf.py

* Fix job step names in website building in CI
  • Loading branch information
djhoese authored Feb 15, 2021
1 parent b792f29 commit 50ddcc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:
environment-file: continuous_integration/environment.yaml
activate-environment: test-environment

- name: Install satpy
- name: Install Satpy
shell: bash -l {0}
run: |
pip install sphinx sphinx_rtd_theme sphinxcontrib-apidoc; \
pip install --no-deps -e .
- name: Run unit tests
- name: Run Sphinx Build
shell: bash -l {0}
run: |
cd doc; \
Expand Down
8 changes: 3 additions & 5 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,9 @@ def __getattr__(cls, name):
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

html_context = {
'css_files': [
'_static/theme_overrides.css', # override wide tables in RTD theme
],
}
html_css_files = [
'theme_overrides.css', # override wide tables in RTD theme
]

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand Down

0 comments on commit 50ddcc6

Please sign in to comment.