Skip to content

Commit 672669b

Browse files
authored
Merge pull request #1245 from Gracia-zhang/teach
Teach Page Rebasing 220727
2 parents 26e5293 + 6313e5b commit 672669b

File tree

881 files changed

+55984
-19390
lines changed

Some content is hidden

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

881 files changed

+55984
-19390
lines changed

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
"expect": true,
1313
"sinon": true
1414
},
15+
"parserOptions": {
16+
"ecmaVersion": 2017
17+
},
1518
"extends": ["eslint:recommended", "prettier"],
1619
"plugins": ["prettier"],
1720
"rules": {

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
blank_issues_enabled: false
2+
3+
contact_links:
4+
- name: 🌸 p5.js Issues
5+
url: https://github.com/processing/p5.js/issues
6+
about: Report issues with the p5.js here.
7+
- name: 🖥️ Web Editor Issues
8+
url: https://github.com/processing/p5.js-web-editor/issues
9+
about: Report issues with the p5.js web editor here.
10+
- name: 💬 Forum
11+
url: https://discourse.processing.org/c/p5js
12+
about: Have other questions about using p5.js? Ask them here!

.github/ISSUE_TEMPLATE/discussion.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: 💭 Discussion
2+
description: This template is for starting a discussion.
3+
labels: [ Discussion ]
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: Topic
8+
description: What do you want to discuss with the group?
9+
validations:
10+
required: true
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: 🌱 New Feature Request
2+
description: Request a new feature be added.
3+
labels: [ Feature Request ]
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: Increasing Access
8+
description: How would this new feature help [increase access](https://github.com/processing/p5.js/blob/main/contributor_docs/access.md) to p5.js? (If you're not sure, you can type "Unsure" here and let others from the community offer their thoughts.)
9+
validations:
10+
required: true
11+
12+
- type: dropdown
13+
attributes:
14+
label: Most appropriate sub-area of p5.js?
15+
options:
16+
- Home
17+
- Download
18+
- Donate
19+
- Get Started
20+
- Reference
21+
- Libraries
22+
- Learn
23+
- Teach
24+
- Examples
25+
- Books
26+
- Community
27+
- Showcase
28+
- Other (specify if possible)
29+
validations:
30+
required: true
31+
32+
- type: textarea
33+
attributes:
34+
label: Feature request details
35+
validations:
36+
required: true
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: "🐛 Found a Bug"
2+
description: Report p5.js website bugs (broken or incorrect behaviour).
3+
labels: [ Bug ]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
- Please make sure to [search for existing issues](https://github.com/processing/p5.js-website/issues) before filing a new one!
9+
- If the bug is related to **translation**, please report it in [Improve Translation](https://github.com/processing/p5.js-website/issues/new?assignees=&labels=translation&template=improve-translation.yml).
10+
11+
- type: dropdown
12+
attributes:
13+
label: Most appropriate sections of the p5.js website?
14+
options:
15+
- Reference
16+
- Examples
17+
- Libraries
18+
- Learn
19+
- Teach
20+
- Other (specify if possible)
21+
validations:
22+
required: true
23+
24+
- type: dropdown
25+
attributes:
26+
label: What is your operating system?
27+
options:
28+
- Windows
29+
- Mac OS
30+
- Linux
31+
- Android
32+
- iOS
33+
- Other (specify if possible)
34+
validations:
35+
required: false
36+
37+
- type: input
38+
attributes:
39+
label: Web browser and version
40+
description: |
41+
In the address bar, on Chrome enter `chrome://version`, on Firefox enter `about:support`. On Safari, use `About Safari`.
42+
validations:
43+
required: false
44+
45+
- type: textarea
46+
attributes:
47+
label: Actual Behavior
48+
placeholder: What is currently happening.
49+
validations:
50+
required: true
51+
52+
- type: textarea
53+
attributes:
54+
label: Expected Behavior
55+
description: |
56+
If you want to include screenshots, paste them into the markdown editor below.
57+
placeholder: What were you expecting?
58+
validations:
59+
required: true
60+
61+
- type: textarea
62+
attributes:
63+
label: Steps to reproduce
64+
description: |
65+
- Add steps to reproduce bugs or add information on the place where the feature should be implemented.
66+
- Add links to a sample deployment or code.
67+
validations:
68+
required: true
69+
70+
- type: input
71+
attributes:
72+
label: Would you like to work on the issue?
73+
description: |
74+
Please let us know if you can work on it or the issue should be assigned to someone else.
75+
validations:
76+
required: true
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "🌐 Improve Translation"
2+
description: Make a suggestion or report a problem about the translation of p5.js website.
3+
labels: [ Translation ]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Please make sure to [search for existing issues](https://github.com/processing/p5.js-website/issues) before filing a new one!
9+
10+
- type: input
11+
attributes:
12+
label: Language
13+
description: |
14+
Which language page is the problem? Or translate into a new language?
15+
validations:
16+
required: true
17+
18+
- type: textarea
19+
attributes:
20+
label: What improvement are you suggesting?
21+
description: |
22+
- Please give as much detail as possible to help us understand the change.
23+
- What is the expected outcome?
24+
validations:
25+
required: true
26+
27+
- type: input
28+
attributes:
29+
label: Would you like to work on the issue?
30+
description: |
31+
Please let us know if you can work on it or the issue should be assigned to someone else.
32+
validations:
33+
required: true

.github/issue_template.md

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

.github/workflows/update-documentation.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ jobs:
2929
run: |
3030
echo ::set-output name=VERSION::${P5JS_REF/refs\/tags\//}
3131
echo ::set-output name=SHA::${P5JS_SHA}
32+
- name: Get latest p5.min.js build
33+
uses: suisei-cn/actions-download-file@v1
34+
with:
35+
url: https://github.com/processing/p5.js/releases/download/${{github.event.client_payload.ref}}/p5.min.js
36+
target: src/assets/js/
37+
- name: Get latest p5.sound.min.js build
38+
uses: suisei-cn/actions-download-file@v1
39+
with:
40+
url: https://github.com/processing/p5.js/releases/download/${{github.event.client_payload.ref}}/p5.sound.min.js
41+
target: src/assets/js/
3242
- name: Commit changes
3343
uses: EndBug/add-and-commit@v4
3444
with:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
node-version: 12.x
2121
- name: npm install
2222
run: npm install
23-
- name: Update json files
24-
run: |
25-
npm run grunt update-json-i18n-files
23+
# - name: Update json files
24+
# run: |
25+
# npm run grunt update-json-i18n-files
2626
- name: Update yaml files
2727
run: |
2828
npm run grunt update-yaml-i18n-files

0 commit comments

Comments
 (0)