Skip to content

Commit d086260

Browse files
committed
Initialize Nextra → Starlight migration script
1 parent bc16df8 commit d086260

File tree

7 files changed

+1037
-1
lines changed

7 files changed

+1037
-1
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ pnpm-debug.log*
2121
# macOS-specific files
2222
.DS_Store
2323

24-
.vercel/
24+
.vercel/
25+
26+
nextra-migration/
27+
starlight-docs/

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const config = [
2626
"**/package-lock.json",
2727
"**/pnpm-lock.yaml",
2828
"**/public",
29+
"**/scripts/migration",
2930
],
3031
},
3132

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"type": "module",
44
"version": "0.0.1",
55
"scripts": {
6+
"migrate": "cd scripts/migration && pnpm install && pnpm migrate",
67
"dev": "astro dev",
78
"start": "astro dev",
89
"build": "astro build",

scripts/migration/package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "nextra-to-starlight-migration",
3+
"version": "1.0.0",
4+
"description": "Migration script to transform Nextra docs to Starlight format",
5+
"type": "module",
6+
"scripts": {
7+
"build": "tsc",
8+
"migrate": "npm run build && node dist/migrate.js",
9+
"test": "echo \"Error: no test specified\" && exit 1"
10+
},
11+
"keywords": [],
12+
"author": "",
13+
"license": "ISC",
14+
"dependencies": {
15+
"@types/node": "^22.13.1",
16+
"glob": "^11.0.1",
17+
"ts-morph": "^25.0.1",
18+
"typescript": "^5.7.3"
19+
}
20+
}

0 commit comments

Comments
 (0)