mirror of
https://github.com/esiur/iui.git
synced 2025-06-27 09:23:12 +00:00
docs
This commit is contained in:
16
docs/js/docs.js
Normal file
16
docs/js/docs.js
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
|
||||
marked.setOptions({
|
||||
highlight: function(code, lang) {
|
||||
return hljs.highlight(lang, code).value;
|
||||
}
|
||||
});
|
||||
|
||||
async function load(route) {
|
||||
var link = "md/" + route.link + ".md";
|
||||
let content = await fetch(link);
|
||||
if (content.status != 200)
|
||||
return "Not found " + content.url;
|
||||
var md = marked(await content.text());
|
||||
return md;
|
||||
}
|
Reference in New Issue
Block a user