From 659f57edb4a587ef226c225b5ce269191606da45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= <146729917+SMoraisAnsys@users.noreply.github.com> Date: Tue, 25 Jun 2024 09:42:17 +0200 Subject: [PATCH 1/2] refactor: remove function duplicate --- src/ansys_sphinx_theme/__init__.py | 17 ----------------- 1 file changed, 17 deletions(-) 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. From 22c4bdec0619828e277bd289dfcf38900b94fbf9 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot Date: Tue, 25 Jun 2024 07:43:20 +0000 Subject: [PATCH 2/2] Adding changelog entry: 407.miscellaneous.md --- doc/changelog.d/407.miscellaneous.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/407.miscellaneous.md 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