Skip to content

Commit 0ad4401

Browse files
committed
add all .idp to example search
1 parent 4d5de97 commit 0ad4401

File tree

3 files changed

+11498
-1040
lines changed

3 files changed

+11498
-1040
lines changed

source/_static/js/examples.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ loadExamplefromGitHub = (name, dir, editor) => {
5050
highlightKeyword(editor)
5151
}
5252

53-
const url = 'https://raw.githubusercontent.com/FreeFem/FreeFem-sources/master/examples/'+dir+'/'+name
53+
const fpath = (dir == 'idp' ? '' : 'examples/') + dir + '/'+name
54+
const url = 'https://raw.githubusercontent.com/FreeFem/FreeFem-sources/master/' + fpath
5455
console.log("load " + dir + "/" + name + "from GitHub");
55-
document.getElementById('ExampleLinkToGitHub').innerHTML = "<a href='https://github.com/FreeFem/FreeFem-sources/blob/master/examples/"+dir+"/"+name+"' target='_blank'>"+dir+"/"+name+"</a>";
56+
document.getElementById('ExampleLinkToGitHub').innerHTML = "<a href='https://github.com/FreeFem/FreeFem-sources/blob/master/"+fpath+"' target='_blank'>"+dir+"/"+name+"</a>";
5657
HTTPGet(url, load)
5758
}
5859

0 commit comments

Comments
 (0)