Skip to content

Commit f993c28

Browse files
committed
Update the use of sphinx
1 parent 6d15949 commit f993c28

File tree

3 files changed

+35
-50
lines changed

3 files changed

+35
-50
lines changed

composer.lock

+30-42
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/conf.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
# Doxygen
2424
subprocess.call('doxygen Doxyfile', shell=True)
2525

26-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
27-
2826
# -- Project information -----------------------------------------------------
2927

3028
project = 'PHP BitArray'
@@ -108,10 +106,9 @@
108106
# a list of builtin themes.
109107
#
110108
#html_theme = 'alabaster'
111-
if not on_rtd: # only import and set the theme if we're building docs locally
112-
import sphinx_rtd_theme
113-
html_theme = 'sphinx_rtd_theme'
114-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
109+
import sphinx_rtd_theme
110+
html_theme = 'sphinx_rtd_theme'
111+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
115112

116113
from sphinx.highlighting import lexers
117114
from pygments.lexers.web import PhpLexer

docs/requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Sphinx>=6.0
2-
sphinx_rtd_theme>=1.2
1+
Sphinx>=7.2
2+
sphinx_rtd_theme>=2.0
33
sphinxcontrib-phpdomain>=0.11
44
breathe>=4.35
55
myst-parser>=2.0

0 commit comments

Comments
 (0)