From afe84a918894e09d90a65f9280a99181f7c56034 Mon Sep 17 00:00:00 2001 From: hngngn Date: Wed, 13 Nov 2024 18:28:22 +0700 Subject: [PATCH] chore: update search component chore: revert back to astro 4 --- .vscode/settings.json | 5 +- docs/astro.config.mjs | 6 +- docs/package.json | 8 +- docs/src/components/command-menu.tsx | 17 +- docs/src/layouts/root-layout.astro | 4 +- pnpm-lock.yaml | 718 +++++++++++++-------------- 6 files changed, 385 insertions(+), 373 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index ca7f99f0..20aa86ac 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,6 +9,7 @@ "source.removeUnusedImports": "explicit" }, "[astro]": { - "editor.defaultFormatter": "astro-build.astro-vscode" - } + "editor.defaultFormatter": "astro-build.astro-vscode", + }, + "astro.content-intellisense": true } diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index f24c3c9c..00eef7cf 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -2,7 +2,7 @@ import mdx from "@astrojs/mdx"; import sitemap from "@astrojs/sitemap"; import solidJs from "@astrojs/solid-js"; import tailwind from "@astrojs/tailwind"; -import vercel from "@astrojs/vercel"; +import vercel from "@astrojs/vercel/serverless"; import { defineConfig } from "astro/config"; import rehypePrettyCode from "rehype-pretty-code"; import { codeImport } from "remark-code-import"; @@ -135,4 +135,8 @@ export default defineConfig({ ], output: "server", adapter: vercel(), + experimental: { + contentLayer: true, + contentIntellisense: true, + }, }); diff --git a/docs/package.json b/docs/package.json index 98751300..c9fb423d 100644 --- a/docs/package.json +++ b/docs/package.json @@ -12,17 +12,17 @@ }, "dependencies": { "@astrojs/check": "^0.9.4", - "@astrojs/mdx": "4.0.0-beta.3", + "@astrojs/mdx": "3.1.9", "@astrojs/sitemap": "^3.2.1", - "@astrojs/solid-js": "3.0.0-beta.2", + "@astrojs/solid-js": "4.4.2", "@astrojs/tailwind": "^5.1.2", - "@astrojs/vercel": "8.0.0-beta.3", + "@astrojs/vercel": "7.8.2", "@kobalte/core": "^0.13.7", "@repo/tailwindcss": "workspace:*", "@repo/unocss": "workspace:*", "@solid-primitives/storage": "^4.2.1", "@tanstack/solid-table": "^8.20.5", - "astro": "5.0.0-beta.6", + "astro": "4.16.11", "class-variance-authority": "^0.7.0", "clsx": "^2.1.0", "embla-carousel-autoplay": "^8.3.1", diff --git a/docs/src/components/command-menu.tsx b/docs/src/components/command-menu.tsx index 6d3c7928..e08531d3 100644 --- a/docs/src/components/command-menu.tsx +++ b/docs/src/components/command-menu.tsx @@ -212,8 +212,21 @@ const CommandMenu = () => { > Search... -