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
41 changes: 41 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# GitHub Copilot Instructions

## Project Overview
This is a personal homepage/blog built with Eleventy (11ty) static site generator.

### Tech Stack
- **Static Site Generator**: Eleventy v3
- **Styling**: TailwindCSS with Typography plugin
- **Templating**: Nunjucks (primary), Markdown
- **Build Tools**: PostCSS, Autoprefixer, cssnano
- **Linting**: ESLint with Stylistic plugin, Prettier

### Project Structure
- `src/` - Source files (posts, pages, templates, styles, data)
- `_site/` - Generated static site output
- `src/_includes/` - Nunjucks layouts and partials
- `src/_11ty/` - Eleventy plugins and custom filters
- `src/_data/` - Global data files
- `src/posts/` - Blog posts in Markdown
- `src/pages/` - Static pages
- `src/styles/` - TailwindCSS source files

## Code Style and Conventions

### General Guidelines
- Use German for content, comments can be in German or English
- Follow existing code patterns and naming conventions
- Use semicolons in JavaScript
- Use single quotes for strings unless template literals are needed

### File Naming
- Use kebab-case for markdown files (e.g., `mein-blog-post.md`)
- Use snake_case for JavaScript utility modules (e.g., `post_url.js`)
- Use kebab-case for CSS files

## Don't
- Don't modify generated files in `_site/` directory
- Don't use ES modules syntax (use CommonJS)
- Don't add dependencies without considering build size
- Don't bypass TailwindCSS for custom CSS unless necessary
- Don't commit node_modules or _site directories
7 changes: 6 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
directory: /
schedule:
interval: monthly
open-pull-requests-limit: 0
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
open-pull-requests-limit: 0
19 changes: 15 additions & 4 deletions .github/workflows/build-prs-to-main.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
name: Build code

on:
workflow_dispatch:
pull_request:
branches:
- main

permissions:
contents: read

jobs:
pr-build:
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies and build
node-version-file: ".nvmrc"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Run linting and formatting
run: |
npm ci
npm run lint
npm run prettier
npm run build

- name: Build site
run: npm run build
19 changes: 15 additions & 4 deletions .github/workflows/deploy-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,31 @@ on:
jobs:
github-pages:
runs-on: ubuntu-22.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies and build
node-version-file: ".nvmrc"
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Run linting and formatting
run: |
npm ci
npm run lint
npm run prettier
npm run build

- name: Build site
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down