Skip to content

Commit

Permalink
deploy: 2ef9298
Browse files Browse the repository at this point in the history
  • Loading branch information
brownoxford committed Sep 16, 2024
1 parent 18eb5ec commit 155dfe4
Show file tree
Hide file tree
Showing 12 changed files with 236,511 additions and 0 deletions.
Empty file.
30,112 changes: 30,112 additions & 0 deletions reports/conformance-1726447924/10875732516-conformance-run-BCGov.html

Large diffs are not rendered by default.

25,047 changes: 25,047 additions & 0 deletions reports/conformance-1726447924/10875732516-conformance-run-BCGov.json

Large diffs are not rendered by default.

31,504 changes: 31,504 additions & 0 deletions reports/conformance-1726447924/10875732516-conformance-run-GS1US.html

Large diffs are not rendered by default.

25,306 changes: 25,306 additions & 0 deletions reports/conformance-1726447924/10875732516-conformance-run-GS1US.json

Large diffs are not rendered by default.

40,411 changes: 40,411 additions & 0 deletions reports/conformance-1726447924/10875732516-conformance-run-Mavennet.html

Large diffs are not rendered by default.

26,867 changes: 26,867 additions & 0 deletions reports/conformance-1726447924/10875732516-conformance-run-Mavennet.json

Large diffs are not rendered by default.

31,365 changes: 31,365 additions & 0 deletions reports/conformance-1726447924/10875732516-conformance-run-mesur.io.html

Large diffs are not rendered by default.

25,278 changes: 25,278 additions & 0 deletions reports/conformance-1726447924/10875732516-conformance-run-mesur.io.json

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions reports/conformance-1726447924/archive/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<html>

<body>
<script>
(async () => {
async function list_directory(user, repo, directory) {
const url = `https://api.github.com/repos/${user}/${repo}/git/trees/gh-pages`;
directory = directory.split('/').filter(Boolean);
const dir = await directory.reduce(async (acc, dir) => {
const { url } = await acc;
const list = await fetch(url).then(res => res.json());
return list.tree.find(node => node.path === dir);
}, { url });
if (dir) {
const list = await fetch(dir.url).then(res => res.json());
return list.tree.map(node => node.path);
}
}

function generate_list(title, suite, folders) {
const re = new RegExp(`(?<suite>${suite})\-(?<unixtime>\\d+)`)
let htmlString = `<h2>${title}</h2>` + '<ul>';

for (let folder of folders) {
const match = folder.match(re);
if (!match) {
console.log("no match " + folder);
continue;
}
const { suite, unixtime } = match.groups;
const datestring = new Date(unixtime * 1000).toLocaleString();
htmlString += `<li><a href="https://w3id.org/traceability/interoperability/reports/${folder}">${suite} - ${datestring}</a></li>`;
}

return htmlString + '</ul>';
}

const folders = await list_directory('w3c-ccg', 'traceability-interop', 'reports');
folders.reverse();

let markup = '';
markup += generate_list("Conformance Report Archive", 'conformance', folders);
markup += generate_list('Interoperability Report Archive', 'interoperability', folders);

document.getElementsByTagName('body')[0].innerHTML = markup;
})()
</script>

</body>

</html>
558 changes: 558 additions & 0 deletions reports/conformance-1726447924/index.html

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions reports/conformance-1726447924/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"items": [
"https://w3id.org/traceability/interoperability/reports/conformance-1726447924/10875732516-conformance-run-BCGov.html",
"https://w3id.org/traceability/interoperability/reports/conformance-1726447924/10875732516-conformance-run-BCGov.json",
"https://w3id.org/traceability/interoperability/reports/conformance-1726447924/10875732516-conformance-run-GS1US.html",
"https://w3id.org/traceability/interoperability/reports/conformance-1726447924/10875732516-conformance-run-GS1US.json",
"https://w3id.org/traceability/interoperability/reports/conformance-1726447924/10875732516-conformance-run-Mavennet.html",
"https://w3id.org/traceability/interoperability/reports/conformance-1726447924/10875732516-conformance-run-Mavennet.json",
"https://w3id.org/traceability/interoperability/reports/conformance-1726447924/10875732516-conformance-run-mesur.io.html",
"https://w3id.org/traceability/interoperability/reports/conformance-1726447924/10875732516-conformance-run-mesur.io.json"
]
}

0 comments on commit 155dfe4

Please sign in to comment.