Skip to content

Commit 83c0fe9

Browse files
authored
Merge pull request #8 from benthecoder/bneo/code-cleanup
cleanup
2 parents 72d91d1 + fd68f28 commit 83c0fe9

Some content is hidden

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

74 files changed

+10438
-1252
lines changed

.env.example

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Anthropic API Key for Claude chat interface
2+
# Get yours at: https://console.anthropic.com/
3+
ANTHROPIC_API_KEY=your_anthropic_api_key_here
4+
5+
# VoyageAI API Key for generating embeddings
6+
# Get yours at: https://www.voyageai.com/
7+
VOYAGE_AI_API_KEY=your_voyage_ai_api_key_here
8+
9+
# Neon PostgreSQL Database URL (main database for blog content chunks)
10+
# Format: postgresql://user:password@host/database?sslmode=require
11+
DATABASE_URL=postgresql://user:password@host/database?sslmode=require
12+
13+
# Tweet Database URL (if using tweets feature)
14+
TWEET_DATABASE_URL=postgresql://user:password@host/database?sslmode=require

.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "next/core-web-vitals",
3+
"rules": {
4+
"@next/next/no-html-link-for-pages": "off"
5+
}
6+
}

.github/workflows/generate-embeddings.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Generate Blog Post Embeddings
33
on:
44
push:
55
paths:
6-
- 'posts/*.md'
6+
- "posts/*.md"
77
branches:
88
- main # or your default branch
99

@@ -24,8 +24,8 @@ jobs:
2424
- name: Setup Node.js
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: '18'
28-
cache: 'npm'
27+
node-version: "18"
28+
cache: "npm"
2929

3030
- name: Install dependencies
3131
run: npm ci
@@ -34,7 +34,7 @@ jobs:
3434
id: changed-files
3535
uses: tj-actions/changed-files@v41
3636
with:
37-
files: 'posts/*.md'
37+
files: "posts/*.md"
3838

3939
- name: Generate embeddings for changed files
4040
if: steps.changed-files.outputs.any_changed == 'true'

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ drafts
4343
public/robots.txt
4444
public/sitemap*
4545

46-
CLAUDE.md
46+
AGENTS.md
47+
CLAUDE.md

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.prettierignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
node_modules
2+
.next
3+
out
4+
build
5+
dist
6+
*.min.js
7+
package-lock.json
8+
pnpm-lock.yaml
9+
.env
10+
.env.local
11+
public
12+
*.md

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "es5",
4+
"singleQuote": false,
5+
"printWidth": 80,
6+
"tabWidth": 2,
7+
"arrowParens": "always"
8+
}

0 commit comments

Comments
 (0)