Skip to content

Commit c00d3fc

Browse files
dependabot[bot]PProfizijorgepilotomoe-adRobPasMue
authored
Bump sphinx from 7.1.0 to 8.1.3 in /requirements (#1922)
* Bump sphinx from 7.1.0 to 8.1.3 in /requirements Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 7.1.0 to 8.1.3. - [Release notes](https://github.com/sphinx-doc/sphinx/releases) - [Changelog](https://github.com/sphinx-doc/sphinx/blob/v8.1.3/CHANGES.rst) - [Commits](sphinx-doc/sphinx@v7.1.0...v8.1.3) --- updated-dependencies: - dependency-name: sphinx dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * ci: add tox.ini file * fix: tox.ini syntax and gitignore * fix: ignoring failing files results in successful doc build. * docs: added some hooks for troubleshooting the issue * fix: updated server and process closing logic after sphinx-gallery execution * fix: modified function checking server closure after sphinx gallery execution * fix: added ipykernel to address 'No python3 ...' error * fix: build issues * Update requirements/requirements_docs.txt * fix: activate failing example * fix: remove reset servers logic --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Paul Profizi <[email protected]> Co-authored-by: Jorge Martínez <[email protected]> Co-authored-by: Jorge Martinez Garrido <[email protected]> Co-authored-by: moe-ad <[email protected]> Co-authored-by: Roberto Pastor Muela <[email protected]> Co-authored-by: Muhammed Adedigba <[email protected]>
1 parent 274fe85 commit c00d3fc

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,8 @@ src/ansys/grpc/
192192

193193
# C extensions
194194
*.so
195+
196+
# Ignore auto-generated API reference
197+
doc/source/api
198+
doc/source/examples
199+
doc/source/images/auto-generated

doc/source/conf.py

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
import os
2-
import sys
3-
from glob import glob
41
from datetime import datetime
2+
from glob import glob
3+
import os
54

5+
from ansys_sphinx_theme import (
6+
ansys_favicon,
7+
get_version_match,
8+
pyansys_logo_dark_mode,
9+
pyansys_logo_light_mode,
10+
)
611
import numpy as np
712
import pyvista
13+
814
from ansys.dpf.core import __version__, server, server_factory
915
from ansys.dpf.core.examples import get_example_required_minimum_dpf_version
10-
from ansys_sphinx_theme import ansys_favicon, get_version_match, pyansys_logo_light_mode, pyansys_logo_dark_mode
1116

1217
# Manage errors
1318
pyvista.set_error_output_file("errors.txt")
@@ -161,9 +166,11 @@
161166

162167

163168
def reset_servers(gallery_conf, fname, when):
169+
import gc
170+
164171
import psutil
172+
165173
from ansys.dpf.core import server
166-
import gc
167174

168175
gc.collect()
169176
server.shutdown_all_session_servers()
@@ -174,7 +181,7 @@ def reset_servers(gallery_conf, fname, when):
174181
try:
175182
# check whether the process name matches
176183
if proc_name in proc.name():
177-
# proc.kill()
184+
proc.kill()
178185
nb_procs += 1
179186
except psutil.NoSuchProcess:
180187
pass
@@ -259,7 +266,7 @@ def reset_servers(gallery_conf, fname, when):
259266

260267
# Configuration for Sphinx autoapi
261268
suppress_warnings = [
262-
"autoapi.python_import_resolution", # Todo: remove suppression of this warning in the future
269+
"autoapi.python_import_resolution", # TODO: remove suppression of this warning in the future #1967
263270
"design.grid",
264271
"config.cache",
265272
"design.fa-build",
@@ -366,4 +373,4 @@ def reset_servers(gallery_conf, fname, when):
366373
# epub_uid = ''
367374

368375
# A list of files that should not be packed into the epub file.
369-
epub_exclude_files = ["search.html"]
376+
epub_exclude_files = ["search.html"]

requirements/requirements_docs.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ nbsphinx==0.9.6
77
pypandoc==1.15
88
pytest-sphinx==0.6.3
99
pyvista==0.44.2
10-
sphinx==7.4.7
10+
sphinx==8.1.3
1111
sphinx-copybutton==0.5.2
1212
sphinx-gallery==0.19.0
1313
sphinx-notfound-page==1.1.0

0 commit comments

Comments
 (0)