Use sdoc to generate application code documentation
This commit is contained in:
parent
d075df56d3
commit
96d49bf04c
589 changed files with 75674 additions and 99966 deletions
24
doc/code/js/main.js
Executable file
24
doc/code/js/main.js
Executable file
|
@ -0,0 +1,24 @@
|
|||
function toggleSource(id)
|
||||
{
|
||||
var src = $('#' + id).toggle();
|
||||
var isVisible = src.is(':visible');
|
||||
$('#l_' + id).html(isVisible ? 'hide' : 'show');
|
||||
if (!src.data('syntax-higlighted')) {
|
||||
src.data('syntax-higlighted', 1);
|
||||
hljs.highlightBlock(src[0]);
|
||||
}
|
||||
}
|
||||
|
||||
window.highlight = function(url) {
|
||||
var hash = url.match(/#([^#]+)$/)
|
||||
if(hash) {
|
||||
$('a[name=' + hash[1] + ']').parent().effect('highlight', {}, 'slow')
|
||||
}
|
||||
}
|
||||
|
||||
$(function() {
|
||||
highlight('#' + location.hash);
|
||||
$('.description pre').each(function() {
|
||||
hljs.highlightBlock(this);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue