Skip to content

Commit

Permalink
feat: update conf for version 1.x of ansys-sphinx-theme (#1351)
Browse files Browse the repository at this point in the history
Co-authored-by: pyansys-ci-bot <[email protected]>
  • Loading branch information
RobPasMue and pyansys-ci-bot committed Aug 12, 2024
1 parent f316e87 commit 40366c1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions doc/changelog.d/1351.documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat: update conf for version 1.x of ansys-sphinx-theme
4 changes: 2 additions & 2 deletions doc/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if "%SPHINXOPTS%" == "" (
set SPHINXOPTS=-j auto -W --color
)
set SOURCEDIR=source
set APIDIR=api
set APIDIR=source\api
set BUILDDIR=_build

if "%1" == "" goto help
Expand Down Expand Up @@ -58,7 +58,7 @@ goto end

:clean
rmdir /s /q %BUILDDIR% > /NUL 2>&1
for /d /r %SOURCEDIR% %%d in (%APIDIR) do @if exist "%%d" rmdir /s /q "%%d"
rmdir /s /q %APIDIR% > /NUL 2>&1
goto end

:help
Expand Down
3 changes: 1 addition & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
ansys_logo_white_cropped,
get_version_match,
latex,
pyansys_logo_black,
watermark,
)
import requests
Expand Down Expand Up @@ -124,7 +123,6 @@ def intersphinx_pyansys_geometry(switcher_version: str):
switcher_version = get_version_match(__version__)

# Select desired logo, theme, and declare the html title
html_logo = pyansys_logo_black
html_theme = "ansys_sphinx_theme"
html_short_title = html_title = "PyAnsys Geometry"
html_baseurl = f"https://{cname}/version/stable"
Expand All @@ -137,6 +135,7 @@ def intersphinx_pyansys_geometry(switcher_version: str):
"doc_path": "doc/source",
}
html_theme_options = {
"logo": "pyansys",
"switcher": {
"json_url": f"https://{cname}/versions.json",
"version_match": switcher_version,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ tests-minimal = [
"pytest-xvfb==3.0.0",
]
doc = [
"ansys-sphinx-theme[autoapi]==0.16.6",
"ansys-sphinx-theme[autoapi]==1.0.3",
"ansys-tools-visualization-interface==0.4.0",
"beartype==0.18.5",
"docker==7.1.0",
Expand Down

0 comments on commit 40366c1

Please sign in to comment.