Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Formatting Check
on:
push:
branches:
- main
pull_request:

jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Check out code using Git
uses: actions/checkout@v4

- name: Check formatting with dprint
uses: dprint/[email protected]
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# build output
dist/

# generated types
.astro/

Expand All @@ -13,9 +12,13 @@ yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store

# jetbrains setting folder
.idea/
4 changes: 0 additions & 4 deletions .vscode/extensions.json

This file was deleted.

11 changes: 0 additions & 11 deletions .vscode/launch.json

This file was deleted.

51 changes: 39 additions & 12 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,44 @@
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import remarkAsides from "#scripts/asides.js";
import mdx from "@astrojs/mdx";
import expressiveCode from "astro-expressive-code";

import sitemap from "@astrojs/sitemap";
import { defineConfig, fontProviders } from "astro/config";
import remarkDirective from "remark-directive";

// https://astro.build/config
export default defineConfig({
site: "https://www.yanthomas.dev",
integrations: [tailwind(), expressiveCode({
theme: 'dracula'
}), mdx(), sitemap()],
experimental: {
assets: true
}
});
site: "https://yanthomas.dev",
integrations: [
expressiveCode({
themes: ["catppuccin-macchiato"],
styleOverrides: {
borderRadius: "0",
uiFontFamily: "var(--font-space-mono)",
uiFontSize: "var(--font-size--2)",
codeFontFamily: "var(--font-space-mono)",
codeFontSize: "var(--font-size--2)",
},
}),
mdx(),
],
markdown: {
remarkPlugins: [remarkDirective, remarkAsides],
},
prefetch: {
prefetchAll: true,
defaultStrategy: "viewport",
},
experimental: {
contentIntellisense: true,
svgo: true,
clientPrerender: true,
fonts: [{
provider: fontProviders.google(),
name: "Space Mono",
cssVariable: "--font-space-mono",
weights: ["400", "700"],
styles: ["normal", "italic"],
subsets: ["latin"],
fallbacks: ["monospace"],
}],
},
});
17 changes: 17 additions & 0 deletions dprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"useTabs": true,
"indentWidth": 4,
"excludes": [
"**/node_modules",
"**/*-lock.json"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.95.13.wasm",
"https://plugins.dprint.dev/json-0.21.0.wasm",
"https://plugins.dprint.dev/markdown-0.20.0.wasm",
"https://plugins.dprint.dev/toml-0.7.0.wasm",
"https://plugins.dprint.dev/g-plane/malva-v0.15.1.wasm",
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.25.1.wasm",
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm"
]
}
48 changes: 28 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
{
"name": "",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^0.19.7",
"@astrojs/sitemap": "^2.0.1",
"@astrojs/tailwind": "^4.0.0",
"@tailwindcss/typography": "^0.5.9",
"astro": "^2.7.2",
"astro-expressive-code": "^0.19.0",
"tailwindcss": "^3.0.24"
}
}
"name": "@yanthomasdev/website",
"type": "module",
"version": "2.0.0",
"private": true,
"scripts": {
"dev": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"format": "dprint fmt"
},
"imports": {
"#*": "./src/*"
},
"dependencies": {
"@astrojs/check": "^0.9.6",
"@astrojs/mdx": "^4.3.12",
"astro": "^5.16.4",
"astro-expressive-code": "^0.38.3",
"hastscript": "^9.0.1",
"remark-directive": "^3.0.1",
"typescript": "^5.9.3",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"dprint": "^0.50.2"
},
"packageManager": "[email protected]+sha1.e0b68270e89c817ff88b7be62466a2128c53af02"
}
Loading