Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove function duplicate #407

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/407.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
refactor: remove function duplicate
17 changes: 0 additions & 17 deletions src/ansys_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down