From 175650d7a424c6bb595bb9b33081b2705a7dd352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= <146729917+SMoraisAnsys@users.noreply.github.com> Date: Fri, 23 Aug 2024 14:22:22 +0200 Subject: [PATCH] DOCS: Use new ansys-sphinx-theme (#5089) --- doc/source/conf.py | 4 ++-- pyproject.toml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 6fc8c127c04..91697a923be 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -10,7 +10,7 @@ import numpy as np from sphinx_gallery.sorting import FileNameSortKey from ansys_sphinx_theme import (ansys_favicon, - get_version_match, pyansys_logo_black, + get_version_match, watermark, ansys_logo_white, ansys_logo_white_cropped, latex) @@ -313,7 +313,6 @@ def setup(app): # -- Options for HTML output ------------------------------------------------- html_short_title = html_title = "PyAEDT" html_theme = "ansys_sphinx_theme" -html_logo = pyansys_logo_black html_context = { "github_user": "ansys", "github_repo": "pyaedt", @@ -323,6 +322,7 @@ def setup(app): # specify the location of your github repo html_theme_options = { + "logo": "pyansys", "github_url": "https://github.com/ansys/pyaedt", "navigation_with_keys": False, "show_prev_next": False, diff --git a/pyproject.toml b/pyproject.toml index d584dc2b76a..0328d3eb1c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,7 +70,7 @@ dotnet = [ "pywin32>=303; platform_system=='Windows'", ] doc = [ - "ansys-sphinx-theme>=0.10.0,<0.17", + "ansys-sphinx-theme>=0.10.0,<1.1", "ipython>=8.13.0,<8.27", "joblib>=1.3.0,<1.5", "jupyterlab>=4.0.0,<4.3", @@ -84,7 +84,7 @@ doc = [ "pyvista[io]>=0.38.0,<0.45", "recommonmark", "scikit-rf>=0.30.0,<1.3", - "Sphinx>=7.1.0,<7.4", + "Sphinx>=7.1.0,<8.1", "sphinx-autobuild==2021.3.14; python_version == '3.8'", "sphinx-autobuild==2024.4.16; python_version > '3.8'", #"sphinx-autodoc-typehints", @@ -97,10 +97,10 @@ doc = [ "utm", ] doc-no-examples = [ - "ansys-sphinx-theme>=0.10.0,<0.17", + "ansys-sphinx-theme>=0.10.0,<1.1", "numpydoc>=1.5.0,<1.9", "recommonmark", - "Sphinx>=7.1.0,<7.4", + "Sphinx>=7.1.0,<8.1", "sphinx-autobuild==2021.3.14; python_version == '3.8'", "sphinx-autobuild==2024.4.16; python_version > '3.8'", #"sphinx-autodoc-typehints",