Skip to content

Commit e3e2f71

Browse files
committed
added links to p5.sound and dom in libraries page
1 parent 278fd1e commit e3e2f71

File tree

1 file changed

+34
-30
lines changed

1 file changed

+34
-30
lines changed

src/data/libraries/libraries.ejs

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ slug: libraries/
1414

1515
<h2>{{#i18n "using-a-library-title"}}{{/i18n}}</h2>
1616

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>
1818
{{#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>
2121

2222
<p>{{#i18n "using-a-library4"}}{{/i18n}}</p>
2323
<pre><code class="language-markup">&lt;!doctype html&lt;
@@ -35,37 +35,41 @@ slug: libraries/
3535
<h2>{{#i18n "create-your-own-title"}}{{/i18n}}</h2>
3636

3737
<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>
4040
{{#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>
4243

4344
<% 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" }}{{/i18n}}
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; %>
4871
<% } %>
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" }}{{/i18n}} <% 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; %>
6772
<% } %>
68-
<% } %>
6973
7074
7175
</main>
@@ -75,4 +79,4 @@ slug: libraries/
7579
7680
{{> asterisk}}
7781
78-
</div><!-- end id="get-started-page" -->
82+
</div><!-- end id="get-started-page" -->

0 commit comments

Comments
 (0)