Skip to content
Open
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
8 changes: 5 additions & 3 deletions .github/copilot-instructions.md → .github/GEMINI.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copilot Instructions for Next.js Static Blog & Portfolio
# Gemini Instructions for Next.js Static Blog & Portfolio

## Architecture Overview

Expand Down Expand Up @@ -88,7 +88,7 @@ demo: "https://demo-url.com" # Optional
**Typography hierarchy**:

- Body text: `Inter` (via CSS `font-family`)
- Headings: `Syne` (via CSS h1-h6 selectors)
- Headings: `Syne` (via CSS h1-6 selectors)
- Content: `@tailwindcss/typography` for markdown rendering

**Theme system**: Uses `next-themes` with `darkMode: "class"` and CSS custom properties for consistent theming.
Expand Down Expand Up @@ -127,9 +127,11 @@ demo: "https://demo-url.com" # Optional

```bash
# Creates /blog/new-post route (after running `npm run build` – routes are generated during the SSG build phase)

echo "---\ntitle: \"New Post\"\ndate: \"$(date +%Y-%m-%d)\"\nexcerpt: \"Description\"\n---\n\nContent here..." > content/blog/new-post.md

# Creates /projects/new-project route automatically

echo "---\ntitle: \"New Project\"\ndate: \"$(date +%Y-%m-%d)\"\nexcerpt: \"Description\"\ntags: [\"React\"]\n---\n\nContent here..." > content/projects/new-project.md
```

Expand Down Expand Up @@ -174,7 +176,7 @@ PR to `main` triggers automatic:
**Typography System**:

- Body text: `Inter` font via CSS `font-family`
- Headings: `Syne` font via CSS h1-h6 selectors
- Headings: `Syne` font via CSS h1-6 selectors
- Content rendering: `@tailwindcss/typography` prose classes
- Code highlighting: `rehype-highlight` with syntax highlighting

Expand Down
26 changes: 18 additions & 8 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,22 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"
cache: "pnpm"

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Run linter
run: npm run lint
run: pnpm run lint

e2e-tests:
name: E2E Tests
Expand All @@ -34,20 +39,25 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"
cache: "pnpm"

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Install Playwright browsers
run: npx playwright install --with-deps
run: pnpm exec playwright install --with-deps

- name: Run E2E tests
run: npm run test:e2e:github
run: pnpm run test:e2e:github

- name: Upload test results
uses: actions/upload-artifact@v4
Expand All @@ -58,4 +68,4 @@ jobs:
playwright-report/
test-results/
test-results.json
retention-days: 30
retention-days: 30
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# testing
/coverage
/playwright-report

# next.js
/.next/
Expand Down
Loading
Loading