@barodoc/theme-docs 2.0.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/components/Breadcrumb.astro +8 -8
- package/src/components/CodeCopy.astro +14 -13
- package/src/components/DocHeader.tsx +24 -24
- package/src/components/DocsSidebar.tsx +11 -15
- package/src/components/LanguageSwitcher.astro +3 -3
- package/src/components/MobileNavSheet.tsx +1 -1
- package/src/components/Search.tsx +10 -10
- package/src/components/SearchDialog.tsx +8 -8
- package/src/components/TableOfContents.astro +5 -5
- package/src/components/ThemeToggle.tsx +4 -4
- package/src/components/api/ApiEndpoint.astro +5 -5
- package/src/components/api/ApiParam.astro +4 -4
- package/src/components/api/ApiParams.astro +3 -3
- package/src/components/api/ApiResponse.astro +2 -2
- package/src/components/mdx/Accordion.tsx +6 -6
- package/src/components/mdx/Badge.tsx +1 -1
- package/src/components/mdx/Callout.astro +20 -20
- package/src/components/mdx/Card.astro +5 -5
- package/src/components/mdx/CodeGroup.astro +23 -20
- package/src/components/mdx/CodeGroup.tsx +6 -6
- package/src/components/mdx/DocAccordion.tsx +5 -5
- package/src/components/mdx/DocCard.tsx +2 -2
- package/src/components/mdx/DocTabs.tsx +3 -3
- package/src/components/mdx/Expandable.tsx +11 -11
- package/src/components/mdx/FileTree.tsx +6 -6
- package/src/components/mdx/Frame.tsx +2 -2
- package/src/components/mdx/Mermaid.tsx +3 -3
- package/src/components/mdx/ParamField.tsx +7 -7
- package/src/components/mdx/ResponseField.tsx +6 -6
- package/src/components/mdx/Step.astro +2 -2
- package/src/components/mdx/Steps.astro +3 -3
- package/src/components/mdx/Steps.tsx +10 -19
- package/src/components/mdx/Tabs.tsx +5 -8
- package/src/components/mdx/Tooltip.tsx +20 -19
- package/src/components/ui/accordion.tsx +2 -2
- package/src/components/ui/alert.tsx +1 -1
- package/src/components/ui/button.tsx +3 -3
- package/src/components/ui/card.tsx +2 -2
- package/src/components/ui/dialog.tsx +2 -2
- package/src/components/ui/scroll-area.tsx +1 -1
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/sheet.tsx +3 -3
- package/src/components/ui/tabs.tsx +2 -2
- package/src/components/ui/tooltip.tsx +1 -1
- package/src/index.ts +6 -0
- package/src/layouts/BaseLayout.astro +7 -1
- package/src/layouts/DocsLayout.astro +39 -22
- package/src/pages/404.astro +5 -5
- package/src/pages/docs/[...slug].astro +2 -2
- package/src/pages/index.astro +21 -21
- package/src/styles/global.css +473 -166
package/src/pages/index.astro
CHANGED
|
@@ -40,10 +40,10 @@ const features = [
|
|
|
40
40
|
<BaseLayout title={config.name}>
|
|
41
41
|
<div class="min-h-screen flex flex-col">
|
|
42
42
|
<!-- Header -->
|
|
43
|
-
<header class="sticky top-0 z-50 border-b border-[var(--
|
|
43
|
+
<header class="sticky top-0 z-50 border-b border-[var(--bd-border)] bg-[var(--bd-bg)]/95 backdrop-blur-md">
|
|
44
44
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
45
45
|
<div class="flex h-16 items-center justify-between">
|
|
46
|
-
<a href="/" class="flex items-center gap-2.5 font-semibold text-[var(--
|
|
46
|
+
<a href="/" class="flex items-center gap-2.5 font-semibold text-[var(--bd-text)]">
|
|
47
47
|
{config.logo && <img src={config.logo} alt={config.name} class="h-7 w-7" />}
|
|
48
48
|
<span class="text-lg">{config.name}</span>
|
|
49
49
|
</a>
|
|
@@ -53,7 +53,7 @@ const features = [
|
|
|
53
53
|
href={config.topbar.github}
|
|
54
54
|
target="_blank"
|
|
55
55
|
rel="noopener noreferrer"
|
|
56
|
-
class="p-2.5 rounded-xl text-[var(--
|
|
56
|
+
class="p-2.5 rounded-xl text-[var(--bd-text-secondary)] hover:text-[var(--bd-text)] hover:bg-[var(--bd-bg-subtle)] transition-all"
|
|
57
57
|
aria-label="GitHub"
|
|
58
58
|
>
|
|
59
59
|
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
|
|
@@ -91,12 +91,12 @@ const features = [
|
|
|
91
91
|
<span class="text-sm font-medium text-primary-700 dark:text-primary-300">Powered by Astro</span>
|
|
92
92
|
</div>
|
|
93
93
|
|
|
94
|
-
<h1 class="text-4xl sm:text-5xl lg:text-6xl font-bold tracking-tight text-[var(--
|
|
94
|
+
<h1 class="text-4xl sm:text-5xl lg:text-6xl font-bold tracking-tight text-[var(--bd-text)] mb-6 leading-tight">
|
|
95
95
|
Build beautiful
|
|
96
96
|
<span class="text-transparent bg-clip-text bg-gradient-to-r from-primary-600 to-primary-400"> documentation</span>
|
|
97
97
|
</h1>
|
|
98
98
|
|
|
99
|
-
<p class="text-lg sm:text-xl text-[var(--
|
|
99
|
+
<p class="text-lg sm:text-xl text-[var(--bd-text-secondary)] mb-10 max-w-2xl mx-auto leading-relaxed">
|
|
100
100
|
Create stunning documentation sites with MDX, Astro, and Tailwind CSS.
|
|
101
101
|
Deploy anywhere with static site generation.
|
|
102
102
|
</p>
|
|
@@ -110,19 +110,19 @@ const features = [
|
|
|
110
110
|
</a>
|
|
111
111
|
<a
|
|
112
112
|
href="/docs/quickstart"
|
|
113
|
-
class="w-full sm:w-auto px-8 py-3.5 border border-[var(--
|
|
113
|
+
class="w-full sm:w-auto px-8 py-3.5 border border-[var(--bd-border)] text-[var(--bd-text)] rounded-xl hover:bg-[var(--bd-bg-subtle)] hover:border-[var(--bd-text-muted)] transition-all font-medium"
|
|
114
114
|
>
|
|
115
115
|
Quick Start
|
|
116
116
|
</a>
|
|
117
117
|
</div>
|
|
118
118
|
|
|
119
119
|
<!-- Install command -->
|
|
120
|
-
<div class="mt-12 inline-flex items-center gap-3 px-5 py-3 bg-[var(--
|
|
121
|
-
<code class="text-sm text-[var(--
|
|
120
|
+
<div class="mt-12 inline-flex items-center gap-3 px-5 py-3 bg-[var(--bd-bg-subtle)] border border-[var(--bd-border)] rounded-xl">
|
|
121
|
+
<code class="text-sm text-[var(--bd-text-secondary)] font-mono">
|
|
122
122
|
npx create-barodoc my-docs
|
|
123
123
|
</code>
|
|
124
124
|
<button
|
|
125
|
-
class="p-1.5 rounded-lg hover:bg-[var(--
|
|
125
|
+
class="p-1.5 rounded-lg hover:bg-[var(--bd-bg-muted)] text-[var(--bd-text-muted)] hover:text-[var(--bd-text)] transition-colors"
|
|
126
126
|
onclick="navigator.clipboard.writeText('npx create-barodoc my-docs')"
|
|
127
127
|
aria-label="Copy command"
|
|
128
128
|
>
|
|
@@ -136,27 +136,27 @@ const features = [
|
|
|
136
136
|
</div>
|
|
137
137
|
|
|
138
138
|
<!-- Features Section -->
|
|
139
|
-
<div class="py-20 bg-[var(--
|
|
139
|
+
<div class="py-20 bg-[var(--bd-bg-subtle)] border-y border-[var(--bd-border)]">
|
|
140
140
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
141
141
|
<div class="text-center mb-16">
|
|
142
|
-
<h2 class="text-3xl font-bold text-[var(--
|
|
142
|
+
<h2 class="text-3xl font-bold text-[var(--bd-text)] mb-4">
|
|
143
143
|
Everything you need
|
|
144
144
|
</h2>
|
|
145
|
-
<p class="text-lg text-[var(--
|
|
145
|
+
<p class="text-lg text-[var(--bd-text-secondary)] max-w-2xl mx-auto">
|
|
146
146
|
Barodoc comes with all the features you need to create beautiful documentation.
|
|
147
147
|
</p>
|
|
148
148
|
</div>
|
|
149
149
|
|
|
150
150
|
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
|
|
151
151
|
{features.map((feature) => (
|
|
152
|
-
<div class="group p-6 bg-[var(--
|
|
152
|
+
<div class="group p-6 bg-[var(--bd-bg)] rounded-2xl border border-[var(--bd-border)] hover:border-primary-300 dark:hover:border-primary-700 hover:shadow-lg transition-all duration-200">
|
|
153
153
|
<div class="flex items-center justify-center w-12 h-12 rounded-xl bg-primary-50 dark:bg-primary-950/50 mb-4 group-hover:scale-110 transition-transform">
|
|
154
154
|
<span class="text-2xl">{feature.icon}</span>
|
|
155
155
|
</div>
|
|
156
|
-
<h3 class="text-lg font-semibold text-[var(--
|
|
156
|
+
<h3 class="text-lg font-semibold text-[var(--bd-text)] mb-2">
|
|
157
157
|
{feature.title}
|
|
158
158
|
</h3>
|
|
159
|
-
<p class="text-sm text-[var(--
|
|
159
|
+
<p class="text-sm text-[var(--bd-text-secondary)] leading-relaxed">
|
|
160
160
|
{feature.description}
|
|
161
161
|
</p>
|
|
162
162
|
</div>
|
|
@@ -168,10 +168,10 @@ const features = [
|
|
|
168
168
|
<!-- CTA Section -->
|
|
169
169
|
<div class="py-20">
|
|
170
170
|
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
|
|
171
|
-
<h2 class="text-3xl font-bold text-[var(--
|
|
171
|
+
<h2 class="text-3xl font-bold text-[var(--bd-text)] mb-4">
|
|
172
172
|
Ready to get started?
|
|
173
173
|
</h2>
|
|
174
|
-
<p class="text-lg text-[var(--
|
|
174
|
+
<p class="text-lg text-[var(--bd-text-secondary)] mb-8">
|
|
175
175
|
Create your documentation site in minutes.
|
|
176
176
|
</p>
|
|
177
177
|
<a
|
|
@@ -185,10 +185,10 @@ const features = [
|
|
|
185
185
|
</main>
|
|
186
186
|
|
|
187
187
|
<!-- Footer -->
|
|
188
|
-
<footer class="border-t border-[var(--
|
|
188
|
+
<footer class="border-t border-[var(--bd-border)] bg-[var(--bd-bg-subtle)]">
|
|
189
189
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
|
190
190
|
<div class="flex flex-col sm:flex-row items-center justify-between gap-4">
|
|
191
|
-
<div class="flex items-center gap-2 text-[var(--
|
|
191
|
+
<div class="flex items-center gap-2 text-[var(--bd-text-secondary)]">
|
|
192
192
|
{config.logo && <img src={config.logo} alt={config.name} class="h-5 w-5 opacity-60" />}
|
|
193
193
|
<span class="text-sm">Built with Barodoc</span>
|
|
194
194
|
</div>
|
|
@@ -198,14 +198,14 @@ const features = [
|
|
|
198
198
|
href={config.topbar.github}
|
|
199
199
|
target="_blank"
|
|
200
200
|
rel="noopener noreferrer"
|
|
201
|
-
class="text-sm text-[var(--
|
|
201
|
+
class="text-sm text-[var(--bd-text-secondary)] hover:text-[var(--bd-text)] transition-colors"
|
|
202
202
|
>
|
|
203
203
|
GitHub
|
|
204
204
|
</a>
|
|
205
205
|
)}
|
|
206
206
|
<a
|
|
207
207
|
href="/docs/introduction"
|
|
208
|
-
class="text-sm text-[var(--
|
|
208
|
+
class="text-sm text-[var(--bd-text-secondary)] hover:text-[var(--bd-text)] transition-colors"
|
|
209
209
|
>
|
|
210
210
|
Documentation
|
|
211
211
|
</a>
|