Open mhoeijm opened 4 weeks ago
Ansys sphinx theme v1.0.7 is out with required fixes. We can test it in pyansys heart @mhoeijm and close this issue if it fixes.
Thanks @Revathyvenugopal162. Unfortunately this still does not work for me (in a fresh 3.10 environment with just ansys-sphinx-theme installed
):
from ansys_sphinx_theme import get_autoapi_templates_dir_relative_path
from pathlib import Path
get_autoapi_templates_dir_relative_path(Path("D:"))
Note that my virtual environment is on C:
It's no longer necessary to import this function from the Ansys Sphinx theme; autoapi
is now a theme option. I've opened a PR to address this issue in PyAnsys Heart and have updated the dependencies (Sphinx and AutoAPI) as part of the PR. If needed, I can also include a link to the documentation in the PR.
š Before submitting the issue
š Description of the bug
Hi all,
My local documentation build fails since I cannot use
get_autoapi_templates_dir_relative_path
inconf.py
whenansys-sphinx-theme
is installed on a different mount than theconf.py
. Relative paths cannot be resolved when on different mounts:Essentially this means that
ansys-sphinx-theme
must always be installed on the same mount as the package/conf.py that wishes to use the autoapi template.My current workaround is to specify the absolute path to the autoapi templates directory in
conf.py
:š Steps to reproduce
ansys-sphinx-theme
:š» Which operating system are you using?
Windows
š Which ANSYS version are you using?
No response
š Which Python version are you using?
3.10
š¦ Installed packages