Skip to content

Commit 7d852ad

Browse files
authored
Fix the nav bar and announcement bar when reducing size above/below 996px (#134)
* Enhance navbar with GitHub stars and Slack button - Added GitHub stars iframe and Slack button to the right side of the navbar. - Introduced CSS styles to improve spacing and responsiveness for these navbar items. - Adjusted visibility of GitHub stars on smaller screens and styled them for mobile sidebar display. Signed-off-by: Pete Cheslock <pete.cheslock@redhat.com> * Add canonical URL to KV Caching blog post - Added a canonical URL to the blog post on KV Caching with vLLM, LMCache, and Ceph to improve SEO and content discoverability. Signed-off-by: Pete Cheslock <pete.cheslock@redhat.com> * Enhance announcement bar styling - Adjusted CSS for the announcement bar to allow dynamic height on desktop, ensuring better visibility and usability. - Updated content styling to enable text wrapping, improving readability. Signed-off-by: Pete Cheslock <pete.cheslock@redhat.com>
1 parent 5dad807 commit 7d852ad

File tree

3 files changed

+65
-2
lines changed

3 files changed

+65
-2
lines changed

blog/2025-12-10_kv-caching-vllm-lmcache-ceph.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ authors:
1111
tags: [blog, ceph, rgw, s3, kv-cache]
1212
---
1313

14+
import Head from '@docusaurus/Head';
15+
16+
<Head>
17+
<link rel="canonical" href="https://ceph.io/en/news/blog/2025/vllm-kv-caching/" />
18+
</Head>
19+
1420
Inference accounts for [90% of the machine learning
1521
costs](https://www.sciencedirect.com/science/article/pii/S2210537923000124) for deployed AI
1622
systems, and it is no surprise that inference optimization is a burgeoning topic
@@ -622,4 +628,3 @@ scenarios like PD disaggregation and cache blending.
622628
Finally, we'd like to thank Supermicro for providing the environment for these
623629
testing efforts. If you have any questions about Data or AI workloads for Ceph,
624630
please [reach out](mailto:kbader@ibm.com).
625-

docusaurus.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,13 @@ const config = {
154154
{
155155
type: 'html',
156156
position: 'right',
157+
className: 'navbar-github-stars',
157158
value: '<iframe src="https://ghbtns.com/github-btn.html?user=llm-d&repo=llm-d&type=star&count=true&size=large" frameborder="0" scrolling="0" width="170" height="30" title="GitHub Star" style="vertical-align: middle;"></iframe>',
158159
},
159160
{
160161
type: 'html',
161162
position: 'right',
163+
className: 'navbar-slack-item',
162164
value: '<a href="/slack" class="navbar-slack-button"><svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>Slack</title><path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"></path></svg>Join Slack</a>',
163165
},
164166
],

src/css/custom.css

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,23 @@ display: none !important;
113113
transform: scale(1.05);
114114
}
115115

116+
/* Tighten spacing for right-side navbar items */
117+
.navbar-github-stars,
118+
.navbar-slack-item {
119+
padding: 0 !important;
120+
margin: 0 2px !important;
121+
}
122+
123+
/* Make GitHub stars iframe fit tightly */
124+
.navbar-github-stars {
125+
display: flex !important;
126+
align-items: center;
127+
}
128+
129+
.navbar-github-stars iframe {
130+
width: 150px !important;
131+
}
132+
116133
/* Navbar Slack button */
117134
.navbar-slack-button {
118135
display: inline-flex;
@@ -127,7 +144,7 @@ display: none !important;
127144
font-size: 1rem;
128145
font-weight: var(--ifm-font-weight-semibold);
129146
vertical-align: middle;
130-
margin-left: 8px;
147+
margin-left: 0;
131148
transition: background-color 0.2s ease;
132149
}
133150

@@ -141,6 +158,24 @@ display: none !important;
141158
background-color: #3a3a3a;
142159
}
143160

161+
/* Hide GitHub stars in top navbar below 1105px (they appear in hamburger menu instead) */
162+
@media screen and (max-width: 1105px) {
163+
.navbar__inner .navbar-github-stars {
164+
display: none !important;
165+
}
166+
}
167+
168+
/* Style GitHub stars in mobile sidebar */
169+
.navbar-sidebar .navbar-github-stars {
170+
display: flex !important;
171+
padding: 8px 16px;
172+
margin-bottom: 8px;
173+
}
174+
175+
.navbar-sidebar .navbar-github-stars iframe {
176+
width: 150px !important;
177+
}
178+
144179
.header {
145180
display: flex;
146181
align-content: center;
@@ -518,6 +553,27 @@ img.llm-d-logo {
518553
--ifm-footer-background-color: #262626 !important;
519554
}
520555

556+
/* ----------------------------- Announcement Bar ---------------------------- */
557+
558+
/* Override Docusaurus fixed height on desktop */
559+
@media (min-width: 997px) {
560+
:root {
561+
--docusaurus-announcement-bar-height: auto !important;
562+
}
563+
}
564+
565+
/* Main announcement bar container - allow height to grow */
566+
.theme-announcement-bar {
567+
height: auto !important;
568+
min-height: 30px;
569+
padding: 8px 16px;
570+
}
571+
572+
/* Content styling - allow wrapping */
573+
[class*="announcementBarContent"] {
574+
white-space: normal !important;
575+
}
576+
521577
/* Improved YAML syntax highlighting site-wide */
522578
/* Fix YAML code blocks to avoid red/green diff-like appearance */
523579

0 commit comments

Comments
 (0)