Skip to content

Commit 12dda1a

Browse files
authored
Merge branch 'dev' into dev
2 parents dc51fbe + 273eab9 commit 12dda1a

File tree

1,325 files changed

+11943
-8570
lines changed

Some content is hidden

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

1,325 files changed

+11943
-8570
lines changed

.all-contributorsrc

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12660,7 +12660,7 @@
1266012660
"login": "mseidlx",
1266112661
"name": "Matthias Seidl",
1266212662
"avatar_url": "https://avatars.githubusercontent.com/u/32496674?v=4",
12663-
"profile": "https://growthepie.xyz",
12663+
"profile": "https://growthepie.com",
1266412664
"contributions": [
1266512665
"code"
1266612666
]
@@ -12782,6 +12782,52 @@
1278212782
"contributions": [
1278312783
"eventOrganizing"
1278412784
]
12785+
},
12786+
{
12787+
"login": "brossetti1",
12788+
"name": "Brian Rossetti",
12789+
"avatar_url": "https://avatars.githubusercontent.com/u/5998100?v=4",
12790+
"profile": "https://github.com/brossetti1",
12791+
"contributions": [
12792+
"maintenance",
12793+
"code"
12794+
]
12795+
},
12796+
{
12797+
"login": "Antoine-Sparenberg",
12798+
"name": "Antoine-Sparenberg",
12799+
"avatar_url": "https://avatars.githubusercontent.com/u/128523213?v=4",
12800+
"profile": "https://github.com/Antoine-Sparenberg",
12801+
"contributions": [
12802+
"maintenance"
12803+
]
12804+
},
12805+
{
12806+
"login": "kks-code",
12807+
"name": "Kendra Karol Sevilla",
12808+
"avatar_url": "https://avatars.githubusercontent.com/u/214244795?v=4",
12809+
"profile": "https://github.com/kks-code",
12810+
"contributions": [
12811+
"maintenance"
12812+
]
12813+
},
12814+
{
12815+
"login": "otc-png",
12816+
"name": "otc group",
12817+
"avatar_url": "https://avatars.githubusercontent.com/u/214395681?v=4",
12818+
"profile": "https://github.com/otc-png",
12819+
"contributions": [
12820+
"maintenance"
12821+
]
12822+
},
12823+
{
12824+
"login": "Savio-Sou",
12825+
"name": "Savio",
12826+
"avatar_url": "https://avatars.githubusercontent.com/u/72797635?v=4",
12827+
"profile": "https://github.com/Savio-Sou",
12828+
"contributions": [
12829+
"maintenance"
12830+
]
1278512831
}
1278612832
],
1278712833
"contributorsPerLine": 7,

.claude/commands/update-llms-txt.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Update LLMS.txt Command
2+
3+
This command helps maintain the `public/llms.txt` file by monitoring key navigation files:
4+
5+
1. **Main Navigation**: `src/components/Nav/useNavigation.ts`
6+
2. **Developer Docs**: `src/data/developer-docs-links.yaml`
7+
3. **Footer Links**: `src/components/Footer.tsx`
8+
9+
## How it works
10+
11+
- Adds missing links to appropriate sections
12+
- Preserves existing descriptions and organization
13+
- Follows established llms.txt structure
14+
- **Prefers static markdown files URLs over html URLs** for better LLM comprehension
15+
16+
## Implementation
17+
18+
When this command is executed, I will:
19+
20+
### Step 1: Parse Navigation Files
21+
22+
**Main Navigation** (`src/components/Nav/useNavigation.ts`):
23+
24+
```javascript
25+
// Extract linkSections object structure
26+
// Parse learn, use, build, participate sections
27+
// Get href, label, and description for each link
28+
```
29+
30+
**Developer Docs** (`src/data/developer-docs-links.yaml`):
31+
32+
```yaml
33+
# Parse foundational-topics, ethereum-stack, advanced, design-fundamentals
34+
# Extract href and id mappings
35+
# Build hierarchical structure
36+
```
37+
38+
**Footer Links** (`src/components/Footer.tsx`):
39+
40+
```javascript
41+
// Extract linkSections and dipperLinks arrays
42+
// Get all footer navigation items
43+
// Include external links (blog, ESP, Devcon)
44+
```
45+
46+
### Step 2: Analyze Current llms.txt
47+
48+
- Parse existing sections and their links
49+
- Extract current URLs and descriptions
50+
- Identify section organization and hierarchy
51+
52+
### Step 3: URL to Markdown File Mapping
53+
54+
**Priority: Static markdown files URLs over web html URLs**
55+
56+
For each link, I will:
57+
58+
1. Check if corresponding markdown file exists in `public/content/`. **Ignore translations**: Skip `public/content/translations/` directory (60+ language versions)
59+
2. Use a URL pointing to the markdown file for the page: `https://ethereum.org/content/[page]/index.md`
60+
3. Fall back to web URL only if no markdown file exists
61+
4. Example: `https://ethereum.org/learn/``https://ethereum.org/content/learn/index.md`
62+
5. Example2: `https://ethereum.org/guides/how-to-use-a-wallet/``https://ethereum.org/content/guides/how-to-use-a-wallet/index.md`
63+
64+
### Step 4: Smart Link Categorization
65+
66+
New links are categorized using these rules:
67+
68+
1. **Learn Section**: `/learn/`, `/what-is-*`, `/guides/`, `/quizzes/`, `/glossary/`
69+
2. **Use Section**: `/get-eth`, `/wallets/`, `/dapps/`, `/staking/`, use cases
70+
3. **Build Section**: `/developers/`, `/enterprise/`, developer tools
71+
4. **Participate Section**: `/community/`, `/contributing/`, `/foundation/`
72+
5. **Research Section**: `/whitepaper`, `/roadmap/`, `/eips/`, `/governance/`
73+
74+
### Step 5: Validation & Quality Checks
75+
76+
- Verify all markdown files exist in `public/content/`
77+
- Check for duplicate links within sections
78+
- Validate section organization and hierarchy
79+
- Ensure descriptions are informative and concise
80+
81+
### Step 6: Execute Action
82+
83+
Update llms.txt file with improved structure and validated links
84+
85+
---
86+
87+
The command ensures the llms.txt file remains comprehensive and current with minimal manual maintenance.

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ NEXT_PUBLIC_MATOMO_URL=
3131
NEXT_PUBLIC_MATOMO_SITE_ID=
3232

3333
# Used to avoid loading Matomo in our preview deploys
34-
IS_PREVIEW_DEPLOY=false
34+
NEXT_PUBLIC_IS_PREVIEW_DEPLOY=false
3535

3636
# Build pages only for the specified langs. Leave it empty to build all the langs
3737
# e.g. `en,fr` will only build English and French pages

.eslintrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|freelist|v8|process|async_hooks|http2|perf_hooks)(/.*|$)"
2525
],
2626
// Packages. `react` related packages come first.
27-
// Also, put `react-icons` in sorting order not with `react`
27+
// Also, put `react-*` in sorting order not with `react`
2828
["^react(?!-.)$", "^\\w", "^@\\w"],
2929
// From the `types` directory.
3030
["^@/lib/types", "^@/lib/interfaces"],
@@ -90,6 +90,7 @@
9090
"coverage/",
9191
"storybook-static/",
9292
"**/*.d.ts",
93-
"src/intl/"
93+
"src/intl/",
94+
"public/code-examples/"
9495
]
9596
}

.github/workflows/chromatic.yml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,8 @@ name: Chromatic Publish and Testing
66
# Event for the workflow
77
on:
88
pull_request:
9-
types:
10-
- opened
11-
- synchronize
12-
- ready_for_review
13-
paths:
14-
# Only run on file changes in any of these paths
15-
- "src/components/**/*"
16-
- "src/pages/**/*"
17-
- "src/layouts/**/*"
18-
- ".storybook/**/*"
19-
- "tailwind.config.ts"
20-
- "src/styles/**/*"
9+
branches: [master, staging, "test/**"]
10+
types: [opened, synchronize, ready_for_review]
2111

2212
# List of jobs
2313
jobs:
@@ -26,28 +16,35 @@ jobs:
2616
runs-on: ubuntu-latest
2717
# Job steps
2818
steps:
29-
# 👇 Version 2 of the action
3019
- name: Checkout repo
31-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
3221
with:
33-
fetch-depth: 0 # 👈 Required to retrieve git history
22+
fetch-depth: 0
23+
# Tells the checkout which commit hash to reference
24+
ref: ${{ github.event.pull_request.head.ref }}
25+
env:
26+
CHROMATIC_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}
27+
CHROMATIC_SHA: ${{ github.event.pull_request.head.sha || github.ref }}
28+
CHROMATIC_SLUG: ${{ github.repository }}
29+
3430
- name: Setup pnpm
3531
uses: pnpm/action-setup@v2
3632
with:
37-
version: 8
33+
version: 10
3834
- name: Setup Node.js
3935
uses: actions/setup-node@v3
4036
with:
4137
node-version: 20
42-
cache: 'pnpm'
38+
cache: "pnpm"
39+
4340
- name: Install deps
44-
# 👇 Install dependencies with the same package manager used in the project (replace it as needed), e.g. yarn, npm, pnpm
4541
run: pnpm install
42+
4643
- name: Publish to Chromatic
47-
# 👇 Adds Chromatic as a step in the workflow
4844
uses: chromaui/action@v1
49-
# Options required for Chromatic's GitHub Action
5045
with:
5146
projectToken: fee8e66c9916
5247
# 👇 Only fail if Storybook contains stories that error
5348
exitZeroOnChanges: true
49+
onlyChanged: true # enables TurboSnap
50+
zip: true

.github/workflows/claude.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Claude PR Assistant
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
issues:
9+
types: [opened, assigned]
10+
pull_request_review:
11+
types: [submitted]
12+
13+
jobs:
14+
claude-code-action:
15+
if: |
16+
(
17+
github.event_name == 'issue_comment' &&
18+
contains(github.event.comment.body, '@claude') &&
19+
contains('minimalsm,pettinarip,wackerow,corwintines,nloureiro,konopkja', github.event.comment.user.login)
20+
) ||
21+
(
22+
github.event_name == 'pull_request_review_comment' &&
23+
contains(github.event.comment.body, '@claude') &&
24+
contains('minimalsm,pettinarip,wackerow,corwintines,nloureiro,konopkja', github.event.comment.user.login)
25+
) ||
26+
(
27+
github.event_name == 'pull_request_review' &&
28+
contains(github.event.review.body, '@claude') &&
29+
contains('minimalsm,pettinarip,wackerow,corwintines,nloureiro,konopkja', github.event.review.user.login)
30+
) ||
31+
(
32+
github.event_name == 'issues' &&
33+
contains(github.event.issue.body, '@claude') &&
34+
contains('minimalsm,pettinarip,wackerow,corwintines,nloureiro,konopkja', github.event.issue.user.login)
35+
)
36+
runs-on: ubuntu-latest
37+
permissions:
38+
contents: read
39+
pull-requests: read
40+
issues: read
41+
id-token: write
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v4
45+
with:
46+
fetch-depth: 1
47+
48+
- name: Run Claude PR Action
49+
uses: anthropics/claude-code-action@beta
50+
with:
51+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
52+
timeout_minutes: "60"

.github/workflows/crowdin-ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,22 @@ jobs:
1818
- name: Check out code
1919
uses: actions/checkout@v3
2020

21+
- name: Setup pnpm
22+
uses: pnpm/action-setup@v2
23+
with:
24+
version: 10
25+
2126
- name: Set up Node.js
2227
uses: actions/setup-node@v3
2328
with:
24-
node-version: 18
29+
node-version: 20
30+
cache: 'pnpm'
2531

2632
- name: Install dependencies
27-
run: yarn install
33+
run: pnpm install
2834

2935
- name: Install ts-node
30-
run: yarn global add ts-node
36+
run: pnpm add -g ts-node
3137

3238
- name: Set up git
3339
run: |

.github/workflows/generate-review-report.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,22 @@ jobs:
1010
- name: Check out code
1111
uses: actions/checkout@v3
1212

13+
- name: Setup pnpm
14+
uses: pnpm/action-setup@v2
15+
with:
16+
version: 10
17+
1318
- name: Set up Node.js
1419
uses: actions/setup-node@v3
1520
with:
16-
node-version: 18
21+
node-version: 20
22+
cache: 'pnpm'
1723

1824
- name: Install dependencies
19-
run: yarn install
25+
run: pnpm install
2026

2127
- name: Install ts-node
22-
run: yarn global add ts-node
28+
run: pnpm add -g ts-node
2329

2430
- name: Run script
2531
run: npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/reports/generateReviewReport.ts

.github/workflows/get-crowdin-contributors.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,22 @@ jobs:
1212
- name: Check out code
1313
uses: actions/checkout@v3
1414

15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v2
17+
with:
18+
version: 10
19+
1520
- name: Set up Node.js
1621
uses: actions/setup-node@v3
1722
with:
18-
node-version: 18
23+
node-version: 20
24+
cache: 'pnpm'
1925

2026
- name: Install dependencies
21-
run: yarn install
27+
run: pnpm install
2228

2329
- name: Install ts-node
24-
run: yarn global add ts-node
30+
run: pnpm add -g ts-node
2531

2632
- name: Set up git
2733
run: |

.github/workflows/get-leaderboard-reports.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,22 @@ jobs:
1212
- name: Check out code
1313
uses: actions/checkout@v3
1414

15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v2
17+
with:
18+
version: 10
19+
1520
- name: Set up Node.js
1621
uses: actions/setup-node@v3
1722
with:
18-
node-version: 18
23+
node-version: 20
24+
cache: 'pnpm'
1925

2026
- name: Install dependencies
21-
run: yarn install
27+
run: pnpm install
2228

2329
- name: Install ts-node
24-
run: yarn global add ts-node
30+
run: pnpm add -g ts-node
2531

2632
- name: Set up git
2733
run: |

0 commit comments

Comments
 (0)