Skip to content

Commit 5b604af

Browse files
authored
Merge pull request #2 from processing/master
merge with master
2 parents d102e83 + d31cce1 commit 5b604af

File tree

96 files changed

+2432
-259610
lines changed

Some content is hidden

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

96 files changed

+2432
-259610
lines changed

Gruntfile.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ module.exports = function(grunt) {
5454
'<%= config.dist %>/assets/js/*.js',
5555
'<%= config.dist %>/assets/img/*.{png,jpg,jpeg,gif,webp,svg,ico}',
5656
'<%= config.dist %>/assets/p5_featured/{,*/}*.*',
57-
'<%= config.dist %>/assets/learn/{,*/}*.*'
57+
'<%= config.dist %>/assets/learn/{,*/}*.*',
58+
'<%= config.dist %>/assets/contributor-docs/*.*'
5859
]
5960
}
6061
},
@@ -229,6 +230,12 @@ module.exports = function(grunt) {
229230
src: ['**', '!build_examples/**' ],
230231
dest: '<%= config.dist %>/assets/examples'
231232
},
233+
contributor_docs: {
234+
expand: true,
235+
cwd: '<%= config.src %>/assets/contributor-docs',
236+
src: '**',
237+
dest: '<%= config.dist %>/contributor-docs'
238+
},
232239
reference: {
233240
expand: true,
234241
cwd: '<%= config.src %>/data/reference',
@@ -328,7 +335,8 @@ module.exports = function(grunt) {
328335
'!<%= config.dist %>/**/README.html',
329336
'!<%= config.dist %>/**/p5_featured/**/*.html',
330337
'!<%= config.dist %>/**/learn/*.html',
331-
'!<%= config.dist %>/**/examples/*.html'],
338+
'!<%= config.dist %>/**/examples/*.html',
339+
'!<%= config.dist %>/reference/assets/index.html'],
332340
options: {
333341
ignore: [/^This document appears to be written in English/,
334342
/^Bad value https:/,

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
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/master/developer_docs/preparing_a_pull_request.md) against the p5.js master 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/master/contributor_docs/preparing_a_pull_request.md) against the p5.js master 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

1111
We recognize all types of contributions. This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Add yourself to the [p5.js repository readme](https://github.com/processing/p5.js/blob/master/README.md#contributors) by following the [instructions here](https://github.com/processing/p5.js/issues/2309)!
1212

13+
1314
## Setup
1415

1516
0. Ensure Java is installed. Not installed? Head over to https://java.oracle.com

contributor_docs/i18n_contribution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ In some cases, the text translated from the original .hbs file (written in HTML)
200200
* The "p5" key in the JSON object contains individual keys for each reference entry, indexed by variable/function/object name.
201201
* Any entries in the JSON object which are not filled in will be left in English when the page is loaded.
202202
* This is a somewhat hacky solution and not ideal. However, it comes from balancing the desire to have documentation directly in the source code, with the unwieldiness of having multiple languages of documentation inline. It will be our working solution until a better one is found.
203-
* The source content for the reference is handled inline in the [p5.js source code](https://github.com/processing/p5.js). See [Inline documentation](https://github.com/processing/p5.js/blob/master/developer_docs/inline_documentation.md) in the p5.js repo for information on how to contribute.
203+
* The source content for the reference is handled inline in the [p5.js source code](https://github.com/processing/p5.js). See [Inline documentation](https://github.com/processing/p5.js/blob/master/contributor_docs/inline_documentation.md) in the p5.js repo for information on how to contribute.
204204

205205
### Translation of Examples
206206

i18n-tracking.yml

Lines changed: 3 additions & 217 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
es:
22
src/data/en.yml:
3+
line 428: ' RotatingKnobs'
4+
line 559: ' output3-1'
35
line 568: ' output9'
46
line 569: ' output9-1'
57
line 555: ' output1'
@@ -10,7 +12,6 @@ es:
1012
line 556: ' output2'
1113
line 557: ' output3'
1214
line 558: ' output3-1'
13-
line 559: ' output4'
1415
line 560: ' output5'
1516
line 561: ' output6'
1617
line 562: ' output6-1'
@@ -206,7 +207,6 @@ es:
206207
line 424: ' p5.serial'
207208
line 426: ' p5.tiledmap'
208209
line 427: ' vida'
209-
line 428: ' p5.voronoi'
210210
line 429: ' p5.3D'
211211
line 156: ' etc-title'
212212
line 157: ' older-releases'
@@ -288,218 +288,4 @@ es:
288288
line 420: ' p5.shape.js'
289289
line 573: ' output15'
290290
zh-Hans:
291-
src/data/en.yml:
292-
line 568: ' output9'
293-
line 569: ' output9-1'
294-
line 555: ' output1'
295-
line 565: ' output8'
296-
line 566: ' output8-1'
297-
line 572: ' output14'
298-
line 554: ' outputs'
299-
line 556: ' output2'
300-
line 557: ' output3'
301-
line 558: ' output3-1'
302-
line 559: ' output4'
303-
line 560: ' output5'
304-
line 561: ' output6'
305-
line 562: ' output6-1'
306-
line 563: ' output6-2'
307-
line 564: ' output7'
308-
line 567: ' output9'
309-
line 570: ' output12'
310-
line 571: ' output13'
311-
line 581: ' 2019cc_25'
312-
line 413: ' p5.EasyCam'
313-
line 552: ' 2019contributors-conference2'
314-
line 412: ' p5.EasyCam'
315-
line 425: ' p5.touchgui'
316-
line 99: ' 2019cc_11'
317-
line 108: ' 2019cc_20'
318-
line 52: ' 2015cc_9'
319-
line 44: ' 2015cc_1'
320-
line 45: ' 2015cc_2'
321-
line 48: ' 2015cc_5'
322-
line 55: ' 2015cc_12'
323-
line 56: ' 2015cc_13'
324-
line 57: ' 2015cc_14'
325-
line 5: Editor
326-
line 13: ' start-creating'
327-
line 46: ' 2015cc_3'
328-
line 47: ' 2015cc_4'
329-
line 49: ' 2015cc_6'
330-
line 50: ' 2015cc_7'
331-
line 51: ' 2015cc_8'
332-
line 53: ' 2015cc_10'
333-
line 54: ' 2015cc_11'
334-
line 58: ' 2015cc_15'
335-
line 89: ' 2019cc_1'
336-
line 90: ' 2019cc_2'
337-
line 91: ' 2019cc_3'
338-
line 92: ' 2019cc_4'
339-
line 93: ' 2019cc_5'
340-
line 94: ' 2019cc_6'
341-
line 95: ' 2019cc_7'
342-
line 96: ' 2019cc_8'
343-
line 97: ' 2019cc_9'
344-
line 98: ' 2019cc_10'
345-
line 107: ' 2019cc_19'
346-
line 109: ' 2019cc_21'
347-
line 110: ' 2019cc_22'
348-
line 111: ' 2019cc_23'
349-
line 545: ' 2019contributors-conference-date'
350-
line 504: ' participants-title'
351-
line 505: ' support-title'
352-
line 506: ' support1'
353-
line 507: ' support2'
354-
line 508: ' support3'
355-
line 509: ' support4'
356-
line 510: ' support5'
357-
line 511: ' support6'
358-
line 63: ' copyright-title'
359-
line 85: ' support-18-alt'
360-
line 86: ' support-19-alt'
361-
line 87: ' support-20-alt'
362-
line 34: ' p2xh2'
363-
line 43: ' p3xh2'
364-
line 380: ' blizard.js'
365-
line 391: ' p5.localmessage'
366-
line 399: ' Rotating Knobs'
367-
line 401: ' p5.screenPosition'
368-
line 404: ' Shape5'
369-
line 406: ' p5.start.js'
370-
line 407: ' p5.start2d.js'
371-
line 409: ' tramontana'
372-
line 373: ' libraries-created-by'
373-
line 381: ' p5.ble'
374-
line 371: ' community-libraries'
375-
line 358: ' p5.ble'
376-
line 364: ' p5.createloop'
377-
line 368: ' p5.experience'
378-
line 377: ' vida'
379-
line 363: ' p5.experience'
380-
line 329: ' coordinate-system-simple-shapes-p2x1'
381-
line 341: ' coordinate-system-simple-shapes-p9x1'
382-
line 120: ' coordinate-system-simple-shapes-p9x1'
383-
line 386: ' create-your-own4'
384-
line 359: ' p5.clickable'
385-
line 362: ' p5.dimensions1'
386-
line 374: ' p5.play'
387-
line 376: ' rita.js'
388-
line 379: ' p5.serial1'
389-
line 382: ' p5.speech'
390-
line 355: ' asciiart'
391-
line 356: ' p5.ble'
392-
line 360: ' p5.createloop'
393-
line 357: ' asciiart'
394-
line 361: ' p5.clickable'
395-
line 1: Sidebar-Title
396-
line 15: footerxh1
397-
line 38: ' p1xh1'
398-
line 39: ' p1x1'
399-
line 40: ' p1x2'
400-
line 41: ' p2xh1'
401-
line 42: ' p2x1'
402-
line 59: ' p4xp1'
403-
line 60: ' p4xp2'
404-
line 61: ' p4xp3'
405-
line 62: ' p4xp4'
406-
line 64: ' p4xp6'
407-
line 65: ''
408-
line 74: ' get-started3'
409-
line 2: Skip-To-Content
410-
line 3: Language-Settings
411-
line 4: Sidebar-Title
412-
line 67: ' book1'
413-
line 370: ' core-libraries'
414-
line 372: ' libraries-core-by'
415-
line 400: ' p5.collide2D'
416-
line 402: ' p5.dimensions'
417-
line 403: ' p5.experience'
418-
line 405: ' p5.geolocation'
419-
line 408: ' p5.gui'
420-
line 410: ' p5.play'
421-
line 411: ' p5.particle'
422-
line 424: ' p5.serial'
423-
line 426: ' p5.tiledmap'
424-
line 427: ' vida'
425-
line 428: ' p5.voronoi'
426-
line 429: ' p5.3D'
427-
line 156: ' etc-title'
428-
line 157: ' older-releases'
429-
line 158: ' github-repository'
430-
line 159: ' report-bugs'
431-
line 383: ' p5.cmyk.js'
432-
line 392: ' marching'
433-
line 394: ' ml5.js'
434-
line 397: ' p5.Riso'
435-
line 476: ' contributors-conference-title'
436-
line 477: ' contributors-conference1'
437-
line 478: ' contributors-conference2'
438-
line 479: ' contributors-conference3'
439-
line 480: ' contributors-conference4'
440-
line 485: ''
441-
line 486: ' 2015contributors-conference-title'
442-
line 487: ' 2015contributors-conference-date'
443-
line 488: ' 2015contributors-conference1'
444-
line 489: ' 2015contributors-conference2'
445-
line 490: ' 2015contributors-conference3'
446-
line 491: ' 2015contributors-conference-participants-title'
447-
line 492: ' 2015contributors-conference-diversity-title'
448-
line 493: ' 2015contributors-conference-diversity1'
449-
line 494: ' 2015contributors-conference-diversity2'
450-
line 495: ' 2015contributors-conference-diversity3'
451-
line 496: ' 2015contributors-conference-diversity4'
452-
line 497: ' 2015contributors-conference-diversity5'
453-
line 498: ' 2015contributors-conference-diversity6'
454-
line 499: ' 2015contributors-conference-diversity7'
455-
line 500: ' 2015contributors-conference-diversity8'
456-
line 501: ' 2015contributors-conference-diversity9'
457-
line 502: ' 2015contributors-conference-support-title'
458-
line 503: ' 2015contributors-conference-support1'
459-
line 512: ' 2015cc_4'
460-
line 513: ' 2015cc_5'
461-
line 514: ' 2015cc_6'
462-
line 515: ' 2015cc_7'
463-
line 516: ' 2015cc_8'
464-
line 517: ' 2015cc_9'
465-
line 518: ' 2015cc_10'
466-
line 519: ' 2015cc_11'
467-
line 520: ' 2015cc_12'
468-
line 521: ' 2015cc_13'
469-
line 522: ' 2015cc_14'
470-
line 523: ' 2015cc_15'
471-
line 139: ' download-intro'
472-
line 140: ' editor-title'
473-
line 141: ' p5.js-editor'
474-
line 142: ' p5.js-editor-intro'
475-
line 143: ' editor-includes'
476-
line 145: ' complete-library-intro1'
477-
line 146: ' complete-library-intro2'
478-
line 147: ' complete-library-intro3'
479-
line 151: ' includes-2'
480-
line 154: ' single-files-intro'
481-
line 168: ''
482-
line 72: ' support-20'
483-
line 76: ' support-23'
484-
line 84: ' support-17-alt'
485-
line 88: ' support-21-alt'
486-
line 541: ' 2019contributors-conference-title'
487-
line 542: ' 2019contributors-conference-date'
488-
line 546: ' 2019contributors-conference2'
489-
line 547: ' 2019contributors-conference3'
490-
line 548: ' 2019contributors-conference4'
491-
line 549: ' 2019cc_1'
492-
line 550: ' 2019cc_2'
493-
line 551: ' 2019cc_3'
494-
line 553: ' 2019cc_5'
495-
line 21: ' support-options'
496-
line 100: ' 2019cc_12'
497-
line 101: ' 2019cc_13'
498-
line 102: ' 2019cc_14'
499-
line 103: ' 2019cc_15'
500-
line 104: ' 2019cc_16'
501-
line 105: ' 2019cc_17'
502-
line 106: ' 2019cc_18'
503-
line 112: ' 2019cc_24'
504-
line 420: ' p5.shape.js'
505-
line 573: ' output15'
291+
src/data/en.yml: {}

p5js_guidelines.pdf

764 KB
Binary file not shown.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>p5.js Contributor Docs</title>
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
7+
<meta name="description" content="p5.js Contributor Docs">
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
9+
<link rel="stylesheet" href="https://unpkg.com/docsify/lib/themes/buble.css">
10+
</head>
11+
<body>
12+
<div id="app"></div>
13+
<script>
14+
window.$docsify = {
15+
auto2top: true,
16+
executeScript: true,
17+
loadSidebar: 'sidebar.md',
18+
autoHeader: true,
19+
loadNavbar: 'navbar.md',
20+
mergeNavbar: true,
21+
subMaxLevel: 2,
22+
themeColor: '#ed225d',
23+
basePath:
24+
'https://raw.githubusercontent.com/processing/p5.js/master/contributor_docs/',
25+
logo: '../assets/img/p5js.svg',
26+
name: 'p5.js Contributor Docs',
27+
repo: 'https://github.com/processing/p5.js',
28+
}
29+
</script>
30+
<script src="https://unpkg.com/docsify/lib/docsify.min.js"></script>
31+
</body>
32+
</html>
Binary file not shown.

0 commit comments

Comments
 (0)