Skip to content

Commit 16676e3

Browse files
Merge branch 'main' into docs/reformat
2 parents f0ec891 + bc16ecd commit 16676e3

File tree

4 files changed

+6
-17
lines changed

4 files changed

+6
-17
lines changed

doc/changelog.d/382.fixed.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: Align cheat sheet center

doc/changelog.d/407.miscellaneous.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
refactor: remove function duplicate

src/ansys_sphinx_theme/__init__.py

-17
Original file line numberDiff line numberDiff line change
@@ -114,23 +114,6 @@ def get_version_match(semver: str) -> str:
114114
return ".".join([major, minor])
115115

116116

117-
def get_autoapi_templates_dir_relative_path(path: pathlib.Path) -> str:
118-
"""Return a string representing the relative path for autoapi templates.
119-
120-
Parameters
121-
----------
122-
path : pathlib.Path
123-
Path to the desired file.
124-
Returns
125-
-------
126-
str
127-
A string rerpesenting the relative path to the autoapi templates.
128-
"""
129-
return os.path.relpath(
130-
str(AUTOAPI_TEMPLATES_PATH.absolute()), start=str(path.parent.absolute())
131-
)
132-
133-
134117
def convert_version_to_pymeilisearch(semver: str) -> str:
135118
"""Convert a semantic version number to pymeilisearch-compatible format.
136119

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css

+4
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,10 @@ a:visited:hover {
11011101

11021102
/* Cheat sheet sidebar */
11031103

1104+
.sidebar-cheatsheets {
1105+
text-align: center;
1106+
}
1107+
11041108
.sidebar-cheatsheets h4 {
11051109
font-weight: var(--pst-sidebar-header-font-weight) !important;
11061110
font-size: var(--pst-sidebar-header-font-size) !important;

0 commit comments

Comments
 (0)