docurium 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/.gitignore +3 -0
  2. data/Gemfile +5 -0
  3. data/LICENCE +19 -0
  4. data/README.md +39 -0
  5. data/TODO.txt +19 -0
  6. data/bin/cm +31 -0
  7. data/docurium.gemspec +25 -0
  8. data/lib/docurium.rb +435 -0
  9. data/lib/docurium/cli.rb +10 -0
  10. data/site/css/style.css +236 -0
  11. data/site/images/search_icon.png +0 -0
  12. data/site/index.html +65 -0
  13. data/site/js/backbone.js +27 -0
  14. data/site/js/docurium.js +649 -0
  15. data/site/js/json2.js +26 -0
  16. data/site/js/underscore.js +26 -0
  17. data/site/shared/css/documentation.css +797 -0
  18. data/site/shared/css/pygments.css +60 -0
  19. data/site/shared/images/active-arrow.png +0 -0
  20. data/site/shared/images/background-v2.png +0 -0
  21. data/site/shared/images/background-white.png +0 -0
  22. data/site/shared/images/dropdown_sprites.jpg +0 -0
  23. data/site/shared/images/footer_logo.png +0 -0
  24. data/site/shared/images/logo.png +0 -0
  25. data/site/shared/images/nav-rule.png +0 -0
  26. data/site/shared/images/next_step_arrow.gif +0 -0
  27. data/site/shared/images/qmark.png +0 -0
  28. data/site/shared/js/documentation.js +43 -0
  29. data/site/shared/js/jquery.js +154 -0
  30. data/test/fixtures/git2/api.docurium +6 -0
  31. data/test/fixtures/git2/blob.h +121 -0
  32. data/test/fixtures/git2/commit.h +302 -0
  33. data/test/fixtures/git2/common.h +98 -0
  34. data/test/fixtures/git2/errors.h +149 -0
  35. data/test/fixtures/git2/index.h +270 -0
  36. data/test/fixtures/git2/object.h +147 -0
  37. data/test/fixtures/git2/odb.h +302 -0
  38. data/test/fixtures/git2/odb_backend.h +107 -0
  39. data/test/fixtures/git2/oid.h +191 -0
  40. data/test/fixtures/git2/refs.h +325 -0
  41. data/test/fixtures/git2/repository.h +217 -0
  42. data/test/fixtures/git2/revwalk.h +187 -0
  43. data/test/fixtures/git2/signature.h +81 -0
  44. data/test/fixtures/git2/tag.h +297 -0
  45. data/test/fixtures/git2/thread-utils.h +71 -0
  46. data/test/fixtures/git2/tree.h +266 -0
  47. data/test/fixtures/git2/types.h +162 -0
  48. data/test/fixtures/git2/zlib.h +58 -0
  49. data/test/repo_test.rb +101 -0
  50. data/test/test_helper.rb +29 -0
  51. metadata +167 -0
data/site/js/json2.js ADDED
@@ -0,0 +1,26 @@
1
+
2
+ var JSON;if(!JSON){JSON={};}
3
+ (function(){"use strict";function f(n){return n<10?'0'+n:n;}
4
+ if(typeof Date.prototype.toJSON!=='function'){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+'-'+
5
+ f(this.getUTCMonth()+1)+'-'+
6
+ f(this.getUTCDate())+'T'+
7
+ f(this.getUTCHours())+':'+
8
+ f(this.getUTCMinutes())+':'+
9
+ f(this.getUTCSeconds())+'Z':null;};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf();};}
10
+ var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==='string'?c:'\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+string+'"';}
11
+ function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key);}
12
+ if(typeof rep==='function'){value=rep.call(holder,key,value);}
13
+ switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null';}
14
+ gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==='[object Array]'){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||'null';}
15
+ v=partial.length===0?'[]':gap?'[\n'+gap+partial.join(',\n'+gap)+'\n'+mind+']':'['+partial.join(',')+']';gap=mind;return v;}
16
+ if(rep&&typeof rep==='object'){length=rep.length;for(i=0;i<length;i+=1){if(typeof rep[i]==='string'){k=rep[i];v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}else{for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?': ':':')+v);}}}}
17
+ v=partial.length===0?'{}':gap?'{\n'+gap+partial.join(',\n'+gap)+'\n'+mind+'}':'{'+partial.join(',')+'}';gap=mind;return v;}}
18
+ if(typeof JSON.stringify!=='function'){JSON.stringify=function(value,replacer,space){var i;gap='';indent='';if(typeof space==='number'){for(i=0;i<space;i+=1){indent+=' ';}}else if(typeof space==='string'){indent=space;}
19
+ rep=replacer;if(replacer&&typeof replacer!=='function'&&(typeof replacer!=='object'||typeof replacer.length!=='number')){throw new Error('JSON.stringify');}
20
+ return str('',{'':value});};}
21
+ if(typeof JSON.parse!=='function'){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==='object'){for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v;}else{delete value[k];}}}}
22
+ return reviver.call(holder,key,value);}
23
+ text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return'\\u'+
24
+ ('0000'+a.charCodeAt(0).toString(16)).slice(-4);});}
25
+ if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,'@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,']').replace(/(?:^|:|,)(?:\s*\[)+/g,''))){j=eval('('+text+')');return typeof reviver==='function'?walk({'':j},''):j;}
26
+ throw new SyntaxError('JSON.parse');};}}());
@@ -0,0 +1,26 @@
1
+ // Underscore.js 1.1.6
2
+ // (c) 2011 Jeremy Ashkenas, DocumentCloud Inc.
3
+ // Underscore is freely distributable under the MIT license.
4
+ // Portions of Underscore are inspired or borrowed from Prototype,
5
+ // Oliver Steele's Functional, and John Resig's Micro-Templating.
6
+ // For all details and documentation:
7
+ // http://documentcloud.github.com/underscore
8
+ (function(){var p=this,C=p._,m={},i=Array.prototype,n=Object.prototype,f=i.slice,D=i.unshift,E=n.toString,l=n.hasOwnProperty,s=i.forEach,t=i.map,u=i.reduce,v=i.reduceRight,w=i.filter,x=i.every,y=i.some,o=i.indexOf,z=i.lastIndexOf;n=Array.isArray;var F=Object.keys,q=Function.prototype.bind,b=function(a){return new j(a)};typeof module!=="undefined"&&module.exports?(module.exports=b,b._=b):p._=b;b.VERSION="1.1.6";var h=b.each=b.forEach=function(a,c,d){if(a!=null)if(s&&a.forEach===s)a.forEach(c,d);else if(b.isNumber(a.length))for(var e=
9
+ 0,k=a.length;e<k;e++){if(c.call(d,a[e],e,a)===m)break}else for(e in a)if(l.call(a,e)&&c.call(d,a[e],e,a)===m)break};b.map=function(a,c,b){var e=[];if(a==null)return e;if(t&&a.map===t)return a.map(c,b);h(a,function(a,g,G){e[e.length]=c.call(b,a,g,G)});return e};b.reduce=b.foldl=b.inject=function(a,c,d,e){var k=d!==void 0;a==null&&(a=[]);if(u&&a.reduce===u)return e&&(c=b.bind(c,e)),k?a.reduce(c,d):a.reduce(c);h(a,function(a,b,f){!k&&b===0?(d=a,k=!0):d=c.call(e,d,a,b,f)});if(!k)throw new TypeError("Reduce of empty array with no initial value");
10
+ return d};b.reduceRight=b.foldr=function(a,c,d,e){a==null&&(a=[]);if(v&&a.reduceRight===v)return e&&(c=b.bind(c,e)),d!==void 0?a.reduceRight(c,d):a.reduceRight(c);a=(b.isArray(a)?a.slice():b.toArray(a)).reverse();return b.reduce(a,c,d,e)};b.find=b.detect=function(a,c,b){var e;A(a,function(a,g,f){if(c.call(b,a,g,f))return e=a,!0});return e};b.filter=b.select=function(a,c,b){var e=[];if(a==null)return e;if(w&&a.filter===w)return a.filter(c,b);h(a,function(a,g,f){c.call(b,a,g,f)&&(e[e.length]=a)});return e};
11
+ b.reject=function(a,c,b){var e=[];if(a==null)return e;h(a,function(a,g,f){c.call(b,a,g,f)||(e[e.length]=a)});return e};b.every=b.all=function(a,c,b){var e=!0;if(a==null)return e;if(x&&a.every===x)return a.every(c,b);h(a,function(a,g,f){if(!(e=e&&c.call(b,a,g,f)))return m});return e};var A=b.some=b.any=function(a,c,d){c||(c=b.identity);var e=!1;if(a==null)return e;if(y&&a.some===y)return a.some(c,d);h(a,function(a,b,f){if(e=c.call(d,a,b,f))return m});return e};b.include=b.contains=function(a,c){var b=
12
+ !1;if(a==null)return b;if(o&&a.indexOf===o)return a.indexOf(c)!=-1;A(a,function(a){if(b=a===c)return!0});return b};b.invoke=function(a,c){var d=f.call(arguments,2);return b.map(a,function(a){return(c.call?c||a:a[c]).apply(a,d)})};b.pluck=function(a,c){return b.map(a,function(a){return a[c]})};b.max=function(a,c,d){if(!c&&b.isArray(a))return Math.max.apply(Math,a);var e={computed:-Infinity};h(a,function(a,b,f){b=c?c.call(d,a,b,f):a;b>=e.computed&&(e={value:a,computed:b})});return e.value};b.min=function(a,
13
+ c,d){if(!c&&b.isArray(a))return Math.min.apply(Math,a);var e={computed:Infinity};h(a,function(a,b,f){b=c?c.call(d,a,b,f):a;b<e.computed&&(e={value:a,computed:b})});return e.value};b.sortBy=function(a,c,d){return b.pluck(b.map(a,function(a,b,f){return{value:a,criteria:c.call(d,a,b,f)}}).sort(function(a,b){var c=a.criteria,d=b.criteria;return c<d?-1:c>d?1:0}),"value")};b.sortedIndex=function(a,c,d){d||(d=b.identity);for(var e=0,f=a.length;e<f;){var g=e+f>>1;d(a[g])<d(c)?e=g+1:f=g}return e};b.toArray=
14
+ function(a){if(!a)return[];if(a.toArray)return a.toArray();if(b.isArray(a))return a;if(b.isArguments(a))return f.call(a);return b.values(a)};b.size=function(a){return b.toArray(a).length};b.first=b.head=function(a,b,d){return b!=null&&!d?f.call(a,0,b):a[0]};b.rest=b.tail=function(a,b,d){return f.call(a,b==null||d?1:b)};b.last=function(a){return a[a.length-1]};b.compact=function(a){return b.filter(a,function(a){return!!a})};b.flatten=function(a){return b.reduce(a,function(a,d){if(b.isArray(d))return a.concat(b.flatten(d));
15
+ a[a.length]=d;return a},[])};b.without=function(a){var c=f.call(arguments,1);return b.filter(a,function(a){return!b.include(c,a)})};b.uniq=b.unique=function(a,c){return b.reduce(a,function(a,e,f){if(0==f||(c===!0?b.last(a)!=e:!b.include(a,e)))a[a.length]=e;return a},[])};b.intersect=function(a){var c=f.call(arguments,1);return b.filter(b.uniq(a),function(a){return b.every(c,function(c){return b.indexOf(c,a)>=0})})};b.zip=function(){for(var a=f.call(arguments),c=b.max(b.pluck(a,"length")),d=Array(c),
16
+ e=0;e<c;e++)d[e]=b.pluck(a,""+e);return d};b.indexOf=function(a,c,d){if(a==null)return-1;var e;if(d)return d=b.sortedIndex(a,c),a[d]===c?d:-1;if(o&&a.indexOf===o)return a.indexOf(c);d=0;for(e=a.length;d<e;d++)if(a[d]===c)return d;return-1};b.lastIndexOf=function(a,b){if(a==null)return-1;if(z&&a.lastIndexOf===z)return a.lastIndexOf(b);for(var d=a.length;d--;)if(a[d]===b)return d;return-1};b.range=function(a,b,d){arguments.length<=1&&(b=a||0,a=0);d=arguments[2]||1;for(var e=Math.max(Math.ceil((b-a)/
17
+ d),0),f=0,g=Array(e);f<e;)g[f++]=a,a+=d;return g};b.bind=function(a,b){if(a.bind===q&&q)return q.apply(a,f.call(arguments,1));var d=f.call(arguments,2);return function(){return a.apply(b,d.concat(f.call(arguments)))}};b.bindAll=function(a){var c=f.call(arguments,1);c.length==0&&(c=b.functions(a));h(c,function(c){a[c]=b.bind(a[c],a)});return a};b.memoize=function(a,c){var d={};c||(c=b.identity);return function(){var b=c.apply(this,arguments);return l.call(d,b)?d[b]:d[b]=a.apply(this,arguments)}};b.delay=
18
+ function(a,b){var d=f.call(arguments,2);return setTimeout(function(){return a.apply(a,d)},b)};b.defer=function(a){return b.delay.apply(b,[a,1].concat(f.call(arguments,1)))};var B=function(a,b,d){var e;return function(){var f=this,g=arguments,h=function(){e=null;a.apply(f,g)};d&&clearTimeout(e);if(d||!e)e=setTimeout(h,b)}};b.throttle=function(a,b){return B(a,b,!1)};b.debounce=function(a,b){return B(a,b,!0)};b.once=function(a){var b=!1,d;return function(){if(b)return d;b=!0;return d=a.apply(this,arguments)}};
19
+ b.wrap=function(a,b){return function(){var d=[a].concat(f.call(arguments));return b.apply(this,d)}};b.compose=function(){var a=f.call(arguments);return function(){for(var b=f.call(arguments),d=a.length-1;d>=0;d--)b=[a[d].apply(this,b)];return b[0]}};b.after=function(a,b){return function(){if(--a<1)return b.apply(this,arguments)}};b.keys=F||function(a){if(a!==Object(a))throw new TypeError("Invalid object");var b=[],d;for(d in a)l.call(a,d)&&(b[b.length]=d);return b};b.values=function(a){return b.map(a,
20
+ b.identity)};b.functions=b.methods=function(a){return b.filter(b.keys(a),function(c){return b.isFunction(a[c])}).sort()};b.extend=function(a){h(f.call(arguments,1),function(b){for(var d in b)b[d]!==void 0&&(a[d]=b[d])});return a};b.defaults=function(a){h(f.call(arguments,1),function(b){for(var d in b)a[d]==null&&(a[d]=b[d])});return a};b.clone=function(a){return b.isArray(a)?a.slice():b.extend({},a)};b.tap=function(a,b){b(a);return a};b.isEqual=function(a,c){if(a===c)return!0;var d=typeof a;if(d!=
21
+ typeof c)return!1;if(a==c)return!0;if(!a&&c||a&&!c)return!1;if(a._chain)a=a._wrapped;if(c._chain)c=c._wrapped;if(a.isEqual)return a.isEqual(c);if(b.isDate(a)&&b.isDate(c))return a.getTime()===c.getTime();if(b.isNaN(a)&&b.isNaN(c))return!1;if(b.isRegExp(a)&&b.isRegExp(c))return a.source===c.source&&a.global===c.global&&a.ignoreCase===c.ignoreCase&&a.multiline===c.multiline;if(d!=="object")return!1;if(a.length&&a.length!==c.length)return!1;d=b.keys(a);var e=b.keys(c);if(d.length!=e.length)return!1;
22
+ for(var f in a)if(!(f in c)||!b.isEqual(a[f],c[f]))return!1;return!0};b.isEmpty=function(a){if(b.isArray(a)||b.isString(a))return a.length===0;for(var c in a)if(l.call(a,c))return!1;return!0};b.isElement=function(a){return!!(a&&a.nodeType==1)};b.isArray=n||function(a){return E.call(a)==="[object Array]"};b.isArguments=function(a){return!(!a||!l.call(a,"callee"))};b.isFunction=function(a){return!(!a||!a.constructor||!a.call||!a.apply)};b.isString=function(a){return!!(a===""||a&&a.charCodeAt&&a.substr)};
23
+ b.isNumber=function(a){return!!(a===0||a&&a.toExponential&&a.toFixed)};b.isNaN=function(a){return a!==a};b.isBoolean=function(a){return a===!0||a===!1};b.isDate=function(a){return!(!a||!a.getTimezoneOffset||!a.setUTCFullYear)};b.isRegExp=function(a){return!(!a||!a.test||!a.exec||!(a.ignoreCase||a.ignoreCase===!1))};b.isNull=function(a){return a===null};b.isUndefined=function(a){return a===void 0};b.noConflict=function(){p._=C;return this};b.identity=function(a){return a};b.times=function(a,b,d){for(var e=
24
+ 0;e<a;e++)b.call(d,e)};b.mixin=function(a){h(b.functions(a),function(c){H(c,b[c]=a[c])})};var I=0;b.uniqueId=function(a){var b=I++;return a?a+b:b};b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g};b.template=function(a,c){var d=b.templateSettings;d="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+a.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(d.interpolate,function(a,b){return"',"+b.replace(/\\'/g,"'")+",'"}).replace(d.evaluate||
25
+ null,function(a,b){return"');"+b.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');";d=new Function("obj",d);return c?d(c):d};var j=function(a){this._wrapped=a};b.prototype=j.prototype;var r=function(a,c){return c?b(a).chain():a},H=function(a,c){j.prototype[a]=function(){var a=f.call(arguments);D.call(a,this._wrapped);return r(c.apply(b,a),this._chain)}};b.mixin(b);h(["pop","push","reverse","shift","sort",
26
+ "splice","unshift"],function(a){var b=i[a];j.prototype[a]=function(){b.apply(this._wrapped,arguments);return r(this._wrapped,this._chain)}});h(["concat","join","slice"],function(a){var b=i[a];j.prototype[a]=function(){return r(b.apply(this._wrapped,arguments),this._chain)}});j.prototype.chain=function(){this._chain=!0;return this};j.prototype.value=function(){return this._wrapped}})();
@@ -0,0 +1,797 @@
1
+ /*------------------------------------------------------------------------------
2
+ Global Documentation Styles
3
+ ------------------------------------------------------------------------------*/
4
+
5
+ html {
6
+ height:100%;
7
+ }
8
+
9
+ body {
10
+ font: 13px helvetica,arial,freesans,clean,sans-serif;
11
+ line-height: 1.4em;
12
+ background-color: #fff;
13
+ color: #393939;
14
+ margin: 0px;
15
+ padding: 0px;
16
+ height: 100%;
17
+ }
18
+
19
+ p {
20
+ margin: 1em 0;
21
+ }
22
+
23
+ h1 {
24
+ font-size: 20px;
25
+ border-bottom: 1px solid #cccccc;
26
+ padding: .5em 0;
27
+ margin: 2em 0 1em;
28
+ }
29
+
30
+ h1:first-child {
31
+ margin: 0 0 1em;
32
+ }
33
+
34
+ h2 {
35
+ font-size: 16px;
36
+ color: #333;
37
+ margin: 2em auto 1em;
38
+ }
39
+
40
+ h2 span.step {
41
+ color: #666;
42
+ }
43
+
44
+ h3 {
45
+ font-size: 14px;
46
+ color: #333;
47
+ margin: 1.5em 0 .5em;
48
+ }
49
+
50
+ h5 {
51
+ font-size: 13px;
52
+ }
53
+
54
+ h6 {
55
+ font-size: 13px;
56
+ color: #666;
57
+ }
58
+
59
+ a {
60
+ color: #4183C4;
61
+ text-decoration: none;
62
+ }
63
+
64
+ a:hover,
65
+ a:active {
66
+ text-decoration:underline;
67
+ }
68
+
69
+ blockquote {
70
+ margin:0 -5px;
71
+ padding: 0px 20px;
72
+ }
73
+
74
+ ul,
75
+ ol {
76
+ margin: 0px;
77
+ padding: 0px;
78
+ }
79
+
80
+ dt {
81
+ font-weight: bold;
82
+ }
83
+
84
+ dd {
85
+ padding-left: 1em;
86
+ margin-bottom: 1em;
87
+ }
88
+
89
+ dd + dd {
90
+ margin-bottom: 0;
91
+ }
92
+
93
+ span.attention,
94
+ p.attention {
95
+ color: #e98400;
96
+ font-style: italic;
97
+ }
98
+
99
+ a img {
100
+ border: 0px;
101
+ }
102
+
103
+ /*------------------------------------------------------------------------------
104
+ Header Styles
105
+ ------------------------------------------------------------------------------*/
106
+
107
+ #header-wrapper {
108
+ margin-bottom: 0;
109
+ clear: both;
110
+ height: 91px;
111
+ background: white url(../images/background-v2.png) 0 0 repeat-x;
112
+ }
113
+
114
+ #header {
115
+ margin: 0 auto;
116
+ width: 920px;
117
+ }
118
+
119
+ #header a.logo {
120
+ float: left;
121
+ margin-top: 15px;
122
+ display: inline-block;
123
+ }
124
+
125
+ #header ul.nav {
126
+ float: right;
127
+ padding: 8px 3px 8px 2px;
128
+ font-weight: bold;
129
+ text-shadow: white 1px 1px 0px;
130
+ font-size: 12px;
131
+ margin-top: 18px;
132
+ background: #f5f5f5;
133
+ filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#fcfcfc', endColorstr='#ececec');
134
+ background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#fcfcfc), to(#e8e8e8));
135
+ background:-moz-linear-gradient(270deg, #fcfcfc, #ececec);
136
+ border-color:#eee;
137
+ border:1px solid #e9e9e9;
138
+ border-bottom-color:#f5f5f5;
139
+ -webkit-border-radius:5px;
140
+ -moz-border-radius:5px;
141
+ border-radius:5px;
142
+ -webkit-box-shadow:0 1px 1px rgba(0,0,0,0.2);
143
+ -moz-box-shadow:0 1px 1px rgba(0,0,0,0.2);
144
+ box-shadow:0 1px 1px rgba(0,0,0,0.2);
145
+ }
146
+
147
+ #header ul.nav li:first-child {
148
+ background: transparent;
149
+ }
150
+
151
+ #header ul.nav li {
152
+ float: left;
153
+ margin: 0;
154
+ padding: 0px 11px 0px 13px;
155
+ list-style-type: none;
156
+ background: url(../images/nav-rule.png) no-repeat 0px 50%;
157
+ line-height: 1.4em;
158
+ }
159
+
160
+ #header a {
161
+ outline: none;
162
+ text-decoration: none;
163
+ }
164
+
165
+ /*------------------------------------------------------------------------------
166
+ Sidebar
167
+ ------------------------------------------------------------------------------*/
168
+
169
+ div.sidebar-shell {
170
+ position: relative;
171
+ float: right;
172
+ margin: 30px 0 0;
173
+ }
174
+
175
+ div.sidebar-module {
176
+ padding: 3px;
177
+ background: #EEE;
178
+ -moz-border-radius: 3px;
179
+ -webkit-border-radius: 3px;
180
+ border-radius: 3px;
181
+ display: block;
182
+ width: 332px;
183
+ margin-bottom: 20px;
184
+ font-size: 12px;
185
+ }
186
+
187
+ div.sidebar-module > ul {
188
+ background: #fafafb;
189
+ border: solid #CACACA;
190
+ border-width: 1px 1px 0px 1px;
191
+ margin: 0px;
192
+ }
193
+
194
+ div.sidebar-module > p {
195
+ background: #fafafb;
196
+ border: solid #CACACA;
197
+ border-width: 1px;
198
+ padding: 8px 10px;
199
+ margin: 0px;
200
+ display: block;
201
+ line-height: 1.4em;
202
+ }
203
+
204
+ div.sidebar-module li {
205
+ list-style-type: none;
206
+ }
207
+
208
+ div.sidebar-module > ul > li {
209
+ border-bottom: 1px solid #CACACA;
210
+ text-decoration: none;
211
+ }
212
+
213
+ div.sidebar-module > ul > li:hover {
214
+ text-decoration: none;
215
+ }
216
+
217
+
218
+ div.sidebar-module > ul h3 {
219
+ margin: 0px;
220
+ color: #666;
221
+ text-shadow: 1px 1px 0px #fff;
222
+ border-bottom: 1px solid #CACACA;
223
+ font-size: 14px;
224
+ background-color: #e1e1e1;
225
+ background-image: -moz-linear-gradient(top, #f1f1f1, #e1e1e1);
226
+ background-image: -ms-linear-gradient(top, #f1f1f1, #e1e1e1);
227
+ background-image: -o-linear-gradient(top, #f1f1f1, #e1e1e1);
228
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#e1e1e1));
229
+ background-image: -webkit-linear-gradient(top, #f1f1f1, #e1e1e1);
230
+ background-image: linear-gradient(top, #f1f1f1, #e1e1e1);
231
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e1e1e1');
232
+ }
233
+
234
+ div.sidebar-module > ul li h3:hover,
235
+ div.sidebar-module > ul h3.disable {
236
+ background-color: #e1e1e1;
237
+ background-image: -moz-linear-gradient(top, #e1e1e1, #d1d1d1);
238
+ background-image: -ms-linear-gradient(top, #e1e1e1, #d1d1d1);
239
+ background-image: -o-linear-gradient(top, #e1e1e1, #d1d1d1);
240
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#e1e1e1), to(#d1d1d1));
241
+ background-image: -webkit-linear-gradient(top, #e1e1e1, #d1d1d1);
242
+ background-image: linear-gradient(top, #e1e1e1, #d1d1d1);
243
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#e1e1e1', EndColorStr='#d1d1d1');
244
+ }
245
+
246
+
247
+ div.sidebar-module > ul h3 a,
248
+ div.sidebar-module > ul h3.disable a {
249
+ padding: 8px 0px 8px 10px;
250
+ color: #666;
251
+ display: block;
252
+ text-decoration: none;
253
+ }
254
+
255
+ div.sidebar-module > ul h3.disable a {
256
+ padding-left: 20px;
257
+ background-image: url(../images/active-arrow.png);
258
+ background-position: left center;
259
+ background-repeat: no-repeat;
260
+ cursor: default;
261
+ }
262
+ div.sidebar-module > ul h3:hover a {
263
+ text-decoration: none;
264
+ }
265
+
266
+ div.sidebar-module ul ul,
267
+ div.sidebar-module .spacer {
268
+ display: block;
269
+ padding-bottom: 2px;
270
+ background-color: #FAFAFB;
271
+ }
272
+
273
+ div.sidebar-module ul ul li {
274
+ border-top: 1px solid #fff;
275
+ border-bottom: 1px solid #e9ecee;
276
+ font-weight: bold;
277
+ color: #666;
278
+ }
279
+
280
+ div.sidebar-module ul ul li:hover,
281
+ div.sidebar-module li.disable {
282
+ border-top: 1px solid #fafafb;
283
+ border-bottom: 1px solid #e5e8ea;
284
+ background-color: #f0f0f3;
285
+ }
286
+
287
+ div.sidebar-module li.disable {
288
+ background-image: url(../images/active-arrow.png);
289
+ background-position: left center;
290
+ background-repeat: no-repeat;
291
+ }
292
+
293
+ div.sidebar-module ul ul li a,
294
+ div.sidebar-module ul ul li span {
295
+ padding: 4px 0px 4px 10px;
296
+ display: block;
297
+ text-decoration: none;
298
+ }
299
+
300
+ div.sidebar-module ul ul li span {
301
+ cursor: default;
302
+ }
303
+
304
+ /* @end */
305
+
306
+ /*------------------------------------------------------------------------------
307
+ Footer
308
+ ------------------------------------------------------------------------------*/
309
+
310
+ #footer-wrapper {
311
+ border-top: solid 1px #ddd;
312
+ background-color: #222;
313
+ padding: 2em 0;
314
+ color: #eee;
315
+ margin-top: -88px;
316
+ }
317
+
318
+ #footer {
319
+ font-size: 12px;
320
+ line-height: 100%;
321
+ overflow: hidden;
322
+ margin: 0 auto;
323
+ width: 920px;
324
+ position: relative;
325
+ }
326
+
327
+ #footer a {
328
+ color:#fff;
329
+ text-decoration:none;
330
+ }
331
+ #footer a:hover {
332
+ text-decoration:underline;
333
+ }
334
+ #footer h2.logo {
335
+ margin:0 20px 0 0;
336
+ float:left;
337
+ }
338
+ #footer h2.logo a {
339
+ float:left;
340
+ width:120px;
341
+ height:53px;
342
+ text-indent:-9999px;
343
+ text-decoration:none;
344
+ }
345
+ #footer ul.github-nav {
346
+ display:inline-block;
347
+ margin:14px 0 0 0;
348
+ padding-bottom:5px;
349
+ font-size:14px;
350
+ border-bottom:2px solid #303030;
351
+ }
352
+ #footer ul.github-nav li {
353
+ list-style-type:none;
354
+ float:left;
355
+ margin:0;
356
+ padding:0 5px;
357
+ line-height:1;
358
+ border-left:1px solid #666;
359
+ }
360
+ #footer ul.github-nav li:first-child {
361
+ padding-left:0;
362
+ border-left:none;
363
+ }
364
+ #footer p.copyline {
365
+ margin:3px 0 0 0;
366
+ font-size:14px;
367
+ }
368
+ #footer p.rackspace {
369
+ margin:0;
370
+ width:230px;
371
+ padding:10px 10px 10px 56px;
372
+ font-size:12px;
373
+ color:#666;
374
+ background:url(../images/rackspace_logo.png) 10px 50% no-repeat #f1f1f1;
375
+ -webkit-border-radius:5px;
376
+ -moz-border-radius:5px;
377
+ }
378
+ #footer p.rackspace a {
379
+ text-decoration:underline;
380
+ color:#333;
381
+ }
382
+
383
+ #footer h2.logo a {
384
+ background:url(../images/footer_logo.png) no-repeat;
385
+ }
386
+
387
+ #footer div.left-col {
388
+ position: relative;
389
+ float: left;
390
+ }
391
+
392
+ #footer div.right-col {
393
+ position: relative;
394
+ float: right;
395
+ line-height: 1.4em;
396
+ }
397
+
398
+ /* end */
399
+
400
+ /*------------------------------------------------------------------------------
401
+ Not Footer
402
+ ------------------------------------------------------------------------------*/
403
+ #wrapper {
404
+ padding: 20px 25px 128px;
405
+ overflow:hidden;
406
+ height: auto;
407
+ min-height: 80%;
408
+ width: 920px;
409
+ margin: -20px auto 0;
410
+ background: url(../images/background-white.png) 0 0 no-repeat;
411
+ }
412
+
413
+ #not-footer {
414
+ height: auto;
415
+ min-height: 100%;
416
+ }
417
+
418
+ .content {
419
+ width: 560px;
420
+ position: relative;
421
+ float: left;
422
+ color: #393939;
423
+ z-index: 2;
424
+ }
425
+
426
+ .content dl {
427
+ margin-left: 10px;
428
+ }
429
+
430
+ .content dt {
431
+ color: #666;
432
+ }
433
+
434
+ .content ul,
435
+ .content ol {
436
+ margin-left: 1.5em;
437
+ }
438
+
439
+ .content ul {
440
+ list-style-type: disc;
441
+ }
442
+
443
+ .content img {
444
+ max-width: 100%;
445
+ border: 1px solid #dddddd;
446
+ -webkit-box-shadow: 1px 1px 3px #ddd;
447
+ -moz-box-shadow: 1px 1px 3px #ddd;
448
+ box-shadow: 1px 1px 3px #ddd;
449
+ }
450
+
451
+
452
+ .content .description {
453
+ margin-left: 20px;
454
+ }
455
+
456
+ .content .verseblock-content {
457
+ padding: 3px;
458
+ }
459
+
460
+ .content .verseblock-content,
461
+ .content .sectionbody .dlist dt,
462
+ .content p > tt,
463
+ .content dl code,
464
+ .content ul code,
465
+ p code {
466
+ font: 12px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;
467
+ color: #52595d;
468
+ -webkit-border-radius: 3px;
469
+ -moz-border-radius: 3px;
470
+ border-radius: 3px;
471
+ -moz-background-clip: padding;
472
+ -webkit-background-clip: padding-box;
473
+ background-clip: padding-box;
474
+ border: 1px solid #ccc;
475
+ background-color: #f9f9f9;
476
+ padding: 0px 3px;
477
+ display: inline-block;
478
+ }
479
+
480
+ .content .sectionbody .dlist dt {
481
+ margin-top: 10px;
482
+ }
483
+
484
+ .content .verseblock-content {
485
+ padding: 3px;
486
+ }
487
+
488
+ .content .intro {
489
+ color: #868686;
490
+ }
491
+ /* @end */
492
+
493
+ /*------------------------------------------------------------------------------
494
+ Pre/Code Styles
495
+ ------------------------------------------------------------------------------*/
496
+
497
+ code {white-space: nowrap;}
498
+
499
+ pre {
500
+ border: 1px solid #cacaca;
501
+ line-height: 1.2em;
502
+ font: 12px Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;
503
+ padding: 10px;
504
+ overflow:auto;
505
+ -webkit-border-radius: 3px;
506
+ -moz-border-radius: 3px;
507
+ border-radius: 3px;
508
+ -moz-background-clip: padding;
509
+ -webkit-background-clip: padding-box;
510
+ background-clip: padding-box;
511
+ background-color: #FAFAFB;
512
+ color: #393939;
513
+ margin: 0px;
514
+ }
515
+
516
+ ul + pre {
517
+ margin-top: 1em;
518
+ }
519
+
520
+ pre code {white-space: pre;}
521
+
522
+ pre span.comment {color: #aaa;}
523
+
524
+ pre.headers {
525
+ margin-bottom: 0;
526
+ border-bottom-width: 0;
527
+ -webkit-border-radius: 3px 3px 0 0;
528
+ -moz-border-radius: 3px 3px 0 0;
529
+ border-radius: 3px 3px 0 0;
530
+ color: #666;
531
+ background-color: #f1f1f1;
532
+ background-image: -moz-linear-gradient(top, #f1f1f1, #e1e1e1);
533
+ background-image: -ms-linear-gradient(top, #f1f1f1, #e1e1e1);
534
+ background-image: -o-linear-gradient(top, #f1f1f1, #e1e1e1);
535
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#e1e1e1));
536
+ background-image: -webkit-linear-gradient(top, #f1f1f1, #e1e1e1);
537
+ background-image: linear-gradient(top, #f1f1f1, #e1e1e1);
538
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e1e1e1');
539
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
540
+ }
541
+
542
+ pre.no-response {
543
+ -webkit-border-radius: 3px 3px;
544
+ -moz-border-radius: 3px 3px;
545
+ border-radius: 3px 3px;
546
+ border-bottom: 1px solid #CACACA;
547
+ }
548
+
549
+ pre.headers + pre.highlight {
550
+ -webkit-border-radius: 0 0 3px 3px;
551
+ -moz-border-radius: 0 0 3px 3px;
552
+ border-radius: 0 0 3px 3px;
553
+ }
554
+
555
+ .highlight pre {
556
+ -webkit-border-radius:3px;
557
+ -moz-border-radius:3px;
558
+ border-radius:3px;
559
+ background-color: #FAFAFB;
560
+ }
561
+
562
+ .highlight pre { line-height: 0.8em; }
563
+
564
+ pre.terminal {
565
+ background-color: #444;
566
+ color: #fff;
567
+ -webkit-border-radius: 3px;
568
+ -moz-border-radius: 3px;
569
+ border-radius: 3px;
570
+ -moz-background-clip: padding;
571
+ -webkit-background-clip: padding-box;
572
+ background-clip: padding-box;
573
+ border: 2px solid #DEDEDE;
574
+ position: relative;
575
+ padding: 10px;
576
+ text-shadow: none;
577
+ background-image: none;
578
+ filter: none;
579
+ }
580
+
581
+ pre.terminal em {
582
+ color: #f9fe64;
583
+ }
584
+
585
+ span.codeline {
586
+ display: block;
587
+ position: relative;
588
+ }
589
+
590
+ span.codeline:hover {
591
+ background-color: #292929;
592
+ margin: 0px;
593
+ padding-left: 3px;
594
+ margin-left: -3px;
595
+ -webkit-border-radius: 3px;
596
+ -moz-border-radius: 3px;
597
+ border-radius: 3px;
598
+ color: #666666;
599
+ }
600
+
601
+ span.codeline span {
602
+ display: inline-block;
603
+ font-size: 10px;
604
+ color: #fff;
605
+ padding: 0 0.3em 0.05em;
606
+ position: absolute;
607
+ right: 0px;
608
+ top: 0px;
609
+ text-indent: -9999px;
610
+ background-image: url(../images/qmark.png);
611
+ background-repeat: no-repeat;
612
+ background-position: 1px 3px;
613
+ max-width: 8px;
614
+ min-width: 8px;
615
+ -moz-user-select: none;
616
+ -khtml-user-select: none;
617
+ user-select: none;
618
+ cursor: default;
619
+ }
620
+
621
+ span.codeline span:hover {
622
+ display: inline-block;
623
+ text-indent: 0px;
624
+ -webkit-border-radius: 3px;
625
+ -moz-border-radius: 3px;
626
+ border-radius: 3px;
627
+ background: #000;
628
+ border: 1px solid #292929;
629
+ max-width: 1000px;
630
+ }
631
+
632
+ span.codeline:hover em {
633
+ color: #666666;
634
+ }
635
+
636
+ pre.bootcamp {
637
+ white-space: normal;
638
+ margin-left: -10px;
639
+ background-image: none;
640
+ }
641
+
642
+ span.bash-output {
643
+ color: #63e463;
644
+ display: block;
645
+ position: relative;
646
+ -moz-user-select: none;
647
+ -khtml-user-select: none;
648
+ user-select: none;
649
+ }
650
+
651
+ /* end */
652
+
653
+ /*------------------------------------------------------------------------------
654
+ More Info Expander
655
+ ------------------------------------------------------------------------------*/
656
+
657
+ .more-info {
658
+ margin: 10px 0;
659
+ position: relative;
660
+ }
661
+ .more-info > h4 {
662
+ background-image: url('../images/dropdown_sprites.jpg');
663
+ background-repeat: no-repeat;
664
+ padding: .25em 0 .25em 25px;
665
+ cursor: pointer;
666
+ color: #4183C4;
667
+ font-weight: normal;
668
+ }
669
+ .more-info h4.compressed {
670
+ background-position: 0 0;
671
+ }
672
+ .more-info:hover h4.compressed {
673
+ background-position: 0 -23px;
674
+ }
675
+ .more-info h4.expanded {
676
+ background-position: 0 -46px;
677
+ }
678
+ .more-info:hover h4.expanded {
679
+ background-position: 0 -69px;
680
+ }
681
+
682
+ .more-info .more-content {
683
+ display: none;
684
+ -webkit-border-radius: 3px;
685
+ -moz-border-radius: 3px;
686
+ border-radius: 3px;
687
+ background-color: #FFFFFF;
688
+ border: 3px solid #DDDDDD;
689
+ padding: 1em 2em;
690
+ -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
691
+ -moz-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
692
+ box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
693
+ margin: 15px 0 30px;
694
+ }
695
+
696
+ .more-info .more-content h4 {
697
+ margin-top: 1em;
698
+ }
699
+
700
+ .more-info .more-content pre {
701
+ margin-left: 0px;
702
+ }
703
+
704
+ /****************************/
705
+ /* List Module */
706
+ /****************************/
707
+
708
+ .list-module h2 {
709
+ border: solid #cacaca;
710
+ border-width: 1px;
711
+ border-radius: 3px 3px 0px 0px;
712
+ -moz-border-radius: 3px 3px 0px 0px;
713
+ -webkit-border-bottom-right-radius: 0px;
714
+ -webkit-border-bottom-left-radius: 0px;
715
+ -moz-background-clip: padding;
716
+ -webkit-background-clip: padding-box;
717
+ background-clip: padding-box;
718
+ padding: 6px 10px;
719
+ background-color: #f1f1f1;
720
+ background-image: -moz-linear-gradient(top, #f1f1f1, #e1e1e1);
721
+ background-image: -ms-linear-gradient(top, #f1f1f1, #e1e1e1);
722
+ background-image: -o-linear-gradient(top, #f1f1f1, #e1e1e1);
723
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#e1e1e1));
724
+ background-image: -webkit-linear-gradient(top, #f1f1f1, #e1e1e1);
725
+ background-image: linear-gradient(top, #f1f1f1, #e1e1e1);
726
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e1e1e1');
727
+ color: #666;
728
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
729
+ font-size: 16px;
730
+ line-height: 22px;
731
+ margin: 0px;
732
+ }
733
+
734
+ .list-module .list-body {
735
+ border: solid #cacaca;
736
+ border-width: 0px 1px 1px 1px;
737
+ border-radius: 0px 0px 3px 3px;
738
+ -moz-border-radius: 0px 0px 3px 3px;
739
+ -webkit-border-bottom-right-radius: 3px;
740
+ -webkit-border-bottom-left-radius: 3px;
741
+ -moz-background-clip: padding;
742
+ -webkit-background-clip: padding-box;
743
+ background-clip: padding-box;
744
+ background-color: #fafafb;
745
+ color: #666;
746
+ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
747
+ }
748
+
749
+ .list-module .list-body .icon {
750
+ display: block;
751
+ height: 28px;
752
+ width: 28px;
753
+ position: absolute;
754
+ top: 10px;
755
+ left: 10px;
756
+ background: transparent url(images/popular_guide_sprites.png) 0 0 no-repeat;
757
+ }
758
+
759
+ .list-module a {
760
+ border-top: 1px solid #fff;
761
+ border-bottom: 1px solid #e9ecee;
762
+ padding: 6px 10px;
763
+ position: relative;
764
+ display: block;
765
+ }
766
+
767
+ .list-module a:hover {
768
+ border-top: 1px solid #fafafb;
769
+ border-bottom: 1px solid #e5e8ea;
770
+ background-color: #f0f0f3;
771
+ text-decoration: none;
772
+ }
773
+
774
+ .list-module a h3 {
775
+ color: #4183C4;
776
+ }
777
+
778
+ .list-module a:hover h3 {
779
+ text-decoration: underline;
780
+ }
781
+
782
+ .list-module ul {
783
+ list-style-type: none;
784
+ margin: 0px;
785
+ }
786
+
787
+ .list-module h3 {
788
+ margin: 0px;
789
+ font-size: 13px;
790
+ }
791
+
792
+ .list-module .list-body a p {
793
+ color: #666;
794
+ margin: 0px;
795
+ }
796
+
797
+ /* @end */