Skip to content

Commit d7cba35

Browse files
committed
Merge branch 'main' into pr/1265
2 parents 0d3da0c + ef64da2 commit d7cba35

File tree

503 files changed

+68539
-32943
lines changed

Some content is hidden

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

503 files changed

+68539
-32943
lines changed

.gitattributes

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

44
# prevents git from converting LF to CRLF, which causes issues
55
# when assembling example pages on Windows
6-
data/examples/**/*.js eol=lf
6+
src/data/examples/**/*.js eol=lf
77

88
# Denote all files that are truly binary and should not be modified.
99
*.ai binary

.github/workflows/deploy.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Use Node.js
1313
uses: actions/setup-node@v1
1414
with:
15-
node-version: "14.x"
15+
node-version: "18.x"
1616
- name: Install node modules
1717
run: npm ci
1818
- name: Build
@@ -23,3 +23,5 @@ jobs:
2323
branch: gh-pages # The branch the action should deploy to.
2424
folder: dist/ # The folder the action should deploy.
2525
single-commit: false # "false" here means "preserve git history on the gh-pages branch"
26+
- name: Update Download page
27+
run: curl https://p5js.org/download/release.php

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Use Node.js
1616
uses: actions/setup-node@v1
1717
with:
18-
node-version: "14.x"
18+
node-version: "18.x"
1919
- name: Install node modules
2020
run: npm ci
2121
- name: Run tests

.github/workflows/update-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install Node.JS 12.x
2020
uses: actions/setup-node@v1
2121
with:
22-
node-version: 12.x
22+
node-version: 18.x
2323
- name: Extract documentation and library files from the p5.js repo
2424
run: |
2525
npm install

.github/workflows/update-translation-files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Install Node.JS 12.x
1818
uses: actions/setup-node@v1
1919
with:
20-
node-version: 12.x
20+
node-version: 18.x
2121
- name: npm install
2222
run: npm install
2323
# - name: Update json files

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ src/offline-reference
3030
!src/templates/pages/examples/.gitkeep
3131
dist/*
3232
!dist/git-pull.php
33-
!dist/download/release.php
33+
!dist/download/version.json
3434
!dist/books/media.zip
3535
!dist/learn/books/media.zip

.lintstagedrc.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

Gruntfile.js

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ const pngquant = require('imagemin-pngquant');
1616

1717
module.exports = function(grunt) {
1818
require('time-grunt')(grunt);
19-
require('load-grunt-tasks')(grunt);
19+
require('load-grunt-tasks')(grunt, {
20+
pattern: [
21+
'grunt-*',
22+
'@*/grunt-*',
23+
'!grunt-assemble-permalinks',
24+
'!grunt-assemble-i18n'
25+
]
26+
});
2027

2128
// Project configuration. actual tasks
2229
grunt.initConfig({
@@ -37,10 +44,7 @@ module.exports = function(grunt) {
3744
},
3845
css: {
3946
files: '<%= config.src %>/assets/css/*.css',
40-
tasks: [
41-
'concat:dist',
42-
'postcss'
43-
]
47+
tasks: ['concat:dist', 'postcss']
4448
},
4549
imagemin: {
4650
files: '<%= config.src %>/assets/img/*.{png,jpg,jpeg,gif,svg,ico}',
@@ -73,9 +77,7 @@ module.exports = function(grunt) {
7377
livereload: {
7478
options: {
7579
open: true,
76-
base: [
77-
'<%= config.dist %>'
78-
]
80+
base: ['<%= config.dist %>']
7981
}
8082
}
8183
},
@@ -94,19 +96,16 @@ module.exports = function(grunt) {
9496
'!<%= config.src %>/data/reference/*.json'
9597
],
9698
partials: '<%= config.src %>/templates/partials/*.hbs',
97-
plugins: [
98-
'assemble-contrib-permalinks',
99-
'assemble-contrib-i18n'
100-
],
99+
plugins: ['grunt-assemble-permalinks', 'grunt-assemble-i18n'],
101100
i18n: {
102101
languages: pkg.languages,
103-
templates: [
104-
'<%= config.src %>/templates/pages/**/*.hbs',
105-
]
102+
templates: ['<%= config.src %>/templates/pages/**/*.hbs']
106103
},
107104
permalinks: {
108105
structure: ':lang/:slug/:base:ext',
109-
patterns: [
106+
// Official documentation incorrectly states that this property
107+
// should be "patterns" when it should be "replacements"
108+
replacements: [
110109
{
111110
pattern: ':lang',
112111
replacement: function() {
@@ -311,7 +310,7 @@ module.exports = function(grunt) {
311310
clean: {
312311
assets: [
313312
'<%= config.dist %>/**/*.*',
314-
'!<%= config.dist %>/download/release.php',
313+
'!<%= config.dist %>/download/version.json',
315314
'!<%= config.dist %>/git-pull.php',
316315
'!<%= config.dist %>/books/media.zip',
317316
'!<%= config.dist %>/learn/books/media.zip',
@@ -411,12 +410,6 @@ module.exports = function(grunt) {
411410
grunt.loadNpmTasks('grunt-contrib-requirejs');
412411
grunt.loadNpmTasks('grunt-htmlhint');
413412

414-
// i18n tracking task
415-
grunt.registerTask('i18n', function() {
416-
var done = this.async();
417-
require('./i18n.js')(done);
418-
});
419-
420413
grunt.registerTask('make_tmp_dir', function() {
421414
const tmp_path = 'tmp/p5.js';
422415
fse.mkdirpSync(tmp_path);
@@ -501,7 +494,6 @@ module.exports = function(grunt) {
501494
'assemble',
502495
'file_append',
503496
'compress',
504-
'i18n',
505497
'htmlhint'
506498
]);
507499

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## How To Contribute
66

7-
Known bugs and intended new features are tracked using [GitHub issues](https://github.com/processing/p5.js-website/issues). If you'd like to start working on an existing issue, comment on the issue that you plan to work on it so other contributors know it's being handled and can offer help. Once you have completed your work on this issue, [submit a pull request (PR)](https://github.com/processing/p5.js/blob/main/contributor_docs/preparing_a_pull_request.md) against the p5.js main branch. In the description field of the PR, include "resolves #XXXX" tagging the issue you are fixing. If the PR addresses the issue but doesn't completely resolve it (ie the issue should remain open after your PR is merged), write "addresses #XXXX".
7+
Known bugs and intended new features are tracked using [GitHub issues](https://github.com/processing/p5.js-website/issues). If you'd like to start working on an existing issue, comment on the issue that you plan to work on it so other contributors know it's being handled and can offer help. Once you have completed your work on this issue, [submit a pull request (PR)](https://github.com/processing/p5.js/blob/main/contributor_docs/contributor_guidelines.md#pull-requests) against the p5.js main branch. In the description field of the PR, include "resolves #XXXX" tagging the issue you are fixing. If the PR addresses the issue but doesn't completely resolve it (ie the issue should remain open after your PR is merged), write "addresses #XXXX".
88

99
If you discover a bug or have an idea for a new feature you'd like to add, begin by submitting an issue. Please do not simply submit a pull request containing the fix or new feature without making an issue first, we will probably not be able to accept it. Once you have gotten some feedback on the issue and a go ahead to address it, you can follow the process above to add the fix or feature.
1010

@@ -15,7 +15,7 @@ We recognize all types of contributions. This project follows the [all-contribut
1515
If you've contributed to this website (or any other part of the p5.js project), add yourself [here](https://github.com/processing/p5.js#contributors). Instructions to do this can be found at the bottom of the section.
1616

1717
## Stewards
18-
Stewards are contributors that are particularly involved, familiar, or responsive to certain areas of the project. Their role is to help provide context and guidance to others working on p5.js website. If you have a question about contributing to a particular area, you can tag the listed steward in an issue or pull request. They may also weigh in on feature requests and guide the overall direction of their area, with the input of the community. You can read more about the organization of the project at [contributor_docs/organization.md](https://github.com/processing/p5.js/blob/main/contributor_docs/organization.md).
18+
Stewards are contributors that are particularly involved, familiar, or responsive to certain areas of the project. Their role is to help provide context and guidance to others working on p5.js website. If you have a question about contributing to a particular area, you can tag the listed steward in an issue or pull request. They may also weigh in on feature requests and guide the overall direction of their area, with the input of the community.You can read more about the organization of the project at [contributor_docs/organization.md](https://github.com/processing/p5.js/blob/main/contributor_docs/organization.md), p5.js [Contributor Guidelines](https://github.com/processing/p5.js/blob/main/contributor_docs/contributor_guidelines.md), and p5.js [Steward Guidelines](https://github.com/processing/p5.js/blob/main/contributor_docs/steward_guidelines.md).
1919

2020
**Anyone interested can volunteer to be a steward!** ✨There are no specific requirements for expertise, just an interest in actively learning and participating. We can start with **1-3 stewards for each area**. If you’re familiar with one or more areas of p5.js website, please reply to [this issue](https://github.com/processing/p5.js-website/issues/1220) to volunteer as a steward!
2121

@@ -40,13 +40,13 @@ Once added, a steward's username will remain in the [stewards section of the rea
4040
| Language | Steward(s) |
4141
| -------- | ------------------------- |
4242
| Overall |[@Qianqianye](https://github.com/Qianqianye), [@limzykenneth](https://github.com/limzykenneth) |
43-
| Spanish |[@Guirdo](https://github.com/Guirdo), [@Andreu-G](https://github.com/Andreu-G), [@dnd-alv](https://github.com/dnd-alv) |
43+
| Spanish |[@Guirdo](https://github.com/Guirdo), [@Andreu-G](https://github.com/Andreu-G), [@dnd-alv](https://github.com/dnd-alv), [@holomorfo](https://github.com/holomorfo) |
4444
| Chinese | [@unicar9](https://github.com/unicar9), [@Gracia-zhang](https://github.com/Gracia-zhang), [@pentalei](https://github.com/pentalei) |
4545
| Korean | [@yinhwa](https://github.com/yinhwa), [@almchung](https://github.com/almchung), [@jhongover9000](https://github.com/jhongover9000), [@sssueing](https://github.com/sssueing), [@GeryGeryGery](https://github.com/GeryGeryGery), [@sosunnyproject](https://github.com/sosunnyproject) |
4646
| Hindi | [@adarrssh](https://github.com/adarrssh), [@Divyansh013](https://github.com/Divyansh013), [@deepchauhan](https://github.com/deepchauhan), [@SarveshLimaye](https://github.com/SarveshLimaye)|
4747

4848
Other Language Steward(s):
49-
* Portuguese: [@raphaelavelar](https://github.com/raphaelavelar)
49+
* Portuguese: [@raphaelavelar](https://github.com/raphaelavelar), [@mrseoliveira](https://github.com/mrseoliveira)
5050

5151

5252

dist/download/release.php

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)