Skip to content

Commit

Permalink
fix creation of the index file
Browse files Browse the repository at this point in the history
  • Loading branch information
anddann authored and mbenz89 committed Dec 29, 2021
1 parent 653d654 commit 75d37fd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,18 @@
const data = await response.json();
let htmlString = '<ul>';
for (let file of data) {
htmlString += `<li><a href="${file.path}">${file.name}</a></li>`;
// do not create an index for html or css files
if(file.name.endsWith('.html') || file.name.endsWith('.css') ){
continue
}
htmlString += `<li>`
htmlString += `<a href="${file.name}">${file.name}</a>`
// create direct links to jdoc and options
htmlString += `<ul>`
htmlString += `<li><a href="${file.name}/options/soot_options.html">Soot Options</a></li>`;
htmlString += `<li><a href="${file.name}/jdoc/index.html">JavaDoc</a></li>`;
htmlString += `</ul>`
htmlString += `</li>`
}
htmlString += '</ul>';
document.getElementsByTagName('body')[0].innerHTML = htmlString;
Expand Down

0 comments on commit 75d37fd

Please sign in to comment.