Skip to content

Commit 8cbcc97

Browse files
committed
feat: add Docker Compose example link to footer and update Get Started section
1 parent eeff663 commit 8cbcc97

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/components/Footer.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const sections = [
1717
title: "Resources",
1818
links: [
1919
{ label: "Documentation", href: "https://github.com/libredb/libredb-studio#readme", external: true },
20+
{ label: "Docker Compose Example", href: "/docker-compose-example" },
2021
{ label: "API Reference", href: "https://github.com/libredb/libredb-studio/blob/main/docs/API_DOCS.md", external: true },
2122
{ label: "Architecture", href: "https://github.com/libredb/libredb-studio/blob/main/docs/ARCHITECTURE.md", external: true },
2223
{ label: "Releases", href: "https://github.com/libredb/libredb-studio/releases", external: true },
@@ -109,8 +110,8 @@ const sections = [
109110
<a
110111
href={link.href}
111112
class="text-sm text-slate-400 hover:text-white transition-colors"
112-
target="_blank"
113-
rel="noopener noreferrer"
113+
target={link.external ? '_blank' : undefined}
114+
rel={link.external ? 'noopener noreferrer' : undefined}
114115
>
115116
{link.label}
116117
</a>

src/components/GetStarted.astro

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,18 @@ LLM_API_URL=http://localhost:11434/v1`,
9494
</div>
9595
<div>
9696
<h3 class="text-base md:text-xl font-semibold text-white mb-0.5 md:mb-1">Prefer Docker?</h3>
97-
<p class="text-xs md:text-base text-slate-400">One command to run anywhere.</p>
97+
<p class="text-xs md:text-base text-slate-400 mb-1">One command to run anywhere.</p>
98+
<a href="/docker-compose-example" class="inline-flex items-center gap-1 text-xs md:text-sm text-indigo-400 hover:text-indigo-300 font-medium transition-colors">
99+
View the full docker-compose.example.yml
100+
<span aria-hidden="true">&rarr;</span>
101+
</a>
98102
</div>
99103
</div>
100104
<div class="relative group w-full md:w-auto">
101-
<pre class="w-full md:w-auto px-4 md:px-6 pr-12 py-3 md:py-4 rounded-lg bg-slate-950 text-xs md:text-sm text-slate-300 font-mono overflow-x-auto text-center md:text-left"><code>docker-compose up -d</code></pre>
105+
<pre class="w-full md:w-auto px-4 md:px-6 pr-12 py-3 md:py-4 rounded-lg bg-slate-950 text-xs md:text-sm text-slate-300 font-mono overflow-x-auto text-center md:text-left"><code>docker compose up -d</code></pre>
102106
<button
103107
class="copy-btn absolute top-1/2 -translate-y-1/2 right-2 p-1.5 rounded-md bg-slate-800 hover:bg-slate-700 text-slate-400 hover:text-white opacity-100 md:opacity-0 md:group-hover:opacity-100 transition-all duration-200"
104-
data-code="docker-compose up -d"
108+
data-code="docker compose up -d"
105109
aria-label="Copy to clipboard"
106110
>
107111
<svg class="w-4 h-4 copy-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24">

0 commit comments

Comments
 (0)