@@ -14,10 +14,10 @@ slug: libraries/
14
14
15
15
<h2 >{{#i18n "using-a-library-title"}}{{/i18n}}</h2 >
16
16
17
- <p >{{#i18n "using-a-library1"}}{{/i18n}}<a href =" {{root}}/reference/#/libraries/dom " >p5.dom</a >
17
+ <p >{{#i18n "using-a-library1"}}{{/i18n}}<a href =" {{root}}/reference/#group-DOM " >p5.dom</a >
18
18
{{#i18n "using-a-library2"}}{{/i18n}}
19
- <a href =" {{root}}/reference/#/libraries/sound" >p5.sound</a >
20
- {{#i18n "using-a-library3"}}{{/i18n}}</p >
19
+ <a href =" {{root}}/reference/#/libraries/p5. sound" >p5.sound</a >
20
+ {{#i18n "using-a-library3"}}{{/i18n}}</p >
21
21
22
22
<p >{{#i18n "using-a-library4"}}{{/i18n}}</p >
23
23
<pre ><code class =" language-markup" >< ; !doctype html< ;
@@ -35,37 +35,41 @@ slug: libraries/
35
35
<h2 >{{#i18n "create-your-own-title"}}{{/i18n}}</h2 >
36
36
37
37
<p >{{#i18n "create-your-own1"}}{{/i18n}}
38
- <a href =" https://github.com/processing/p5.js/blob/master/contributor_docs/creating_libraries.md" >
39
- {{#i18n "create-your-own2"}}{{/i18n}}</a >
38
+ <a href =" https://github.com/processing/p5.js/blob/master/contributor_docs/creating_libraries.md" >
39
+ {{#i18n "create-your-own2"}}{{/i18n}}</a >
40
40
{{#i18n "create-your-own3"}}{{/i18n}}
41
- <a href =" https://docs.google.com/forms/d/e/1FAIpQLSdWWb95cfvosaIFI7msA7XC5zOEVsNruaA5klN1jH95ESJVcw/viewform" target =" _blank" >{{#i18n "create-your-own4"}}{{/i18n}}</a ></p >
41
+ <a href =" https://docs.google.com/forms/d/e/1FAIpQLSdWWb95cfvosaIFI7msA7XC5zOEVsNruaA5klN1jH95ESJVcw/viewform"
42
+ target =" _blank" >{{#i18n "create-your-own4"}}{{/i18n}}</a ></p >
42
43
43
44
<% let all; for (let p= 0 ; p< 2 ; p++ ) { % >
44
- < % if (p == 0 ) { all = core; % >
45
- < h2 class = " tutorial-title" > {{#i18n " core-libraries" }}{{/ i18n}}</ h2>
46
- < % } else { all = contributed; % >
47
- < h2 class = " tutorial-title" > {{#i18n " community-libraries" }}{{/ i18n}}</ h2>
45
+ < % if (p == 0 ) { all = core; % >
46
+ < h2 class = " tutorial-title" > {{#i18n " core-libraries" }}{{/ i18n}}</ h2>
47
+ < % } else { all = contributed; % >
48
+ < h2 class = " tutorial-title" > {{#i18n " community-libraries" }}{{/ i18n}}</ h2>
49
+ < % } % >
50
+ < % let col= 0 ; for (let c in all) { % >
51
+ < % if (col == 0 ) { % >
52
+ < div class = " left-column" >
53
+ < % } else { % >
54
+ < div class = " right-column" >
55
+ < % } % >
56
+ < div class = " label" >
57
+ < a class = " nounderline" href= " <%=all[c].url%>" target= " _blank" >
58
+ < img alt= " " src= " {{assets}}/img/libraries/<%=all[c].name.replace(' ', '_')%>.jpg" >
59
+ < h3>< %= all[c].name % >< / h3>
60
+ < / a>
61
+ < / div>
62
+ < p> {{#i18n " <%=all[c].name%>" }}{{/ i18n}} <% if (all[c] . authors) { %>{{#i18n "libraries-created-by" }}{{/ i 18n}}
63
+ < % for (let i in all[c].authors ) { % >< a href= " <%=all[c].authors[i].url%>"
64
+ target= " _blank" >< %= all[c].authors [i].name % >< / a>< % if (i != all[c].authors .length - 1 ) { % > , < % } } } % >
65
+ < / p>
66
+ < / div>
67
+ < % if (col == 1 || c == all .length - 1 ) { % >
68
+ < div class = " spacer" >< / div>
69
+ < % } % >
70
+ < % col = (col+ 1 )% 2 ; % >
48
71
< % } % >
49
- < % let col= 0 ; for (let c in all) { % >
50
- < % if (col == 0 ) { % >
51
- < div class = " left-column" >
52
- < % } else { % >
53
- < div class = " right-column" >
54
- < % } % >
55
- < div class = " label" >
56
- < a class = " nounderline" href= " <%=all[c].url%>" target= " _blank" >
57
- < img alt= " " src= " {{assets}}/img/libraries/<%=all[c].name.replace(' ', '_')%>.jpg" >
58
- < h3>< %= all[c].name % >< / h3>
59
- < / a>
60
- < / div>
61
- < p> {{#i18n " <%=all[c].name%>" }}{{/ i18n}} <% if (all[c] . authors) { %>{{#i18n "libraries-created-by" }}{{/ i 18n}} < % for (let i in all[c].authors ) { % >< a href= " <%=all[c].authors[i].url%>" target= " _blank" >< %= all[c].authors [i].name % >< / a>< % if (i != all[c].authors .length - 1 ) { % > , < % } } } % >< / p>
62
- < / div>
63
- < % if (col == 1 || c == all .length - 1 ) { % >
64
- < div class = " spacer" >< / div>
65
- < % } % >
66
- < % col = (col+ 1 )% 2 ; % >
67
72
< % } % >
68
- < % } % >
69
73
70
74
71
75
< / main>
@@ -75,4 +79,4 @@ slug: libraries/
75
79
76
80
{{> asterisk}}
77
81
78
- < / div> <!-- end id= " get-started-page" -->
82
+ < / div> <!-- end id= " get-started-page" -->
0 commit comments