diff --git a/.changeset/lovely-books-pretend.md b/.changeset/lovely-books-pretend.md new file mode 100644 index 00000000..dfbc67a8 --- /dev/null +++ b/.changeset/lovely-books-pretend.md @@ -0,0 +1,5 @@ +--- +"@studiocms/ui": patch +--- + +Adds support for Astro v7 diff --git a/docs/astro.config.mts b/docs/astro.config.mts index 4602050a..1674866c 100644 --- a/docs/astro.config.mts +++ b/docs/astro.config.mts @@ -31,6 +31,7 @@ export default defineConfig({ image: { remotePatterns: [{ protocol: 'https' }], }, + markdown: { rehypePlugins: rehypePluginKit, }, @@ -197,31 +198,47 @@ export default defineConfig({ }, { label: 'Guides', - autogenerate: { - directory: 'docs/guides', - collapsed: true, - }, + items: [ + { + autogenerate: { + directory: 'docs/guides', + collapsed: true, + }, + }, + ], }, { label: 'Upgrading StudioCMS', - autogenerate: { - directory: 'docs/upgrade-guides', - collapsed: true, - }, + items: [ + { + autogenerate: { + directory: 'docs/upgrade-guides', + collapsed: true, + }, + }, + ], }, { label: 'Components', - autogenerate: { - directory: 'docs/components', - collapsed: true, - }, + items: [ + { + autogenerate: { + directory: 'docs/components', + collapsed: true, + }, + }, + ], }, { label: 'Utilities', - autogenerate: { - directory: 'docs/utilities', - collapsed: true, - }, + items: [ + { + autogenerate: { + directory: 'docs/utilities', + collapsed: true, + }, + }, + ], }, ], }), diff --git a/docs/package.json b/docs/package.json index b00f53f3..5957dc62 100644 --- a/docs/package.json +++ b/docs/package.json @@ -15,11 +15,11 @@ "dependencies": { "@11ty/eleventy-fetch": "^5.0.1", "@astrojs/check": "catalog:", - "@astrojs/starlight": "^0.38.1", + "@astrojs/starlight": "^0.40.0", "@expressive-code/plugin-line-numbers": "^0.41.7", "@fontsource-variable/fira-code": "^5.1.0", "@fontsource-variable/onest": "catalog:", - "@lunariajs/core": "https://pkg.pr.new/lunariajs/lunaria/@lunariajs/core@4c8b9b0", + "@lunariajs/core": "https://pkg.pr.new/lunariajs/lunaria/@lunariajs/core@722c34c", "@shikijs/colorized-brackets": "^1.24.0", "@studiocms/ui": "workspace:*", "@types/hast": "^3.0.4", @@ -27,7 +27,7 @@ "@types/mdast": "^4.0.4", "@types/node": "catalog:", "astro": "catalog:", - "astro-embed": "^0.12.0", + "astro-embed": "^0.13.0", "expressive-code-twoslash": "^0.6.1", "md5": "2.3.0", "mdast-util-from-markdown": "^2.0.2", @@ -40,7 +40,7 @@ "starlight-package-managers": "^0.8.1", "tsm": "^2.3.0", "typescript": "catalog:", - "unist-util-visit": "^5.0.0", - "unified": "^11.0.5" + "unified": "^11.0.5", + "unist-util-visit": "^5.0.0" } } diff --git a/docs/src/components/landing/HeroSection.astro b/docs/src/components/landing/HeroSection.astro index a16440f6..282f558b 100644 --- a/docs/src/components/landing/HeroSection.astro +++ b/docs/src/components/landing/HeroSection.astro @@ -13,406 +13,410 @@ import { Toggle, User, } from 'studiocms:ui/components'; +import 'studiocms:ui/global-css'; import GitHubIcon from '~/components/icons/GitHubIcon.astro'; --- -
-
- -
-
- -
-
- -
- -
-