Skip to content

Commit 99ac2fa

Browse files
committed
Merge branch 'starlight' of https://github.com/filamentphp/filamentphp.com into starlight
2 parents 96722e0 + ddef53d commit 99ac2fa

File tree

6 files changed

+1731
-58
lines changed

6 files changed

+1731
-58
lines changed

astro.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ export default defineConfig({
3030
],
3131
customCss: ['./docs/tailwind.css'],
3232
}),
33-
tailwind({ applyBaseStyles: false, configFile: './docs/tailwind.config.mjs' }),
33+
tailwind({
34+
applyBaseStyles: false,
35+
configFile: './docs/tailwind.config.mjs',
36+
}),
3437
],
3538
})

docs/content/docs/index.mdx

Lines changed: 46 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,56 @@ title: Welcome to Starlight
33
description: Get started building your docs site with Starlight.
44
template: splash
55
hero:
6-
title: |
7-
Welcome to Starlight with
8-
<span
9-
class="font-black text-transparent
10-
bg-clip-text bg-gradient-to-b
11-
from-accent-700 to-accent-400
12-
dark:from-accent-500 dark:to-accent-200"
13-
>
14-
Tailwind
15-
</span>
16-
tagline: Congrats on setting up a new Starlight project!
17-
image:
18-
file: ../../assets/houston.webp
19-
actions:
20-
- text: Example Guide
21-
link: /docs/guides/example/
22-
icon: right-arrow
23-
- text: Read the Starlight docs
24-
link: https://starlight.astro.build
25-
icon: external
26-
variant: minimal
6+
title: |
7+
Welcome to Starlight with
8+
<span
9+
class="font-black text-transparent
10+
bg-clip-text bg-gradient-to-b
11+
from-accent-700 to-accent-400
12+
dark:from-accent-500 dark:to-accent-200"
13+
>
14+
Tailwind
15+
</span>
16+
tagline: Congrats on setting up a new Starlight project!
17+
image:
18+
file: ../../assets/houston.webp
19+
actions:
20+
- text: Example Guide
21+
link: /docs/guides/example/
22+
icon: right-arrow
23+
- text: Read the Starlight docs
24+
link: https://starlight.astro.build
25+
icon: external
26+
variant: minimal
2727
---
2828

29-
import { Card, CardGrid } from '@astrojs/starlight/components';
29+
import { Card, CardGrid } from '@astrojs/starlight/components'
3030

3131
## Next steps
3232

3333
<CardGrid stagger>
34-
<Card title="Update content" icon="pencil">
35-
Edit `src/content/docs/index.mdx` to see this page change.
36-
</Card>
37-
<Card title="Add new content" icon="add-document">
38-
Add Markdown or MDX files to `src/content/docs` to create new pages.
39-
</Card>
40-
<Card title="Configure your site" icon="setting">
41-
Edit your `sidebar` and other config in `astro.config.mjs`.
42-
</Card>
43-
<Card title="Read the docs" icon="open-book">
44-
Learn more in [the Starlight Docs](https://starlight.astro.build/).
45-
</Card>
34+
<Card
35+
title="Update content"
36+
icon="pencil"
37+
>
38+
Edit `src/content/docs/index.mdx` to see this page change.
39+
</Card>
40+
<Card
41+
title="Add new content"
42+
icon="add-document"
43+
>
44+
Add Markdown or MDX files to `src/content/docs` to create new pages.
45+
</Card>
46+
<Card
47+
title="Configure your site"
48+
icon="setting"
49+
>
50+
Edit your `sidebar` and other config in `astro.config.mjs`.
51+
</Card>
52+
<Card
53+
title="Read the docs"
54+
icon="open-book"
55+
>
56+
Learn more in [the Starlight Docs](https://starlight.astro.build/).
57+
</Card>
4658
</CardGrid>

docs/tailwind.config.mjs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import colors from 'tailwindcss/colors';
2-
import starlightPlugin from '@astrojs/starlight-tailwind';
1+
import colors from 'tailwindcss/colors'
2+
import starlightPlugin from '@astrojs/starlight-tailwind'
33

44
/** @type {import('tailwindcss').Config} */
55
export default {
6-
content: ['./docs/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
7-
theme: {
8-
extend: {
9-
colors: {
10-
// Your preferred accent color. Indigo is closest to Starlight’s defaults.
11-
accent: colors.amber,
12-
// Your preferred gray scale. Zinc is closest to Starlight’s defaults.
13-
gray: colors.zinc,
14-
},
15-
},
16-
},
17-
plugins: [starlightPlugin()],
18-
};
6+
content: ['./docs/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
7+
theme: {
8+
extend: {
9+
colors: {
10+
// Your preferred accent color. Indigo is closest to Starlight’s defaults.
11+
accent: colors.amber,
12+
// Your preferred gray scale. Zinc is closest to Starlight’s defaults.
13+
gray: colors.zinc,
14+
},
15+
},
16+
},
17+
plugins: [starlightPlugin()],
18+
}

old-docs/src/navigation.json

Lines changed: 1662 additions & 1 deletion
Large diffs are not rendered by default.

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "astro/tsconfigs/strict",
3-
"include": [".astro/types.d.ts", "**/*"],
4-
"exclude": ["dist"]
2+
"extends": "astro/tsconfigs/strict",
3+
"include": [".astro/types.d.ts", "**/*"],
4+
"exclude": ["dist"]
55
}

vite.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import laravel from 'laravel-vite-plugin'
44
export default defineConfig({
55
css: {
66
postcss: {
7-
plugins: [
8-
require('tailwindcss')(),
9-
require('autoprefixer')(),
10-
],
7+
plugins: [require('tailwindcss')(), require('autoprefixer')()],
118
},
129
},
1310
plugins: [

0 commit comments

Comments
 (0)