Skip to content

Commit af349dd

Browse files
committed
Update the use of sphinx
1 parent 3dcde96 commit af349dd

File tree

3 files changed

+51
-66
lines changed

3 files changed

+51
-66
lines changed

composer.lock

Lines changed: 46 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/conf.py

Lines changed: 3 additions & 6 deletions
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 Sorted Collections'
@@ -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

Lines changed: 2 additions & 2 deletions
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)