diff --git a/doc/changelog.d/407.miscellaneous.md b/doc/changelog.d/407.miscellaneous.md new file mode 100644 index 000000000..9cd2b9885 --- /dev/null +++ b/doc/changelog.d/407.miscellaneous.md @@ -0,0 +1 @@ +refactor: remove function duplicate \ No newline at end of file diff --git a/src/ansys_sphinx_theme/__init__.py b/src/ansys_sphinx_theme/__init__.py index dc0051aef..113362f28 100644 --- a/src/ansys_sphinx_theme/__init__.py +++ b/src/ansys_sphinx_theme/__init__.py @@ -113,23 +113,6 @@ def get_version_match(semver: str) -> str: return ".".join([major, minor]) -def get_autoapi_templates_dir_relative_path(path: pathlib.Path) -> str: - """Return a string representing the relative path for autoapi templates. - - Parameters - ---------- - path : pathlib.Path - Path to the desired file. - Returns - ------- - str - A string rerpesenting the relative path to the autoapi templates. - """ - return os.path.relpath( - str(AUTOAPI_TEMPLATES_PATH.absolute()), start=str(path.parent.absolute()) - ) - - def convert_version_to_pymeilisearch(semver: str) -> str: """Convert a semantic version number to pymeilisearch-compatible format.