Skip to content

Commit a43197f

Browse files
authored
feat: implement searchbar based on doc content (#9)
1 parent 3d6c486 commit a43197f

File tree

13 files changed

+900
-175
lines changed

13 files changed

+900
-175
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"@iconify/react": "^6.0.0",
1818
"@lucide/astro": "^0.488.0",
1919
"@radix-ui/react-collapsible": "^1.1.12",
20-
"@radix-ui/react-dialog": "^1.1.13",
20+
"@radix-ui/react-dialog": "^1.1.14",
2121
"@radix-ui/react-dropdown-menu": "^2.1.6",
2222
"@radix-ui/react-navigation-menu": "^1.2.5",
23-
"@radix-ui/react-slot": "^1.1.2",
23+
"@radix-ui/react-slot": "^1.2.3",
2424
"@scalar/api-reference-react": "^0.6.19",
2525
"@tailwindcss/vite": "^4.0.17",
2626
"@types/hast": "^3.0.4",
@@ -34,6 +34,7 @@
3434
"autoprefixer": "^10.4.21",
3535
"class-variance-authority": "^0.7.1",
3636
"clsx": "^2.1.1",
37+
"cmdk": "^1.1.1",
3738
"hast": "^1.0.0",
3839
"hast-util-to-html": "^9.0.5",
3940
"hastscript": "^9.0.1",

pnpm-lock.yaml

Lines changed: 22 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/content/card-group/card.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const props = Astro.props;
2222
/>
2323
</div>
2424
<div class="mt-4">
25-
<p class="font-semibold text-gray-900 !mt-0 !p-0">{props.label}</p>
25+
<p class="font-semibold text-muted-foreground !mt-0 !p-0">{props.label}</p>
2626
<p class="text-sm text-gray-500 !mt-0 !p-0">
2727
<slot />
2828
</p>

src/lib/components/elements/DocNavigationWrapper.astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ const container = "flex flex-col justify-between border rounded-xl p-6 w-1/2";
4141
</div>
4242
</div>
4343
<div class="mt-4">
44-
<h3 class="font-semibold text-gray-900">{previousPage.data.title}</h3>
44+
<h3 class="font-semibold text-muted-foreground">
45+
{previousPage.data.title}
46+
</h3>
4547
<p class="text-sm text-gray-500 mt-1">
4648
{previousPage.data.description}
4749
</p>
@@ -67,7 +69,9 @@ const container = "flex flex-col justify-between border rounded-xl p-6 w-1/2";
6769
</div>
6870
</div>
6971
<div class="mt-4 text-right">
70-
<h3 class="font-semibold text-gray-900">{nextPage.data.title}</h3>
72+
<h3 class="font-semiboldtext-muted-foreground">
73+
{nextPage.data.title}
74+
</h3>
7175
<p class="text-sm text-gray-500 mt-1">{nextPage.data.description}</p>
7276
</div>
7377
</a>

0 commit comments

Comments
 (0)