Skip to content

Commit 7da900b

Browse files
authored
Merge pull request #65 from RustLangES/migrate-astro
2 parents a76a20c + 2c4b24e commit 7da900b

79 files changed

Lines changed: 8369 additions & 15901 deletions

Some content is hidden

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

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf

.gitignore

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# build output
22
dist/
3+
34
# generated types
4-
.nuxt/
5-
.output/
6-
.vscode/
5+
.astro/
76

87
# dependencies
98
node_modules/
@@ -23,8 +22,5 @@ pnpm-debug.log*
2322

2423
# jetbrains setting folder
2524
.idea/
26-
27-
# wrangler files
28-
.wrangler
29-
.dev.vars
30-
25+
bun.lock
26+
pnpm-lock.yaml

.prettierrc.mjs

Lines changed: 0 additions & 14 deletions
This file was deleted.

.vscode/extensions.json

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

app.vue

Lines changed: 0 additions & 8 deletions
This file was deleted.

assets/css/app.css

Lines changed: 0 additions & 154 deletions
This file was deleted.

astro.config.mjs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// @ts-check
2+
3+
import mdx from "@astrojs/mdx"
4+
import tailwindcss from "@tailwindcss/vite"
5+
import { defineConfig } from "astro/config"
6+
import Icons from "unplugin-icons/vite"
7+
8+
// https://astro.build/config
9+
export default defineConfig({
10+
vite: {
11+
plugins: [
12+
tailwindcss(),
13+
Icons({
14+
compiler: "astro",
15+
}),
16+
],
17+
},
18+
19+
integrations: [
20+
mdx({
21+
syntaxHighlight: "shiki",
22+
shikiConfig: { theme: "dracula" },
23+
remarkRehype: { footnoteLabel: "Footnotes" },
24+
gfm: true,
25+
}),
26+
],
27+
})

biome.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "tab",
14+
"lineWidth": 120,
15+
"lineEnding": "lf"
16+
},
17+
"css": {
18+
"parser": {
19+
"tailwindDirectives": true
20+
}
21+
},
22+
"linter": {
23+
"enabled": true,
24+
"rules": {
25+
"recommended": true,
26+
"suspicious": {
27+
"noExplicitAny": "warn",
28+
"noConsole": "warn"
29+
},
30+
"style": {
31+
"noRestrictedImports": {
32+
"level": "error",
33+
"options": {
34+
"patterns": [
35+
{
36+
"group": ["../**"],
37+
"message": "Avoid relative imports with '../'"
38+
}
39+
]
40+
}
41+
}
42+
}
43+
}
44+
},
45+
"javascript": {
46+
"formatter": {
47+
"quoteStyle": "double",
48+
"semicolons": "asNeeded"
49+
}
50+
},
51+
"assist": {
52+
"enabled": true,
53+
"actions": {
54+
"source": {
55+
"organizeImports": "on"
56+
}
57+
}
58+
},
59+
"overrides": [
60+
{
61+
"includes": ["**/*.astro", "**/*.tsx"],
62+
"linter": {
63+
"rules": {
64+
"style": {
65+
"useConst": "off",
66+
"useImportType": "off"
67+
},
68+
"correctness": {
69+
"noUnusedVariables": "off",
70+
"noUnusedImports": "off"
71+
}
72+
}
73+
}
74+
}
75+
]
76+
}

bun.lockb

-434 KB
Binary file not shown.

components/CodeMirror.vue

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)