You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The p5.js Editor is a website for creating p5.js sketches, with a focus on making coding accessible and inclusive for artists, designers, educators, beginners, and anyone else! You can create, share, or remix p5.js sketches without needing to download or configure anything. It is designed with beginners in mind, limiting features and frills. The editor is free and open-source because we believe software, and the tools to learn it, should be accessible to everyone.
Copy file name to clipboardExpand all lines: contributor_docs/accessibility.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
## Accessibility Guidelines
2
2
3
-
Here is guide on [how to use the accessible editor](https://gist.github.com/MathuraMG/e86666b7b41fbc8c078bad9aff3f666d) and here is an overview of the [p5-accessibility.js](https://github.com/processing/p5.accessibility) library that makes p5.js sketches accessible to screen readers.
3
+
Here is a guide on [how to use the accessible editor](https://gist.github.com/MathuraMG/e86666b7b41fbc8c078bad9aff3f666d) and here is an overview of the [p5-accessibility.js](https://github.com/processing/p5.accessibility) library that makes p5.js sketches accessible to screen readers.
4
4
5
5
The code for the p5.js web editor adheres to web accessibility standards. The following guidelines will help to ensure that accessibility continues to be a priority as development continues.
6
6
7
7
**Code Structure**
8
8
9
-
* Screen Readers are an assistive technology for vision loss which helps users to navigate a web page. They are able to prioritize content based on the semantic meaning of HTML tags. Therefore, it is important to use specific tags, such as `nav`, `ul`, `li`, `section`, and so on. `div` is the least screen readerfriendly tag. For example, [here is the semantic meaning of the `body` tag](http://html5doctor.com/element-index/#body)
9
+
* Screen Readers are an assistive technology for vision loss that helps users to navigate a web page. They are able to prioritize content based on the semantic meaning of HTML tags. Therefore, it is important to use specific tags, such as `nav`, `ul`, `li`, `section`, and so on. `div` is the least screen reader-friendly tag. For example, [here is the semantic meaning of the `body` tag](http://html5doctor.com/element-index/#body)
10
10
* All buttons/links/windows need to be accessible by the keyboard ( By tabbing, pressing space etc.)
11
-
* In cases where tags are not screen readerfriendly, we can take advantage of [tabIndex](http://webaim.org/techniques/keyboard/tabindex). Using tabIndex ensures that all elements are accessible via keyboard. [code example](https://github.com/processing/p5.js-web-editor/blob/develop/client/modules/IDE/components/Editor.jsx#L249)
11
+
* In cases where tags are not screen reader-friendly, we can take advantage of [tabIndex](http://webaim.org/techniques/keyboard/tabindex). Using tabIndex ensures that all elements are accessible via keyboard. [code example](https://github.com/processing/p5.js-web-editor/blob/develop/client/modules/IDE/components/Editor.jsx#L249)
12
12
* When opening a new window or pop up window, ensure the keyboard focus also moves to the new window. [code example](https://github.com/processing/p5.js-web-editor/blob/develop/client/modules/IDE/components/NewFileForm.jsx#L16)
Copy file name to clipboardExpand all lines: contributor_docs/deployment.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ WIP.
17
17
18
18
These are the steps that happen when you deploy the application.
19
19
20
-
1. Push to `develop` branch, or merge in a pull request to the `develop` branch.
20
+
1. Push to the `develop` branch, or merge in a pull request to the `develop` branch.
21
21
2. This triggers a build on [Travis CI](https://travis-ci.org/processing/p5.js-web-editor).
22
22
3. Travis CI builds a (development) Docker image of the whole application.
23
23
4. Travis CI runs some tests, which in this case, is just `npm run lint`. This could be updated in the future to include more extensive tests. If the tests fail, the build stops here.
@@ -47,7 +47,7 @@ If you are interested in hosting and deploying your own p5.js Web Editor instanc
47
47
48
48
1. Sign up for a free account at: [Heroku](https://www.heroku.com/)
Copy file name to clipboardExpand all lines: contributor_docs/development.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Follow the [installation guide](./installation.md).
22
22
As a person contributing code but not creating production releases (this is most people!), here's what you need to know:
23
23
* The default branch is `develop`. All pull requests should be made to this branch. It should be stable, and all commits are visible at a staging server.
24
24
* When working on a bug or feature, you should branch from the `develop` branch. When you're done, you should open a pull request from your feature branch to `develop`.
25
-
* The `release` branch is the live production branch, and is the code deployed to editor.p5js.org. Changes to this branch should be made carefully, and will be done using git tags.
25
+
* The `release` branch is the live production branch and is the code deployed to editor.p5js.org. Changes to this branch should be made carefully and will be done using git tags.
26
26
* Emergency hotfix changes should be branched from `release` and merged via a pull request to `release`. After a PR is merged, then the commits can be merged to `develop`.
27
27
28
28
See the [release guide](./release.md) for information about creating a release.
@@ -68,7 +68,7 @@ Structure your commit message like this:
68
68
* Write the summary line and description of what you have done in the imperative mode, that is as if you were commanding someone. Start the line with "Fix", "Add", "Change" instead of "Fixed", "Added", "Changed".
69
69
* Link the GitHub issue you are working on in the summary line in brackets, e.g. [#123]
70
70
* Always leave the second line blank.
71
-
* Be as descriptive as possible in the description. It helps reasoning about the intention of commits and gives more context about why changes happened.
71
+
* Be as descriptive as possible in the description. It helps to reason about the intention of commits and gives more context about why changes happened.
72
72
* If it seems difficult to summarize what your commit does, it may be because it includes several logical changes or bug fixes, and are better split up into several commits using `git add -p`.
73
73
* Note that you can connect multiple issues to a commit, if necessary: `[#123][#456] Add Button component`
Copy file name to clipboardExpand all lines: contributor_docs/installation.md
+24-2Lines changed: 24 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ _Note_: The installation steps assume you are using a Unix-like shell. If you ar
25
25
7. Install MongoDB and make sure it is running
26
26
* For Mac OSX with [homebrew](http://brew.sh/): `brew tap mongodb/brew` then `brew install mongodb-community` and finally start the server with `brew services start mongodb-community` or you can visit the installation guide here [Installation Guide For MacOS](https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/)
27
27
* For Windows and Linux: [MongoDB Installation](https://docs.mongodb.com/manual/installation/)
28
+
<<<<<<< HEAD:contributor_docs/installation.md
28
29
8.`$ cp .env.example .env`
29
30
9. (Optional) Update `.env` with necessary keys to enable certain app behaviors, i.e. add Github ID and Github Secret if you want to be able to log in with Github.
30
31
10. Run `$ npm run fetch-examples` to download the example sketches into a user called 'p5'. Note that you need to configure your GitHub Credentials, which you can do by following the [Github API Configuration](#github-api-configuration) section.
@@ -33,6 +34,16 @@ _Note_: The installation steps assume you are using a Unix-like shell. If you ar
33
34
13. Navigate to [http://localhost:8000](http://localhost:8000) in your browser
34
35
14. Install the [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en)
35
36
15. Open and close the Redux DevTools using `ctrl+h`, and move them with `ctrl+w`
37
+
=======
38
+
7.`$ cp .env.example .env`
39
+
8. (Optional) Update `.env` with necessary keys to enable certain app behaviours, i.e. add Github ID and Github Secret if you want to be able to log in with Github.
40
+
9. Run `$ npm run fetch-examples` to download the example sketches into a user called 'p5'. Note that you need to configure your GitHub Credentials, which you can do by following the [Github API Configuration](#github-api-configuration) section.
41
+
10. Enable Prettier in your text editor by following [this guide](https://prettier.io/docs/en/editors.html).
42
+
11.`$ npm start`
43
+
12. Navigate to [http://localhost:8000](http://localhost:8000) in your browser
44
+
13. Install the [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en)
45
+
14. Open and close the Redux DevTools using `ctrl+h`, and move them with `ctrl+w`
@@ -52,6 +64,16 @@ Note that this takes up a significant amount of space on your machine. Make sure
52
64
6. (Optional) Update `.env` with necessary keys to enable certain app behavoirs, i.e. add Github ID and Github Secret if you want to be able to log in with Github.
53
65
7.`$ docker-compose -f docker-compose-development.yml run --rm app npm run fetch-examples` - note that you need to configure your GitHub Credentials, which you can do by following the [Github API Configuration](#github-api-configuration) section.
54
66
8. Enable Prettier in your text editor by following [this guide](https://prettier.io/docs/en/editors.html).
5. (Optional) Update `.env` with necessary keys to enable certain app behaviours, i.e. add Github ID and Github Secret if you want to be able to log in with Github.
74
+
6.`$ docker-compose -f docker-compose-development.yml run --rm app npm run fetch-examples` - note that you need to configure your GitHub Credentials, which you can do by following the [Github API Configuration](#github-api-configuration) section.
75
+
7. Enable Prettier in your text editor by following [this guide](https://prettier.io/docs/en/editors.html).
Now, anytime you wish to start the server with its dependencies, you can run:
57
79
@@ -68,12 +90,12 @@ If you don't have the full server environment running, you can launch a one-off
68
90
69
91
## S3 Bucket Configuration
70
92
71
-
Note that this is optional, unless you are working on the part of the application that allows a user to upload images, videos, etc. Please refer to the following [gist](https://gist.github.com/catarak/70c9301f0fd1ac2d6b58de03f61997e3) to set up an S3 bucket to be used with this project.
93
+
Note that this is optional unless you are working on the part of the application that allows a user to upload images, videos, etc. Please refer to the following [gist](https://gist.github.com/catarak/70c9301f0fd1ac2d6b58de03f61997e3) to set up an S3 bucket to be used with this project.
72
94
73
95
If your S3 bucket is in the US East (N Virginia) region (us-east-1), you'll
74
96
need to set a custom URL base for it, because it does not follow the standard
75
97
naming pattern as the rest of the regions. Instead, add the following to your
76
-
environment/.env file, changing `BUCKET_NAME` to your bucket name. This is necessary because this override is currently treated as the full path to the bucket rather than as a proper base url:
98
+
environment/.env file, changing `BUCKET_NAME` to your bucket name. This is necessary because this override is currently treated as the full path to the bucket rather than as a proper base URL:
Copy file name to clipboardExpand all lines: contributor_docs/preparing_a_pull_request.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Pull-requests are easier when your code is up to date! You can use git rebase to
13
13
14
14
15
15
### Find out about changes
16
-
Make sure you're tracking upstream p5.js repository.
16
+
Make sure you're tracking the upstream p5.js repository.
17
17
18
18
git remote show upstream
19
19
@@ -43,7 +43,7 @@ Then ask git about the latest changes.
43
43
## CONFLICTS
44
44
You may have some conflicts! It's okay. Feel free to ask for help. If merging with the latest upstream `develop` branch causes conflicts, you can always make a pull request with the upstream repository, which makes the merge conflicts public.
Here's a good reference on rebasing, in case you're intensely curious about the technical details. https://www.atlassian.com/git/tutorials/merging-vs-rebasing
Copy file name to clipboardExpand all lines: contributor_docs/public_api.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This API provides a way to programmatically import data into the p5.js Web Edito
4
4
5
5
# Authentication
6
6
7
-
Access to the API is available via a Personal Access Token, linked to an existing editor user account. Tokens can be created and deleted via logged-in user’s Settings page.
7
+
Access to the API is available via a Personal Access Token, linked to an existing editor user account. Tokens can be created and deleted via the logged-in user’s Settings page.
8
8
9
9
When contacting the API, the username and token must be sent with every request using basic auth.
10
10
@@ -139,7 +139,7 @@ No body.
139
139
140
140
Create a new sketch.
141
141
142
-
A sketch must contain at least one file with the `.html` extension. If none if provided in the payload, a default `index.html` and linked `style.css` file will be created automatically.
142
+
A sketch must contain at least one file with the `.html` extension. If none is provided in the payload, a default `index.html` and linked `style.css` file will be created automatically.
0 commit comments