Skip to content

Commit 2803732

Browse files
committed
Fix all documentation issues: mobile compatibility, dark theme persistence, language switching, icon positioning, and responsive design
1 parent ceb0446 commit 2803732

File tree

5 files changed

+126
-27
lines changed

5 files changed

+126
-27
lines changed

docs/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,6 @@ <h1 class="page-title">{{ page.title }}</h1>
189189
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
190190

191191
<!-- Custom JS -->
192-
<script src="{{ site.baseurl }}/assets/js/main.js"></script>
192+
<script src="{{ site.baseurl }}/assets/js/script.js"></script>
193193
</body>
194194
</html>

docs/assets/css/style.css

Lines changed: 84 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
html {
99
-webkit-text-size-adjust: 100%;
1010
-ms-text-size-adjust: 100%;
11+
scroll-behavior: smooth;
1112
}
1213

1314
body {
@@ -16,6 +17,9 @@ body {
1617
overflow-x: hidden;
1718
-webkit-font-smoothing: antialiased;
1819
-moz-osx-font-smoothing: grayscale;
20+
min-height: 100vh;
21+
display: flex;
22+
flex-direction: column;
1923
}
2024

2125
:root {
@@ -157,12 +161,6 @@ body {
157161
color: var(--text-primary) !important;
158162
}
159163

160-
* {
161-
margin: 0;
162-
padding: 0;
163-
box-sizing: border-box;
164-
}
165-
166164
body {
167165
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
168166
line-height: 1.6;
@@ -245,13 +243,19 @@ body[data-theme="dark"] {
245243
.feature-icon {
246244
width: 40px;
247245
height: 40px;
248-
display: inline-block;
246+
display: inline-flex;
247+
align-items: center;
248+
justify-content: center;
249249
margin-right: 15px;
250250
vertical-align: middle;
251+
background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
252+
border-radius: 20px;
253+
transition: all 0.3s ease;
251254
}
252255

253256
.feature-icon i {
254257
font-size: 1.5rem;
258+
color: var(--primary-color);
255259
}
256260

257261
/* Modern Provider Cards */
@@ -324,20 +328,16 @@ body[data-theme="dark"] {
324328
display: block;
325329
line-height: 1.4;
326330
}
327-
margin: 0 auto;
328-
display: flex;
329-
align-items: center;
330-
justify-content: center;
331-
background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
332-
border-radius: 20px;
333-
transition: all 0.3s ease;
334-
}
335331

336332
.feature-icon:hover {
337333
transform: scale(1.1);
338334
background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.2));
339335
}
340336

337+
.feature-icon:hover i {
338+
color: var(--primary-dark);
339+
}
340+
341341
/* Navigation */
342342
.navbar {
343343
background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
@@ -411,6 +411,9 @@ body[data-theme="dark"] {
411411
.main-content {
412412
margin-top: 160px;
413413
min-height: calc(100vh - 160px);
414+
flex: 1;
415+
display: flex;
416+
flex-direction: column;
414417
}
415418

416419
/* Content Area - Full Width */
@@ -590,12 +593,17 @@ body[data-theme="dark"] {
590593

591594
/* Responsive Design */
592595
@media (max-width: 991.98px) {
596+
.main-content {
597+
margin-top: 140px;
598+
}
599+
593600
.content-area {
594601
padding: 1rem;
595602
}
596603

597604
.content-wrapper {
598605
padding: 1.5rem;
606+
margin: 1rem;
599607
}
600608

601609
.page-title {
@@ -605,15 +613,30 @@ body[data-theme="dark"] {
605613
.hero-title {
606614
font-size: 2.5rem;
607615
}
616+
617+
.navbar-nav .nav-link {
618+
padding: 0.5rem 1rem !important;
619+
margin: 0 0.25rem;
620+
}
608621
}
609622

610623
@media (max-width: 767.98px) {
624+
.main-content {
625+
margin-top: 120px;
626+
}
627+
628+
.navbar {
629+
padding: 1rem 0;
630+
}
631+
611632
.navbar-brand {
612633
font-size: 1.25rem;
613634
}
614635

615636
.content-wrapper {
616637
padding: 1rem;
638+
margin: 0.5rem;
639+
border-radius: 12px;
617640
}
618641

619642
.page-title {
@@ -624,6 +647,10 @@ body[data-theme="dark"] {
624647
font-size: 2rem;
625648
}
626649

650+
.hero-subtitle {
651+
font-size: 1.25rem;
652+
}
653+
627654
.hero-buttons .btn {
628655
display: block;
629656
width: 100%;
@@ -636,6 +663,48 @@ body[data-theme="dark"] {
636663
width: 45px;
637664
height: 45px;
638665
}
666+
667+
.navbar-nav .nav-link {
668+
padding: 0.5rem 0.75rem !important;
669+
margin: 0.25rem 0;
670+
font-size: 0.9rem;
671+
}
672+
673+
.provider-card {
674+
margin-bottom: 1rem;
675+
}
676+
677+
.hero-section {
678+
margin: 1rem 0;
679+
padding: 1.5rem;
680+
}
681+
}
682+
683+
@media (max-width: 575.98px) {
684+
.main-content {
685+
margin-top: 100px;
686+
}
687+
688+
.content-wrapper {
689+
padding: 0.75rem;
690+
margin: 0.25rem;
691+
}
692+
693+
.hero-title {
694+
font-size: 1.75rem;
695+
}
696+
697+
.hero-subtitle {
698+
font-size: 1.1rem;
699+
}
700+
701+
.page-title {
702+
font-size: 1.5rem;
703+
}
704+
705+
.navbar-brand {
706+
font-size: 1.1rem;
707+
}
639708
}
640709

641710
/* Animations */

docs/assets/js/script.js

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,15 @@ document.addEventListener('DOMContentLoaded', function() {
3030
}
3131
}
3232

33-
// Initialize theme
33+
// Initialize theme immediately to prevent flash
3434
applyTheme(currentTheme);
3535

36+
// Also apply theme on page load to ensure persistence
37+
window.addEventListener('load', function() {
38+
const savedTheme = localStorage.getItem('theme') || 'light';
39+
applyTheme(savedTheme);
40+
});
41+
3642
// Theme toggle click handler
3743
if (themeToggle) {
3844
themeToggle.addEventListener('click', function() {
@@ -118,4 +124,28 @@ document.addEventListener('DOMContentLoaded', function() {
118124

119125
// Add fade-in animation after a short delay
120126
setTimeout(addFadeInAnimation, 100);
127+
128+
// Language switching enhancement
129+
const languageDropdown = document.getElementById('languageDropdown');
130+
if (languageDropdown) {
131+
// Add click handler to prevent default behavior
132+
languageDropdown.addEventListener('click', function(e) {
133+
e.preventDefault();
134+
});
135+
136+
// Add click handlers to dropdown items
137+
document.querySelectorAll('.dropdown-item').forEach(item => {
138+
item.addEventListener('click', function(e) {
139+
e.preventDefault();
140+
const href = this.getAttribute('href');
141+
if (href) {
142+
// Add smooth transition
143+
document.body.style.opacity = '0.8';
144+
setTimeout(() => {
145+
window.location.href = href;
146+
}, 150);
147+
}
148+
});
149+
});
150+
}
121151
});

docs/de/configuration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
layout: default
3-
title: Configuration
4-
description: Detailed configuration options and best practices for SmartRAG
5-
lang: en
3+
title: Konfiguration
4+
description: Detaillierte Konfigurationsoptionen und Best Practices für SmartRAG
5+
lang: de
66
---
77

8-
# Configuration
8+
# Konfiguration
99

10-
Detailed configuration options and best practices for SmartRAG.
10+
Detaillierte Konfigurationsoptionen und Best Practices für SmartRAG.
1111

1212
## Basic Configuration
1313

docs/ru/configuration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
layout: default
3-
title: Configuration
4-
description: Detailed configuration options and best practices for SmartRAG
5-
lang: en
3+
title: Конфигурация
4+
description: Подробные параметры конфигурации и лучшие практики для SmartRAG
5+
lang: ru
66
---
77

8-
# Configuration
8+
# Конфигурация
99

10-
Detailed configuration options and best practices for SmartRAG.
10+
Подробные параметры конфигурации и лучшие практики для SmartRAG.
1111

1212
## Basic Configuration
1313

0 commit comments

Comments
 (0)