Skip to content

Commit cc0012e

Browse files
Ayc0anonrig
authored andcommitted
feat(starlight): start structure for the migration
1 parent 90f910a commit cc0012e

File tree

8 files changed

+3669
-135
lines changed

8 files changed

+3669
-135
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ yarn-error.log*
3535
next-env.d.ts
3636

3737
.contentlayer
38+
39+
# Astro
40+
/.astro
41+
/dist

astro.config.mts

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { defineConfig } from "astro/config";
2+
import starlight from "@astrojs/starlight";
3+
4+
// https://astro.build/config
5+
export default defineConfig({
6+
srcDir: "./astro",
7+
integrations: [
8+
starlight({
9+
// https://starlight.astro.build/reference/configuration
10+
title: "Ada URL",
11+
social: {
12+
github: "https://github.com/ada-url/ada",
13+
},
14+
}),
15+
],
16+
});

astro/content/config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { defineCollection } from "astro:content";
2+
import { docsSchema } from "@astrojs/starlight/schema";
3+
4+
export const collections = {
5+
docs: defineCollection({ schema: docsSchema() }),
6+
};

astro/content/docs/index.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "Ada URL Parser - Fast WHATWG Compliant URL parser"
3+
description: WHATWG Compliant URL parser written with focus on compliance, performance and security across multiple platforms and languages.
4+
template: splash
5+
next: false
6+
---
7+
8+
Meet Ada: WHATWG Compliant URL Parser

astro/env.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference path="../.astro/types.d.ts" />

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9+
"dev-astro": "astro dev",
10+
"build-astro": "astro build",
911
"lint": "biome check . && biome format .",
1012
"lint-fix": "biome check . --write --unsafe && biome format . --write"
1113
},
1214
"dependencies": {
15+
"@astrojs/starlight": "^0.26.1",
1316
"@radix-ui/react-accordion": "^1.1.2",
1417
"@radix-ui/react-aspect-ratio": "^1.0.3",
1518
"@radix-ui/react-collapsible": "^1.0.3",
@@ -24,6 +27,7 @@
2427
"@types/react": "18.2.24",
2528
"@types/react-dom": "18.2.8",
2629
"@vercel/analytics": "^1.0.2",
30+
"astro": "^4.14.2",
2731
"autoprefixer": "10.4.16",
2832
"class-variance-authority": "^0.7.0",
2933
"clsx": "^2.0.0",

pnpm-lock.yaml

+3,628-135
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/env.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/// <reference path="../astro/.astro/types.d.ts" />
2+
/// <reference path="../.astro/types.d.ts" />

0 commit comments

Comments
 (0)