Skip to content

Commit 1101241

Browse files
authored
Merge branch 'main' into nb-main-parameterise-cloning-contrib-docs
2 parents 187e299 + df24b0f commit 1101241

File tree

1,274 files changed

+24234
-8677
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,274 files changed

+24234
-8677
lines changed

.github/workflows/beta_deploy.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,18 @@ jobs:
1818
build-deploy:
1919
runs-on: ubuntu-latest
2020
steps:
21-
21+
- uses: actions/setup-node@v6.3.0
22+
with:
23+
node-version: 22.22.x
2224
- name: Checkout your repository using git
2325
uses: actions/checkout@v4
24-
25-
- name: Install, build, and upload your site output
26-
env:
27-
NODE_OPTIONS: "--max_old_space_size=4096"
28-
uses: withastro/action@v2
29-
30-
- name: Deploy to Netlify
31-
uses: nwtgck/actions-netlify@v3.0
26+
- name: Install dependencies
27+
run: npm ci
28+
- name: Build website
29+
run: npm run build
30+
- name: Deploy to Cloudflare Workers
31+
uses: cloudflare/wrangler-action@v3
3232
with:
33-
publish-dir: './dist'
34-
production-branch: "2.0"
35-
github-token: ${{ secrets.GITHUB_TOKEN }}
36-
deploy-message: "Deploy from GitHub Actions"
37-
enable-pull-request-comment: false
38-
enable-commit-comment: false
39-
overwrites-pull-request-comment: false
40-
env:
41-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
42-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
33+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
34+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
35+
environment: beta

.github/workflows/deploy.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,20 @@ permissions:
1515
id-token: write
1616

1717
jobs:
18-
build:
18+
build-deploy:
1919
runs-on: ubuntu-latest
2020
steps:
21+
- uses: actions/setup-node@v6.3.0
22+
with:
23+
node-version: 22.22.x
2124
- name: Checkout your repository using git
2225
uses: actions/checkout@v4
23-
- name: Install, build, and upload your site output
24-
env:
25-
NODE_OPTIONS: "--max_old_space_size=4096"
26-
uses: withastro/action@v2
27-
28-
deploy:
29-
needs: build
30-
runs-on: ubuntu-latest
31-
environment:
32-
name: github-pages
33-
url: ${{ steps.deployment.outputs.page_url }}
34-
steps:
35-
- name: Deploy to GitHub Pages
36-
id: deployment
37-
uses: actions/deploy-pages@v4
26+
- name: Install dependencies
27+
run: npm ci
28+
- name: Build website
29+
run: npm run build
30+
- name: Deploy to Cloudflare Workers
31+
uses: cloudflare/wrangler-action@v3
32+
with:
33+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
34+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

.github/workflows/test.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
steps:
1313
- name: Checkout your repository using git
1414
uses: actions/checkout@v4
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '22'
1519
- name: Install dependencies
1620
run: npm ci
1721
- name: Test
@@ -21,6 +25,10 @@ jobs:
2125
steps:
2226
- name: Checkout your repository using git
2327
uses: actions/checkout@v4
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: '22'
2432
- name: Install dependencies
2533
run: npm ci
2634
- name: Lint
@@ -30,6 +38,10 @@ jobs:
3038
steps:
3139
- name: Checkout your repository using git
3240
uses: actions/checkout@v4
41+
- name: Setup Node.js
42+
uses: actions/setup-node@v4
43+
with:
44+
node-version: '22'
3345
- name: Install dependencies
3446
run: npm ci
3547
- name: Typecheck
@@ -40,6 +52,10 @@ jobs:
4052
steps:
4153
- name: Checkout your repository using git
4254
uses: actions/checkout@v4
55+
- name: Setup Node.js
56+
uses: actions/setup-node@v4
57+
with:
58+
node-version: '22'
4359
- name: Install dependencies
4460
run: npm ci
4561
- name: Build

.github/workflows/translation-sync.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
- 'src/content/tutorials/en/**'
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read
13+
issues: write
14+
pull-requests: read
15+
1116
jobs:
1217
track-translation-changes:
1318
runs-on: ubuntu-latest

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ playwright-report/
2929
test-results/
3030

3131
# Don't commit custom dev builds
32-
public/p5.min.js
32+
public/p5.min.js
33+
34+
.zed

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Force npm to fail (not just warn) if the node.js version in "engines" isn't met
2+
engine-strict=true

astro.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export default defineConfig({
8181
},
8282
markdown: {
8383
shikiConfig: {
84-
theme: 'github-light',
84+
theme: 'github-light-high-contrast',
8585
},
8686
},
8787
});

docs/localization_hi.md

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
# Hindi (हिन्दी) Localization Guide
2+
3+
This document contains the standardized Hindi translations for technical and p5.js-specific terms used across the p5.js website. Translators should refer to this glossary to maintain consistency.
4+
5+
For the general localization architecture, see [localization.md](./localization.md).
6+
7+
## Programming-Specific Terms
8+
9+
| English | Hindi (हिन्दी) |
10+
| --- | --- |
11+
| array | सरणी |
12+
| asynchronous | अतुल्यकालिक |
13+
| attribute | गुण |
14+
| blob tracking | बूँद ट्रैकिंग |
15+
| boolean | बूलियन |
16+
| byte | बाइट |
17+
| callback | कॉलबैक |
18+
| camera frustrum | कैमरा दृष्टिकोण |
19+
| changelog | परिवर्तन लॉग |
20+
| class | क्लास |
21+
| code editor | कोड संपादक |
22+
| color space | रंग स्थान |
23+
| command line | कमांड लाइन |
24+
| comment | टिप्पणी |
25+
| compile | संकलन |
26+
| component | अवयव |
27+
| conditionals | शर्तें |
28+
| console | कंसोल |
29+
| constant | स्थिरांक |
30+
| constructor function | कंस्ट्रक्टर फ़ंक्शन |
31+
| control statement | नियंत्रण कथन |
32+
| coordinate | निर्देशांक |
33+
| curly brace | घुंघराले कोष्ठक |
34+
| debug | डीबग |
35+
| default value | डिफ़ॉल्ट मान |
36+
| deprecated | पदावनत |
37+
| depth | गहराई |
38+
| error | गलती |
39+
| event | आयोजन |
40+
| fields | फील्ड |
41+
| file | दस्तावेज़ |
42+
| floating-point number | चल बिन्दु संख्या |
43+
| framework | रूपरेखा |
44+
| function | कार्य |
45+
| functional programming | कार्यात्मक कार्यरचना |
46+
| HTML | एचटीएमएल |
47+
| HTML tag | एचटीएमएल टैग |
48+
| indent | मांगपत्र |
49+
| index | अनुक्रमणिका |
50+
| iteration | पुनरावर्तन |
51+
| matrix | आव्यूह |
52+
| minify | छोटा करना |
53+
| modelview | मॉडलव्यू |
54+
| motion detection | गति का पता लगाना |
55+
| noise | शोर |
56+
| object | ऑब्जेक्ट |
57+
| object oriented programming | ऑब्जेक्ट ओरिएंटेड प्रोग्रामिंग |
58+
| operator | ऑपरेटर |
59+
| optimize | अनुकूलन |
60+
| optional argument | वैकल्पिक तर्क |
61+
| parameter/argument | पैरामीटर/तर्क |
62+
| parentheses | कोष्टक |
63+
| pixel | पिक्सेल |
64+
| programming library | प्रोग्रामिंग (कंप्यूटिंग) लाइब्रेरी |
65+
| radian | कांति |
66+
| raster | रेखापुंज |
67+
| recursion | प्रत्यावर्तन |
68+
| reference/documentation | संदर्भ/दस्तावेज़ीकरण |
69+
| render/rendering | प्रस्तुत करना/प्रतिपादन करना |
70+
| repository | कोष |
71+
| return | वापसी विवरण |
72+
| scope | दायरा |
73+
| screen | पर्दा |
74+
| server | सर्वर |
75+
| source code | स्रोत कोड |
76+
| square bracket | वर्गाकार ब्रैकेट |
77+
| string | स्ट्रिंग |
78+
| stylesheet | शैली पत्रक |
79+
| subclass | सब-क्लास |
80+
| superclass | सुपर-क्लास |
81+
| syntax | वाक्य - विन्यास |
82+
| test driven development | परीक्षण संचालित विकास |
83+
| transform | परिवर्तन |
84+
| unit testing | इकाई का परीक्षण |
85+
| variable | चर |
86+
| vector | वेक्टर |
87+
| vertex | शिखर |
88+
| video | वीडियो |
89+
90+
## p5.js-Specific Terms
91+
92+
| English | Hindi (हिन्दी) |
93+
| --- | --- |
94+
| access | पहुँच |
95+
| accessibility | उपलब्धता |
96+
| addon library | ऐडऑन लाइब्रेरी |
97+
| audio | आवाज़ |
98+
| bezier | बेइजेर |
99+
| brightness | चमक |
100+
| button | बटन |
101+
| canvas | कैनवास |
102+
| coding | कोडिंग (संकेतीकरण) |
103+
| community | समुदाय |
104+
| creative coding | रचनात्मक कोडिंग |
105+
| emulation | अनुकरण |
106+
| frame | फ्रेम |
107+
| gradient (color) | ग्रेडियेंट |
108+
| gradient (math) | क्रमिक |
109+
| graphics buffer | ग्राफ़िक्स बफ़र |
110+
| hue | रंग |
111+
| image | छवि |
112+
| input | इनपुट |
113+
| instance mode | उदाहरण मोड |
114+
| linear interpolation | रेखिक आंतरिक |
115+
| port | पोर्ट |
116+
| project | प्रोजैक्ट |
117+
| saturation | संतृप्ति |
118+
| sketch | स्केच |
119+
| sketchbook | स्केचबुक |
120+
| sound | आवाज़ |
121+
| stroke (outline) | रूपरेखा |
122+
| video | वीडियो |
123+
| webcam | वेबकैम |

docs/technical_overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Setup
66

7-
1. Make sure you have [node and npm installed on your machine](https://nodejs.org/en/learn/getting-started/how-to-install-nodejs).
7+
1. Make sure you have [node (at least version 22) and npm installed on your machine](https://nodejs.org/en/learn/getting-started/how-to-install-nodejs).
88
2. Clone this repo by typing git clone https://github.com/processing/p5.js-website/ in your terminal. (You can also use [GitHub Desktop](https://desktop.github.com/)).
99
3. Then install the project's dependencies with:
1010

0 commit comments

Comments
 (0)