diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index e1e6939..0fc936a 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -1,6 +1,7 @@ import { defineConfig } from 'astro/config'; import starlight from '@astrojs/starlight'; -import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers' +import starlightThemeRapide from 'starlight-theme-rapide' + // https://astro.build/config @@ -10,6 +11,7 @@ export default defineConfig({ integrations: [ starlight({ title: 'My Docs', + plugins: [starlightThemeRapide()], social: { github: 'https://github.com/withastro/starlight', }, diff --git a/docs/package.json b/docs/package.json index 521e82a..57581d0 100644 --- a/docs/package.json +++ b/docs/package.json @@ -15,6 +15,7 @@ "@expressive-code/plugin-line-numbers": "^0.35.6", "astro": "^4.10.2", "sharp": "^0.32.5", + "starlight-theme-rapide": "^0.1.1", "typescript": "^5.5.4" } } \ No newline at end of file diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml index 03b33ef..bd79d02 100644 --- a/docs/pnpm-lock.yaml +++ b/docs/pnpm-lock.yaml @@ -20,6 +20,9 @@ dependencies: sharp: specifier: ^0.32.5 version: 0.32.6 + starlight-theme-rapide: + specifier: ^0.1.1 + version: 0.1.1(@astrojs/starlight@0.26.1) typescript: specifier: ^5.5.4 version: 5.5.4 @@ -4056,6 +4059,15 @@ packages: resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} dev: false + /starlight-theme-rapide@0.1.1(@astrojs/starlight@0.26.1): + resolution: {integrity: sha512-jVACnhIAVcdnlgIC0VceECMLWxn5rpqg3Ei+YfYigrAzCHdulMma/DIO7X7mH8193kVIoSphUl1z6DJ00a0lUQ==} + engines: {node: '>=18'} + peerDependencies: + '@astrojs/starlight': '>=0.23.0' + dependencies: + '@astrojs/starlight': 0.26.1(astro@4.14.3) + dev: false + /stdin-discarder@0.2.2: resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==} engines: {node: '>=18'} diff --git a/docs/src/assets/fish.webp b/docs/src/assets/fish.webp new file mode 100644 index 0000000..fef43ec Binary files /dev/null and b/docs/src/assets/fish.webp differ diff --git a/docs/src/assets/houston.webp b/docs/src/assets/houston.webp deleted file mode 100644 index 930c164..0000000 Binary files a/docs/src/assets/houston.webp and /dev/null differ diff --git a/docs/src/components/Example.mdx b/docs/src/components/Example.mdx index dfbbde9..d1272f9 100644 --- a/docs/src/components/Example.mdx +++ b/docs/src/components/Example.mdx @@ -3,7 +3,9 @@ import { Code } from '@astrojs/starlight/components'; export const exampleCode = (` ... -// ><> WATCH constraint: docs/getting-started +// ><> constraints: +// WATCH docs/getting-started +// use fetch API await fetch(\`http://localhost:3010/todos/$\{todo.id\}\`, { method: \`PUT\`, headers: { diff --git a/docs/src/content/docs/index.mdx b/docs/src/content/docs/index.mdx index 8a9c970..9d3e9e5 100644 --- a/docs/src/content/docs/index.mdx +++ b/docs/src/content/docs/index.mdx @@ -5,7 +5,7 @@ template: splash hero: tagline: Congrats on setting up a new Starlight project! image: - file: ../../assets/houston.webp + file: ../../assets/fish.webp actions: - text: Example Guide link: /guides/example/ diff --git a/docs/src/pages/index.astro b/docs/src/pages/hi.astro similarity index 60% rename from docs/src/pages/index.astro rename to docs/src/pages/hi.astro index 90f90a6..0132742 100644 --- a/docs/src/pages/index.astro +++ b/docs/src/pages/hi.astro @@ -1,15 +1,18 @@ --- import Example from "../components/Example.mdx" import { Code } from '@astrojs/starlight/components'; +import { LinkCard, CardGrid } from '@astrojs/starlight/components'; +import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro'; --- + - lo.fish: the meta-programming language for ArchGPT + lo.fish ><>: the meta-programming language for ArchGPT