Fix API search, links, sidebar style; update panino req version for funcdocs fix
This commit is contained in:
parent
d394552587
commit
8298881fc0
60 changed files with 80 additions and 148 deletions
24
api/resources/javascripts/prettify-extension.js
Normal file
24
api/resources/javascripts/prettify-extension.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
// Stolen from StackOverflow. Find all </code><pre><code>
|
||||
// elements on the page and add the "prettyprint" style. If at least one
|
||||
// prettyprint element was found, call the Google Prettify prettyPrint() API.
|
||||
//http://sstatic.net/so/js/master.js?v=6523
|
||||
function styleCode()
|
||||
{
|
||||
if (typeof disableStyleCode != "undefined")
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var a = false;
|
||||
|
||||
$("pre code").parent().each(function()
|
||||
{
|
||||
if (!$(this).hasClass("prettyprint"))
|
||||
{
|
||||
$(this).addClass("prettyprint");
|
||||
a = true
|
||||
}
|
||||
});
|
||||
|
||||
if (a) { prettyPrint() }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue