Skip to content

Commit 76e1b4a

Browse files
authored
Merge pull request #4 from pheralb/astro
✨ Migrate docs to Astro Content
2 parents 069d485 + b3426d9 commit 76e1b4a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1265
-1051
lines changed

β€Ž.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
1010
"ignore": [
11-
"@pheralb/toast-website",
11+
"@pheralb/toast-docs",
1212
"@pheralb-toast/nextjs-example",
1313
"@pheralb-toast/astro-example"
1414
]

β€Ž.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode"],
3+
"unwantedRecommendations": []
4+
}

β€Ždocs/astro.config.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { defineConfig } from 'astro/config';
2+
3+
// Integrations:
4+
import react from '@astrojs/react';
5+
import tailwind from '@astrojs/tailwind';
6+
import mdx from '@astrojs/mdx';
7+
8+
// MDX Plugins:
9+
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
10+
import rehypeSlug from 'rehype-slug';
11+
import { HEADING_LINK_ANCHOR } from './src/ui/headings';
12+
13+
// Astro config:
14+
export default defineConfig({
15+
site: 'https://toast.pheralb.dev',
16+
integrations: [
17+
react(),
18+
tailwind({
19+
applyBaseStyles: false,
20+
}),
21+
mdx({
22+
syntaxHighlight: 'shiki',
23+
shikiConfig: { theme: 'vesper', wrap: true },
24+
gfm: true,
25+
rehypePlugins: [
26+
rehypeSlug,
27+
[
28+
rehypeAutolinkHeadings,
29+
{ behavior: 'wrap', properties: { className: HEADING_LINK_ANCHOR } },
30+
],
31+
],
32+
}),
33+
],
34+
});

β€Žwebsite/components.json renamed to β€Ždocs/components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"tsx": true,
66
"tailwind": {
77
"config": "tailwind.config.ts",
8-
"css": "styles/globals.css",
8+
"css": "src/styles/globals.css",
99
"baseColor": "neutral",
1010
"cssVariables": false,
1111
"prefix": ""

β€Ždocs/package.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "@pheralb/toast-docs",
3+
"type": "module",
4+
"version": "1.0.0",
5+
"scripts": {
6+
"dev": "astro dev",
7+
"start": "astro dev",
8+
"build": "astro check && astro build",
9+
"preview": "astro preview",
10+
"astro": "astro"
11+
},
12+
"dependencies": {
13+
"@astrojs/check": "0.9.1",
14+
"@astrojs/mdx": "3.1.3",
15+
"@astrojs/react": "3.6.1",
16+
"@astrojs/tailwind": "5.1.0",
17+
"@radix-ui/react-dropdown-menu": "2.1.1",
18+
"@radix-ui/react-icons": "1.3.0",
19+
"@radix-ui/react-slot": "1.1.0",
20+
"astro": "4.13.0",
21+
"class-variance-authority": "0.7.0",
22+
"clsx": "2.1.1",
23+
"fast-npm-meta": "0.0.1",
24+
"js-confetti": "0.12.0",
25+
"lucide-react": "0.399.0",
26+
"react": "18.3.1",
27+
"react-dom": "18.3.1",
28+
"rehype-autolink-headings": "7.1.0",
29+
"rehype-slug": "6.0.0",
30+
"tailwind-merge": "2.3.0",
31+
"tailwindcss-animate": "1.0.7",
32+
"zustand": "4.5.4"
33+
},
34+
"devDependencies": {
35+
"@tailwindcss/typography": "0.5.13",
36+
"@types/react": "18.3.3",
37+
"@types/react-dom": "18.3.0",
38+
"tailwindcss": "3.4.7",
39+
"typescript": "5.5.4"
40+
}
41+
}
File renamed without changes.

0 commit comments

Comments
Β (0)