Skip to content

Commit 1d73513

Browse files
Bump ansys-sphinx-theme from 0.8.2 to 0.9.5 (#54)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Camille <78221213+clatapie@users.noreply.github.com>
1 parent e9a7b10 commit 1d73513

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

doc/source/_templates/sidebar-nav-bs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
22
<div class="bd-toc-item active">
33
{% if pagename.startswith("_autosummary") or pagename.startswith("api")%}
4-
{{ generate_nav_html("sidebar", maxdepth=4, collapse=True, includehidden=True, titles_only=True) }}
4+
{{ generate_toctree_html("sidebar", maxdepth=4, collapse=True, includehidden=True, titles_only=True) }}
55
{% else %}
6-
{{ generate_nav_html("sidebar", maxdepth=4, collapse=False, includehidden=True, titles_only=True) }}
6+
{{ generate_toctree_html("sidebar", maxdepth=4, collapse=False, includehidden=True, titles_only=True) }}
77
{% endif %}
88

99
</div>

doc/source/conf.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,20 @@
4141
copyright = f"(c) {datetime.now().year} ANSYS, Inc. All rights reserved"
4242
author = "ANSYS, Inc."
4343
release = version = "0.1.dev0"
44+
switcher_version = get_version_match(__version__)
45+
46+
cname = os.getenv("DOCUMENTATION_CNAME", "<DEFAULT_CNAME>")
47+
"""The canonical name of the webpage hosting the documentation."""
4448

4549
# Select desired logo, theme, and declare the html title
4650
html_logo = pyansys_logo_black
4751
html_theme = "ansys_sphinx_theme"
4852
html_short_title = html_title = "PyAnsys Math"
4953

50-
cname = os.getenv("DOCUMENTATION_CNAME", "<DEFAULT_CNAME>")
51-
"""The canonical name of the webpage hosting the documentation."""
52-
53-
5454
# specify the location of your github repo
5555
html_theme_options = {
5656
"github_url": "https://github.com/pyansys/pyansys-math",
57+
"check_switcher": False,
5758
"show_prev_next": False,
5859
"show_breadcrumbs": True,
5960
"collapse_navigation": True,
@@ -70,7 +71,7 @@
7071
],
7172
"switcher": {
7273
"json_url": f"https://{cname}/versions.json",
73-
"version_match": get_version_match(__version__),
74+
"version_match": switcher_version,
7475
},
7576
}
7677

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ doc = [
4646
"Sphinx==5.3.0",
4747
"ansys-mapdl-core==0.64.0",
4848
"ansys-mapdl-reader==0.52.9",
49-
"ansys-sphinx-theme==0.8.2",
49+
"ansys-sphinx-theme==0.9.5",
5050
"jupyter_sphinx==0.4.0",
5151
"jupyterlab==3.6.1",
5252
"numpydoc==1.5.0",

src/ansys/math/core/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Version of ansys-<product/service>-<library> library.
1+
"""Version of ansys-math-core library.
22
33
On the ``main`` branch, use 'dev0' to denote a development version.
44
For example:

0 commit comments

Comments
 (0)