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
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
pull_request:
push:
branches:
- main

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

env:
FORCE_COLOR: 2
NODE: 24

jobs:
ci:
name: Lint, type check & build
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v7

- name: Install pnpm and Node.js
uses: pnpm/setup@c9883cc79df532ad1a7b81bf9ab944ceb090d65c # v2.0.0
with:
runtime: node@${{ env.NODE }}
cache: true

- name: Install dependencies
run: pnpm install

- name: Type check
run: pnpm check

- name: Lint
run: pnpm lint

- name: Build
run: pnpm build
40 changes: 40 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CodeQL

on:
push:
branches:
- main
pull_request:

concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language:
- javascript-typescript
steps:
- name: Checkout repository
uses: actions/checkout@v7

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Type check
run: pnpm check

- name: Lint
run: pnpm lint

- name: Build site
run: pnpm build

Expand Down
4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
18 changes: 9 additions & 9 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
23 changes: 23 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
## Blog publishing workflow — German source, English publication

Blog articles are written in **German** as local drafts and **published in English
only**. German is NEVER rendered on the website — it only ever lives as source
files outside the content collection.

- German originals live in `notes/de/<slug>.md` **outside this repo** in the
private workspace, tracked in the
workspace backup git repo. They are never part of this (public) repository
and never rendered: the content collection in `content.config.ts` only loads
`src/content/blog/`. The German filename is the **English slug** of the
eventual post (mapping by same basename, 1:1). The German title is the
content's heading, NOT the filename.
- English translations live in `src/content/blog/<slug>.md`. Publish states:
- `draft: true` → English translation in progress, visible only in
`astro dev`, excluded from the static build (all routes already filter
`data.draft !== true` in production).
- no `draft` (or `draft: false`) → published.
- Workflow: write DE source in `notes/de/` (workspace) → translate to EN →
create the EN file with `draft: true` in `src/content/blog/` → on approval
remove the `draft` field.
- Renaming an English slug requires renaming the German source file too.

## Development

When starting the dev server, use background mode:
Expand Down
14 changes: 12 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
// @ts-check
import { defineConfig } from 'astro/config';

import sitemap from "@astrojs/sitemap";
import { defineConfig } from "astro/config";

// https://astro.build/config
export default defineConfig({});
export default defineConfig({
site: "https://svgforge.github.io",
integrations: [sitemap()],
markdown: {
shikiConfig: {
theme: "github-dark",
},
},
});
27 changes: 27 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://biomejs.dev/schemas/2.5.13/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"linter": {
"enabled": true,
"rules": {
"preset": "recommended"
}
},
"overrides": [
{
"includes": ["**/*.astro"],
"linter": {
"rules": {
"correctness": {
"noUnusedVariables": "off",
"noUnusedImports": "off"
}
}
}
}
]
}
48 changes: 28 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
{
"name": "svgforge.github.io",
"type": "module",
"version": "0.0.1",
"packageManager": "pnpm@11.25.0",
"engines": {
"node": ">=22.12.0"
},
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"astro": "^7.3.1"
},
"allowScripts": {
"esbuild": true
}
}
"name": "svgforge.github.io",
"type": "module",
"version": "0.0.1",
"packageManager": "pnpm@11.25.0",
"engines": {
"node": ">=22.12.0"
},
"scripts": {
"dev": "astro dev",
"build": "astro build",
"check": "astro check",
"lint": "biome ci .",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"@astrojs/sitemap": "^3.7.4",
"astro": "^7.3.2"
},
"allowScripts": {
"esbuild": true
},
"devDependencies": {
"@astrojs/check": "^0.9.10",
"@biomejs/biome": "^2.5.13",
"typescript": "^6.0.3"
}
}
Loading
Loading