Skip to content

Commit b99aaf6

Browse files
committed
Update build to modern Python environments and latest RTD theme
1 parent ed974c2 commit b99aaf6

3 files changed

Lines changed: 6 additions & 16 deletions

File tree

.readthedocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: 2
22
build:
3-
os: "ubuntu-22.04"
3+
os: "ubuntu-24.04"
44
tools:
5-
python: "3.11"
5+
python: "3"
66
sphinx:
77
configuration: docs/conf.py
88
python:

docs/conf.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
'sphinx.ext.todo',
2121
'sphinx.ext.coverage',
2222
'sphinx.ext.imgmath',
23-
'sphinx.ext.ifconfig',
24-
'sensio.sphinx.configurationblock']
23+
'sphinx.ext.ifconfig']
2524

2625
source_suffix = '.rst'
2726
master_doc = 'index'
@@ -33,23 +32,19 @@
3332
version = ''
3433
release = ''
3534

36-
exclude_patterns = ['_build', '.virtualenvs']
35+
exclude_patterns = ['_build', '.virtualenv']
3736

3837
html_theme = "sphinx_rtd_theme"
39-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
4038

4139
html_static_path = ['_static']
4240
templates_path = ['_templates']
4341

4442
html_theme_options = {
4543
'collapse_navigation': True,
46-
'display_version': True,
44+
'version_selector': True,
4745
}
4846

4947
html_context = {
5048
'copyright_url': 'https://netgen.io',
5149
'current_year': datetime.utcnow().year
5250
}
53-
54-
def setup(app):
55-
app.add_stylesheet("css/style.css")

docs/requirements.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
setuptools>=65
2-
sphinx>=1.7.4,<2.0
3-
sphinx_rtd_theme>=0.3.1,<1.0
4-
git+https://github.com/fabpot/sphinx-php.git
5-
jinja2<3.1.0
6-
alabaster<0.7.14
1+
sphinx_rtd_theme>=3.1,<4.0

0 commit comments

Comments
 (0)