Skip to content

Commit

Permalink
Merge pull request #1627 from dlakaplan/fixsphinx
Browse files Browse the repository at this point in the history
Fix sphinx build by specifying theme explicitly
  • Loading branch information
abhisrkckl authored Aug 25, 2023
2 parents b3bda66 + dd2b04b commit e73a86a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ the released changes.
### Changed
### Added
### Fixed
- Fixed RTD by specifying theme explicitly.
### Removed
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ def setup(app):
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
if not on_rtd: # only import and set the theme if we're building docs locally
html_theme = "sphinx_rtd_theme"
# if not on_rtd: # only import and set the theme if we're building docs locally
# html_theme = "sphinx_rtd_theme"
# it seems that we need to specify it anyway
html_theme = "sphinx_rtd_theme"

# Theme options are theme-specific and customize the look and feel of a
# theme further. For a list of options available for each theme, see the
Expand Down
4 changes: 2 additions & 2 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ pip>=9.0.1
setuptools>=41.0
coverage>=4.3.4
traitlets
Sphinx>=2.2,!=5.1.0
Sphinx==6.2.1
astropy>=4.0,!=4.0.1,!=4.0.1.post1
#astropy-helpers>=1.3
sphinx-rtd-theme>=1.1.1
sphinx-rtd-theme==1.2.2
coveralls>=1.1
wheel>=0.29.0
pytest>=4.3
Expand Down

0 comments on commit e73a86a

Please sign in to comment.