Skip to content

Commit b60e505

Browse files
committed
Establish link back from talks to github issues that link to them
1 parent b65aeaf commit b60e505

33 files changed

+40
-0
lines changed

Diff for: _includes/related-issues/ay_tensorflow.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>Related conversations on <a href='https://github.com/w3c/machine-learning-workshop/issues'>GitHub</a>:</p><ul><li><a href='https://github.com/w3c/machine-learning-workshop/issues/63'>#63 WebGL garbage collection</a></li></ul>

Diff for: _includes/related-issues/ba_realtime-media.html

Whitespace-only changes.

Diff for: _includes/related-issues/cb_hardware.html

Whitespace-only changes.

Diff for: _includes/related-issues/cc_directml.html

Whitespace-only changes.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>Related conversations on <a href='https://github.com/w3c/machine-learning-workshop/issues'>GitHub</a>:</p><ul><li><a href='https://github.com/w3c/machine-learning-workshop/issues/68'>#68 Progressive Enhancement / Graceful degradation</a></li></ul>

Diff for: _includes/related-issues/en_onnxjs.html

Whitespace-only changes.

Diff for: _includes/related-issues/fd-media-hooks.html

Whitespace-only changes.

Diff for: _includes/related-issues/jb_model.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>Related conversations on <a href='https://github.com/w3c/machine-learning-workshop/issues'>GitHub</a>:</p><ul><li><a href='https://github.com/w3c/machine-learning-workshop/issues/68'>#68 Progressive Enhancement / Graceful degradation</a></li></ul>

Diff for: _includes/related-issues/jh_parallel-programming.html

Whitespace-only changes.

Diff for: _includes/related-issues/jm_lr_mobile.html

Whitespace-only changes.

Diff for: _includes/related-issues/jm_tensorflowjs.html

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<p>Related conversations on <a href='https://github.com/w3c/machine-learning-workshop/issues'>GitHub</a>:</p><ul><li><a href='https://github.com/w3c/machine-learning-workshop/issues/62'>#62 Applicability to non-browser JS environments</a></li>
2+
<li><a href='https://github.com/w3c/machine-learning-workshop/issues/64'>#64 Support for Float16 in JS & WASM environments</a></li>
3+
<li><a href='https://github.com/w3c/machine-learning-workshop/issues/66'>#66 WebGPU fitness for ML frameworks</a></li>
4+
<li><a href='https://github.com/w3c/machine-learning-workshop/issues/67'>#67 Protecting ML models</a></li></ul>

Diff for: _includes/related-issues/jmv_rnnoise.html

Whitespace-only changes.

Diff for: _includes/related-issues/jr_fairness.html

Whitespace-only changes.

Diff for: _includes/related-issues/jt_ai-bias.html

Whitespace-only changes.

Diff for: _includes/related-issues/kd_speech.html

Whitespace-only changes.

Diff for: _includes/related-issues/lmc_musicians.html

Whitespace-only changes.

Diff for: _includes/related-issues/ms_ab_wasinn.html

Whitespace-only changes.

Diff for: _includes/related-issues/mw-androidnn.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>Related conversations on <a href='https://github.com/w3c/machine-learning-workshop/issues'>GitHub</a>:</p><ul><li><a href='https://github.com/w3c/machine-learning-workshop/issues/68'>#68 Progressive Enhancement / Graceful degradation</a></li></ul>

Diff for: _includes/related-issues/nb_privacy-translation.html

Whitespace-only changes.

Diff for: _includes/related-issues/nh_webnn.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>Related conversations on <a href='https://github.com/w3c/machine-learning-workshop/issues'>GitHub</a>:</p><ul><li><a href='https://github.com/w3c/machine-learning-workshop/issues/68'>#68 Progressive Enhancement / Graceful degradation</a></li></ul>

Diff for: _includes/related-issues/op_content-filtering.html

Whitespace-only changes.

Diff for: _includes/related-issues/pl_privacy.html

Whitespace-only changes.

Diff for: _includes/related-issues/pm_visualization.html

Whitespace-only changes.

Diff for: _includes/related-issues/pw_paddlejs.html

Whitespace-only changes.

Diff for: _includes/related-issues/rt_nlp.html

Whitespace-only changes.

Diff for: _includes/related-issues/sm_architecture.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>Related conversations on <a href='https://github.com/w3c/machine-learning-workshop/issues'>GitHub</a>:</p><ul><li><a href='https://github.com/w3c/machine-learning-workshop/issues/62'>#62 Applicability to non-browser JS environments</a></li></ul>

Diff for: _includes/related-issues/tp_interactive_music.html

Whitespace-only changes.

Diff for: _includes/related-issues/wm_collaborative-learning.html

Whitespace-only changes.

Diff for: _includes/related-issues/yh-xq-dnn.html

Whitespace-only changes.

Diff for: _includes/related-issues/ym_how-far.html

Whitespace-only changes.

Diff for: _includes/related-issues/zc_expression.html

Whitespace-only changes.

Diff for: _layouts/talk.html

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ <h2>{{page.title}} - by {{page.author}}{% if page.affiliation %} ({{page.affilia
5151
{% assign shortname = page.shortname %}
5252
{% assign path = "../" %}
5353
<main>
54+
{% include related-issues/{{shortname}}.html %}
5455
<details>
5556
<summary>Keyboard shortcuts in the video player</summary>
5657
<ul>

Diff for: _tools/extract-issues.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
const fs = require("fs");
2+
const talks = require("../_data/talks.json").reduce((acc, obj) => Object.assign(acc, obj), {});
3+
const fetch = require("node-fetch");
4+
5+
const toSlug = title => title.replace(/([A-Z])/g, s => s.toLowerCase())
6+
.replace(/[^a-z0-9]/g, '_')
7+
.replace(/_+/g, '_');
8+
9+
(async function() {
10+
const ghIssues = await fetch("https://labs.w3.org/github-cache/v3/repos/w3c/machine-learning-workshop/issues?state=open").then(r => r.json());
11+
12+
for (let shortname of Object.keys(talks)) {
13+
const talk = talks[shortname];
14+
const url = "https://www.w3.org/2020/06/machine-learning-workshop/talks/" + toSlug(talk.title) + ".html";
15+
let content = "";
16+
let htmlIssueList = ghIssues.filter(i => i.body.includes(url)).sort((a, b) => a.number - b.number)
17+
.map(i => `<li><a href='${i.html_url}'>#${i.number} ${i.title}</a></li>`).join('\n');
18+
if (htmlIssueList !== "") {
19+
content = "<p>Related conversations on <a href='https://github.com/w3c/machine-learning-workshop/issues'>GitHub</a>:</p><ul>";
20+
content += htmlIssueList;
21+
content += "</ul>";
22+
}
23+
fs.writeFileSync("_includes/related-issues/" + shortname + ".html", content, {encoding: "utf-8"});
24+
}
25+
})().catch(
26+
err => {
27+
console.error(err);
28+
process.exit(2);
29+
});

0 commit comments

Comments
 (0)