diff --git a/doc-src/Rules b/doc-src/Rules index 0e3d13c4..56d49d9f 100644 --- a/doc-src/Rules +++ b/doc-src/Rules @@ -27,7 +27,7 @@ end compile '/examples/*/' do filter :haml, :ugly => true - filter :highlight if ENV['SYNTAX'] + filter :highlight layout 'example' end @@ -43,7 +43,7 @@ end compile '/reference/*/' do filter :haml, :ugly => true - filter :highlight if ENV['SYNTAX'] + filter :highlight layout item[:layout] || 'main' end diff --git a/doc-src/assets/javascripts/shAutoloader.js b/doc-src/assets/javascripts/shAutoloader.js new file mode 100644 index 00000000..4e29bdde --- /dev/null +++ b/doc-src/assets/javascripts/shAutoloader.js @@ -0,0 +1,17 @@ +/** + * SyntaxHighlighter + * http://alexgorbatchev.com/SyntaxHighlighter + * + * SyntaxHighlighter is donationware. If you are using it, please donate. + * http://alexgorbatchev.com/SyntaxHighlighter/donate.html + * + * @version + * 3.0.83 (July 02 2010) + * + * @copyright + * Copyright (C) 2004-2010 Alex Gorbatchev. + * + * @license + * Dual licensed under the MIT and GPL licenses. + */ +eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2(){1 h=5;h.I=2(){2 n(c,a){4(1 d=0;d