Skip to content

Commit

Permalink
feat(starlight): start structure for the migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayc0 committed Aug 18, 2024
1 parent 90f910a commit 64a2065
Show file tree
Hide file tree
Showing 8 changed files with 3,669 additions and 135 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ yarn-error.log*
next-env.d.ts

.contentlayer

# Astro
/.astro
/dist
16 changes: 16 additions & 0 deletions astro.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";

// https://astro.build/config
export default defineConfig({
srcDir: "./astro",
integrations: [
starlight({
// https://starlight.astro.build/reference/configuration
title: "Ada URL",
social: {
github: "https://github.com/ada-url/ada",
},
}),
],
});
6 changes: 6 additions & 0 deletions astro/content/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineCollection } from "astro:content";
import { docsSchema } from "@astrojs/starlight/schema";

export const collections = {
docs: defineCollection({ schema: docsSchema() }),
};
8 changes: 8 additions & 0 deletions astro/content/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: "Ada URL Parser - Fast WHATWG Compliant URL parser"
description: WHATWG Compliant URL parser written with focus on compliance, performance and security across multiple platforms and languages.
template: splash
next: false
---

Meet Ada: WHATWG Compliant URL Parser
1 change: 1 addition & 0 deletions astro/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference path="../.astro/types.d.ts" />
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"dev-astro": "astro dev",
"build-astro": "astro build",
"lint": "biome check . && biome format .",
"lint-fix": "biome check . --write --unsafe && biome format . --write"
},
"dependencies": {
"@astrojs/starlight": "^0.26.1",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-aspect-ratio": "^1.0.3",
"@radix-ui/react-collapsible": "^1.0.3",
Expand All @@ -24,6 +27,7 @@
"@types/react": "18.2.24",
"@types/react-dom": "18.2.8",
"@vercel/analytics": "^1.0.2",
"astro": "^4.14.2",
"autoprefixer": "10.4.16",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
Expand Down
3,763 changes: 3,628 additions & 135 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// <reference path="../astro/.astro/types.d.ts" />
/// <reference path="../.astro/types.d.ts" />

0 comments on commit 64a2065

Please sign in to comment.