From 2df88df182d9ea699e41f89262430aaafd213f3d Mon Sep 17 00:00:00 2001 From: artze <13703523+artze@users.noreply.github.com> Date: Wed, 4 Nov 2020 14:45:05 +0800 Subject: [PATCH 1/2] Add doc for setting up local server --- i18n-tracking.yml | 42 +++++++++++------------ src/data/en.yml | 7 ++++ src/templates/pages/get-started/index.hbs | 9 +++++ 3 files changed, 37 insertions(+), 21 deletions(-) diff --git a/i18n-tracking.yml b/i18n-tracking.yml index 36b202a268..3384b5e9f7 100644 --- a/i18n-tracking.yml +++ b/i18n-tracking.yml @@ -1,5 +1,12 @@ es: src/data/en.yml: + line 114: ' environment15' + line 113: ' environment14' + line 115: ' environment16' + line 102: ' download8' + line 103: ' download9' + line 104: ' download10' + line 105: ' download11' line 256: ' , the organization that supports p5.js.' line 251: ' We need your help! p5.js is free, open-source software. We want to make our community as open' line 269: ' Your donation supports software development for p5.js, education resources' @@ -12,7 +19,6 @@ es: line 277: ' support-5' line 37: Editor line 55: footer5 - line 114: ' acknowledge that not everyone has the time, financial means, or capacity to' line 123: ' p3xh2' line 41: Reference line 118: ' p2x3' @@ -35,8 +41,6 @@ es: line 61: tagline6 line 111: ' identity and expression, sexual orientation, race, ethnicity, language,' line 112: ' neuro-type, size, disability, class, religion, culture, subculture,' - line 113: ' political opinion, age, skill level, occupation, and background. We' - line 115: ' actively participate, but we recognize and encourage involvement of all' line 116: ' kinds. We facilitate and foster access and empowerment. We are all learners.' line 117: ' p2x2' line 119: ' p2x4' @@ -153,10 +157,6 @@ es: line 129: ' p3xp6' line 148: ' The p5.js library is free software; you can redistribute it and/or modify it' line 46: Community - line 102: ' software, and the tools to learn it, should be accessible to everyone.' - line 103: ' p1x2' - line 104: ' Using the metaphor of a sketch, p5.js has a full set of drawing' - line 105: ' functionality. However, you’re not limited to your drawing canvas. You can' line 133: ' p4xp3' line 134: ' p4xp4' line 141: ' project-a-2-5-phuong' @@ -1819,6 +1819,13 @@ es: line 2557: ' teach-case12-content5-2' ko: src/data/en.yml: + line 114: ' environment15' + line 113: ' environment14' + line 115: ' environment16' + line 102: ' download8' + line 103: ' download9' + line 104: ' download10' + line 105: ' download11' line 251: ' We need your help! p5.js is free, open-source software. We want to make our community as open' line 256: ' , the organization that supports p5.js.' line 269: ' Your donation supports software development for p5.js, education resources' @@ -1831,7 +1838,6 @@ ko: line 277: ' support-5' line 37: Editor line 55: footer5 - line 114: ' acknowledge that not everyone has the time, financial means, or capacity to' line 123: ' p3xh2' line 41: Reference line 118: ' p2x3' @@ -1854,8 +1860,6 @@ ko: line 61: tagline6 line 111: ' identity and expression, sexual orientation, race, ethnicity, language,' line 112: ' neuro-type, size, disability, class, religion, culture, subculture,' - line 113: ' political opinion, age, skill level, occupation, and background. We' - line 115: ' actively participate, but we recognize and encourage involvement of all' line 116: ' kinds. We facilitate and foster access and empowerment. We are all learners.' line 117: ' p2x2' line 119: ' p2x4' @@ -1973,10 +1977,6 @@ ko: line 129: ' p3xp6' line 148: ' The p5.js library is free software; you can redistribute it and/or modify it' line 46: Community - line 102: ' software, and the tools to learn it, should be accessible to everyone.' - line 103: ' p1x2' - line 104: ' Using the metaphor of a sketch, p5.js has a full set of drawing' - line 105: ' functionality. However, you’re not limited to your drawing canvas. You can' line 133: ' p4xp3' line 134: ' p4xp4' line 141: ' project-a-2-5-phuong' @@ -3638,6 +3638,13 @@ ko: line 2557: ' teach-case12-content5-2' zh-Hans: src/data/en.yml: + line 114: ' environment15' + line 113: ' environment14' + line 115: ' environment16' + line 102: ' download8' + line 103: ' download9' + line 104: ' download10' + line 105: ' download11' line 251: ' We need your help! p5.js is free, open-source software. We want to make our community as open' line 256: ' , the organization that supports p5.js.' line 269: ' Your donation supports software development for p5.js, education resources' @@ -3650,7 +3657,6 @@ zh-Hans: line 277: ' support-5' line 37: Editor line 55: footer5 - line 114: ' acknowledge that not everyone has the time, financial means, or capacity to' line 123: ' p3xh2' line 41: Reference line 118: ' p2x3' @@ -3672,8 +3678,6 @@ zh-Hans: line 61: tagline6 line 111: ' identity and expression, sexual orientation, race, ethnicity, language,' line 112: ' neuro-type, size, disability, class, religion, culture, subculture,' - line 113: ' political opinion, age, skill level, occupation, and background. We' - line 115: ' actively participate, but we recognize and encourage involvement of all' line 116: ' kinds. We facilitate and foster access and empowerment. We are all learners.' line 117: ' p2x2' line 119: ' p2x4' @@ -3791,10 +3795,6 @@ zh-Hans: line 129: ' p3xp6' line 148: ' The p5.js library is free software; you can redistribute it and/or modify it' line 46: Community - line 102: ' software, and the tools to learn it, should be accessible to everyone.' - line 103: ' p1x2' - line 104: ' Using the metaphor of a sketch, p5.js has a full set of drawing' - line 105: ' functionality. However, you’re not limited to your drawing canvas. You can' line 133: ' p4xp3' line 134: ' p4xp4' line 141: ' project-a-2-5-phuong' diff --git a/src/data/en.yml b/src/data/en.yml index bbc1a804f8..9b8e89572e 100644 --- a/src/data/en.yml +++ b/src/data/en.yml @@ -99,6 +99,10 @@ get started: download1: 'The easiest way to start is by using the empty example that comes with the ' download2: p5.js complete download3: ' download.' + download8: 'After download, you need to set up a local server. See instructions ' + download9: here + download10: '. Run your local server within the downloaded folder and on your browser, go to ' + download11: 'http://localhost:{your-port-num}/empty-example' download4: >- If you look in index.html, you'll notice that it links to the file p5.js. If you would like to use the minified version (compressed for faster page @@ -133,6 +137,9 @@ get started: Open the index.html file in your browser by double clicking on it in your file manager or type: environment12: 'file:///the/file/path/to/your/html' + environment14: ' (or ' + environment15: 'http://localhost:{your-port-num}/empty-example' + environment16: ' if you are using a local server)' environment13: ' in the address bar to view your sketch.' your-first-sketch-title: Your First Sketch your-first-sketch-intro1: 'In the ' diff --git a/src/templates/pages/get-started/index.hbs b/src/templates/pages/get-started/index.hbs index 4a88fe379a..3f1ba168e6 100644 --- a/src/templates/pages/get-started/index.hbs +++ b/src/templates/pages/get-started/index.hbs @@ -123,6 +123,13 @@ function draw() { {{#i18n "download3"}}{{/i18n}}
+
+ {{#i18n "download8"}}{{/i18n}}
+ {{#i18n "download9"}}{{/i18n}}
+ {{#i18n "download10"}}{{/i18n}}
+ {{#i18n "download11"}}{{/i18n}}
+
{{#i18n "download4"}}{{/i18n}}
<script src="../p5.min.js"></script>
@@ -166,6 +173,8 @@ function draw() {
{{#i18n "environment11"}}{{/i18n}} {{#i18n "environment12"}}{{/i18n}}
+ {{#i18n "environment14"}}{{/i18n}} {{#i18n "environment15"}}{{/i18n}}
+ {{#i18n "environment16"}}{{/i18n}}
{{#i18n "environment13"}}{{/i18n}}