Skip to content

Commit 687af85

Browse files
Merge pull request ag2ai#54 from harishmohanraj/api-headers-case-fix
Fix Header Case in API Reference to Match Object Names
2 parents 1435557 + ac4dfa7 commit 687af85

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

website/mint-script.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
(function () {
2+
function updateClass() {
3+
document.body.classList.remove("reference-page");
4+
if (window.location.pathname.includes("/docs/reference/")) {
5+
document.body.classList.add("reference-page");
6+
}
7+
}
8+
9+
// Handle initial load
10+
updateClass();
11+
12+
// Handle URL changes
13+
window.addEventListener("popstate", updateClass);
14+
15+
// Handle SPA navigation
16+
const pushState = history.pushState;
17+
history.pushState = function () {
18+
pushState.apply(history, arguments);
19+
updateClass();
20+
};
21+
})();

website/mint-style.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ h4 {
6868
}
6969
}
7070

71+
body.reference-page h1,
72+
body.reference-page h2,
73+
body.reference-page h3,
74+
body.reference-page h4 {
75+
text-transform: none !important;
76+
}
77+
7178
a.colab-badge, a.github-badge {
7279
display: inline-block;
7380
border:none;

0 commit comments

Comments
 (0)