Skip to content

Commit 4b08912

Browse files
authored
Merge pull request #2 from yanthomasdev/v2
Refresh website
2 parents b8a2a3a + d9e081e commit 4b08912

Some content is hidden

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

41 files changed

+6536
-4472
lines changed

.gitattributes

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

.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

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# build output
22
dist/
3-
43
# generated types
54
.astro/
65

@@ -13,9 +12,13 @@ yarn-debug.log*
1312
yarn-error.log*
1413
pnpm-debug.log*
1514

15+
1616
# environment variables
1717
.env
1818
.env.production
1919

2020
# macOS-specific files
2121
.DS_Store
22+
23+
# jetbrains setting folder
24+
.idea/

.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.

astro.config.mjs

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,44 @@
1-
import { defineConfig } from 'astro/config';
2-
import tailwind from "@astrojs/tailwind";
1+
import remarkAsides from "#scripts/asides.js";
32
import mdx from "@astrojs/mdx";
43
import expressiveCode from "astro-expressive-code";
5-
6-
import sitemap from "@astrojs/sitemap";
4+
import { defineConfig, fontProviders } from "astro/config";
5+
import remarkDirective from "remark-directive";
76

87
// https://astro.build/config
98
export default defineConfig({
10-
site: "https://www.yanthomas.dev",
11-
integrations: [tailwind(), expressiveCode({
12-
theme: 'dracula'
13-
}), mdx(), sitemap()],
14-
experimental: {
15-
assets: true
16-
}
17-
});
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: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
{
2-
"name": "",
3-
"type": "module",
4-
"version": "0.0.1",
5-
"scripts": {
6-
"dev": "astro dev",
7-
"start": "astro dev",
8-
"build": "astro build",
9-
"preview": "astro preview",
10-
"astro": "astro"
11-
},
12-
"dependencies": {
13-
"@astrojs/mdx": "^0.19.7",
14-
"@astrojs/sitemap": "^2.0.1",
15-
"@astrojs/tailwind": "^4.0.0",
16-
"@tailwindcss/typography": "^0.5.9",
17-
"astro": "^2.7.2",
18-
"astro-expressive-code": "^0.19.0",
19-
"tailwindcss": "^3.0.24"
20-
}
21-
}
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"
29+
}

0 commit comments

Comments
 (0)