diff --git a/doc/changelog.d/1351.documentation.md b/doc/changelog.d/1351.documentation.md new file mode 100644 index 0000000000..5d80b2ee7d --- /dev/null +++ b/doc/changelog.d/1351.documentation.md @@ -0,0 +1 @@ +feat: update conf for version 1.x of ansys-sphinx-theme \ No newline at end of file diff --git a/doc/make.bat b/doc/make.bat index 64e34d09a3..e02fc64ee2 100644 --- a/doc/make.bat +++ b/doc/make.bat @@ -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 @@ -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 diff --git a/doc/source/conf.py b/doc/source/conf.py index 0d0ecc7dc1..7fdcc0f447 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -12,7 +12,6 @@ ansys_logo_white_cropped, get_version_match, latex, - pyansys_logo_black, watermark, ) import requests @@ -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" @@ -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, diff --git a/pyproject.toml b/pyproject.toml index 071a15be57..f3e04044d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",