Skip to content

Commit d9e081e

Browse files
committed
Add v2 code
1 parent 767d333 commit d9e081e

22 files changed

Lines changed: 6535 additions & 3490 deletions

.github/workflows/format.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Formatting Check
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
8+
jobs:
9+
format:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out code using Git
13+
uses: actions/checkout@v4
14+
15+
- name: Check formatting with dprint
16+
uses: dprint/check@v2.3

.vscode/extensions.json

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

.vscode/launch.json

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

README.md

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

astro.config.mjs

Lines changed: 42 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,44 @@
1-
// @ts-check
2-
// @ts-check
3-
import { defineConfig } from 'astro/config';
1+
import remarkAsides from "#scripts/asides.js";
2+
import mdx from "@astrojs/mdx";
3+
import expressiveCode from "astro-expressive-code";
4+
import { defineConfig, fontProviders } from "astro/config";
5+
import remarkDirective from "remark-directive";
46

57
// https://astro.build/config
6-
export default defineConfig({});
8+
export default defineConfig({
9+
site: "https://yanthomas.dev",
10+
integrations: [
11+
expressiveCode({
12+
themes: ["catppuccin-macchiato"],
13+
styleOverrides: {
14+
borderRadius: "0",
15+
uiFontFamily: "var(--font-space-mono)",
16+
uiFontSize: "var(--font-size--2)",
17+
codeFontFamily: "var(--font-space-mono)",
18+
codeFontSize: "var(--font-size--2)",
19+
},
20+
}),
21+
mdx(),
22+
],
23+
markdown: {
24+
remarkPlugins: [remarkDirective, remarkAsides],
25+
},
26+
prefetch: {
27+
prefetchAll: true,
28+
defaultStrategy: "viewport",
29+
},
30+
experimental: {
31+
contentIntellisense: true,
32+
svgo: true,
33+
clientPrerender: true,
34+
fonts: [{
35+
provider: fontProviders.google(),
36+
name: "Space Mono",
37+
cssVariable: "--font-space-mono",
38+
weights: ["400", "700"],
39+
styles: ["normal", "italic"],
40+
subsets: ["latin"],
41+
fallbacks: ["monospace"],
42+
}],
43+
},
44+
});

dprint.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"useTabs": true,
3+
"indentWidth": 4,
4+
"excludes": [
5+
"**/node_modules",
6+
"**/*-lock.json"
7+
],
8+
"plugins": [
9+
"https://plugins.dprint.dev/typescript-0.95.13.wasm",
10+
"https://plugins.dprint.dev/json-0.21.0.wasm",
11+
"https://plugins.dprint.dev/markdown-0.20.0.wasm",
12+
"https://plugins.dprint.dev/toml-0.7.0.wasm",
13+
"https://plugins.dprint.dev/g-plane/malva-v0.15.1.wasm",
14+
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.25.1.wasm",
15+
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm"
16+
]
17+
}

package.json

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
11
{
2-
"name": "",
3-
"type": "module",
4-
"version": "0.0.1",
5-
"scripts": {
6-
"dev": "astro dev",
7-
"build": "astro check && astro build",
8-
"preview": "astro preview",
9-
"astro": "astro"
10-
},
11-
"dependencies": {
12-
"astro": "^5.0.0-beta.8",
13-
"@astrojs/check": "^0.9.4",
14-
"typescript": "^5.6.3"
15-
},
16-
"packageManager": "pnpm@8.10.2+sha1.e0b68270e89c817ff88b7be62466a2128c53af02"
2+
"name": "@yanthomasdev/website",
3+
"type": "module",
4+
"version": "2.0.0",
5+
"private": true,
6+
"scripts": {
7+
"dev": "astro dev",
8+
"build": "astro check && astro build",
9+
"preview": "astro preview",
10+
"format": "dprint fmt"
11+
},
12+
"imports": {
13+
"#*": "./src/*"
14+
},
15+
"dependencies": {
16+
"@astrojs/check": "^0.9.6",
17+
"@astrojs/mdx": "^4.3.12",
18+
"astro": "^5.16.4",
19+
"astro-expressive-code": "^0.38.3",
20+
"hastscript": "^9.0.1",
21+
"remark-directive": "^3.0.1",
22+
"typescript": "^5.9.3",
23+
"unist-util-visit": "^5.0.0"
24+
},
25+
"devDependencies": {
26+
"dprint": "^0.50.2"
27+
},
28+
"packageManager": "pnpm@8.10.2+sha1.e0b68270e89c817ff88b7be62466a2128c53af02"
1729
}

0 commit comments

Comments
 (0)