├── .gitignore ├── logo.png ├── js ├── sh_lang │ ├── sh_diff.min.js │ ├── sh_python.min.js │ ├── sh_ruby.min.js │ └── sh_c.min.js └── sh_main.min.js ├── stylesheets ├── sh_libgit.css ├── sunburst.css └── application.css ├── index.html └── api.html /.gitignore: -------------------------------------------------------------------------------- 1 | _site 2 | *.swp 3 | -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jasonlong/libgit2.github.com/master/logo.png -------------------------------------------------------------------------------- /js/sh_lang/sh_diff.min.js: -------------------------------------------------------------------------------- 1 | if(!this.sh_languages){this.sh_languages={}}sh_languages.diff=[[[/(?=^[-]{3})/g,"sh_oldfile",1,1],[/(?=^[*]{3})/g,"sh_oldfile",3,1],[/(?=^[\d])/g,"sh_difflines",6,1]],[[/^[-]{3}/g,"sh_oldfile",2],[/^[-]/g,"sh_oldfile",2],[/^[+]/g,"sh_newfile",2],[/^@@/g,"sh_difflines",2]],[[/$/g,null,-2]],[[/^[*]{3}[ \t]+[\d]/g,"sh_oldfile",4],[/^[*]{3}/g,"sh_oldfile",2],[/^[-]{3}[ \t]+[\d]/g,"sh_newfile",5],[/^[-]{3}/g,"sh_newfile",2]],[[/^[\s]/g,"sh_normal",2],[/(?=^[-]{3})/g,"sh_newfile",-2]],[[/^[\s]/g,"sh_normal",2],[/(?=^[*]{3})/g,"sh_newfile",-2],[/^diff/g,"sh_normal",2]],[[/^[\d]/g,"sh_difflines",2],[/^[<]/g,"sh_oldfile",2],[/^[>]/g,"sh_newfile",2]]]; -------------------------------------------------------------------------------- /js/sh_lang/sh_python.min.js: -------------------------------------------------------------------------------- 1 | if(!this.sh_languages){this.sh_languages={}}sh_languages.python=[[[/\b(?:import|from)\b/g,"sh_preproc",-1],[/#/g,"sh_comment",1],[/\b[+-]?(?:(?:0x[A-Fa-f0-9]+)|(?:(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?))u?(?:(?:int(?:8|16|32|64))|L)?\b/g,"sh_number",-1],[/\b(?:and|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|global|if|in|is|lambda|not|or|pass|print|raise|return|try|while)\b/g,"sh_keyword",-1],[/^(?:[\s]*'{3})/g,"sh_comment",2],[/^(?:[\s]*\"{3})/g,"sh_comment",3],[/^(?:[\s]*'(?:[^\\']|\\.)*'[\s]*|[\s]*\"(?:[^\\\"]|\\.)*\"[\s]*)$/g,"sh_comment",-1],[/(?:[\s]*'{3})/g,"sh_string",4],[/(?:[\s]*\"{3})/g,"sh_string",5],[/"/g,"sh_string",6],[/'/g,"sh_string",7],[/~|!|%|\^|\*|\(|\)|-|\+|=|\[|\]|\\|:|;|,|\.|\/|\?|&|<|>|\||\{|\}/g,"sh_symbol",-1],[/(?:[A-Za-z]|_)[A-Za-z0-9_]*(?=[ \t]*\()/g,"sh_function",-1]],[[/$/g,null,-2]],[[/(?:'{3})/g,"sh_comment",-2]],[[/(?:\"{3})/g,"sh_comment",-2]],[[/(?:'{3})/g,"sh_string",-2]],[[/(?:\"{3})/g,"sh_string",-2]],[[/$/g,null,-2],[/\\(?:\\|")/g,null,-1],[/"/g,"sh_string",-2]],[[/$/g,null,-2],[/\\(?:\\|')/g,null,-1],[/'/g,"sh_string",-2]]]; -------------------------------------------------------------------------------- /js/sh_lang/sh_ruby.min.js: -------------------------------------------------------------------------------- 1 | if(!this.sh_languages){this.sh_languages={}}sh_languages.ruby=[[[/\b(?:require)\b/g,"sh_preproc",-1],[/\b[+-]?(?:(?:0x[A-Fa-f0-9]+)|(?:(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?))u?(?:(?:int(?:8|16|32|64))|L)?\b/g,"sh_number",-1],[/"/g,"sh_string",1],[/'/g,"sh_string",2],[/|\|/g,"sh_symbol",-1],[/(#)(\{)/g,["sh_symbol","sh_cbracket"],-1],[/#/g,"sh_comment",5],[/\{|\}/g,"sh_cbracket",-1]],[[/$/g,null,-2],[/\\(?:\\|")/g,null,-1],[/"/g,"sh_string",-2]],[[/$/g,null,-2],[/\\(?:\\|')/g,null,-1],[/'/g,"sh_string",-2]],[[/$/g,null,-2],[/>/g,"sh_string",-2]],[[/^(?:\=end)/g,"sh_comment",-2]],[[/$/g,null,-2]]]; -------------------------------------------------------------------------------- /stylesheets/sh_libgit.css: -------------------------------------------------------------------------------- 1 | pre.sh_sourceCode { 2 | background-color: #000000; 3 | color: #ffffff; 4 | font-weight: normal; 5 | font-style: normal; 6 | font-family: Monaco, monospace; 7 | font-size: 13px; 8 | padding: 10px; 9 | } 10 | 11 | pre.sh_sourceCode .sh_keyword { 12 | color: #E28964; 13 | font-style: normal; 14 | } 15 | 16 | pre.sh_sourceCode .sh_type { 17 | color: #89BDFF; 18 | font-weight: normal; 19 | font-style: normal; 20 | } 21 | 22 | pre.sh_sourceCode .sh_string { 23 | color: #65B042; 24 | font-weight: bold; 25 | font-style: normal; 26 | } 27 | 28 | pre.sh_sourceCode .sh_regexp { 29 | color: #CF7D34; 30 | font-weight: bold; 31 | font-style: normal; 32 | } 33 | 34 | pre.sh_sourceCode .sh_specialchar { 35 | color: #CF7D34; 36 | font-weight: normal; 37 | font-style: normal; 38 | } 39 | 40 | pre.sh_sourceCode .sh_comment { 41 | color: #AEAEAE; 42 | font-weight: normal; 43 | font-style: italic; 44 | } 45 | 46 | pre.sh_sourceCode .sh_number { 47 | color: #89BDFF; 48 | font-weight: normal; 49 | font-style: normal; 50 | } 51 | 52 | pre.sh_sourceCode .sh_preproc { 53 | color: #AFC4DB; 54 | font-weight: normal; 55 | font-style: normal; 56 | } 57 | 58 | pre.sh_sourceCode .sh_symbol { 59 | color: #3387CC; 60 | font-weight: normal; 61 | font-style: normal; 62 | } 63 | 64 | pre.sh_sourceCode .sh_function { 65 | color: #99CF50; 66 | color: #E0C589; 67 | font-weight: normal; 68 | font-style: normal; 69 | } 70 | 71 | pre.sh_sourceCode .sh_cbracket { 72 | color: #E0C589; 73 | font-weight: normal; 74 | font-style: normal; 75 | } 76 | 77 | pre.sh_sourceCode .sh_url { 78 | color: #E28964; 79 | font-weight: bold; 80 | font-style: normal; 81 | } 82 | 83 | pre.sh_sourceCode .sh_date { 84 | color: #8F9D6A; 85 | font-weight: bold; 86 | font-style: normal; 87 | } 88 | 89 | pre.sh_sourceCode .sh_time { 90 | color: #8B98AB; 91 | font-weight: bold; 92 | font-style: normal; 93 | } 94 | 95 | pre.sh_sourceCode .sh_file { 96 | color: #ffff66; 97 | font-weight: bold; 98 | font-style: normal; 99 | } 100 | 101 | pre.sh_sourceCode .sh_ip { 102 | color: #abab66; 103 | font-weight: bold; 104 | font-style: normal; 105 | } 106 | 107 | pre.sh_sourceCode .sh_name { 108 | color: #E18964; 109 | font-weight: bold; 110 | font-style: normal; 111 | } 112 | 113 | pre.sh_sourceCode .sh_variable { 114 | color: #26e0e7; 115 | font-weight: normal; 116 | font-style: normal; 117 | } 118 | 119 | pre.sh_sourceCode .sh_oldfile { 120 | color: #bfbfbf; 121 | font-weight: normal; 122 | font-style: normal; 123 | } 124 | 125 | pre.sh_sourceCode .sh_newfile { 126 | color: #abab66; 127 | font-weight: bold; 128 | font-style: normal; 129 | } 130 | 131 | pre.sh_sourceCode .sh_difflines { 132 | color: #ffff66; 133 | font-weight: bold; 134 | font-style: normal; 135 | } 136 | 137 | pre.sh_sourceCode .sh_selector { 138 | color: #26e0e7; 139 | font-weight: normal; 140 | font-style: normal; 141 | } 142 | 143 | pre.sh_sourceCode .sh_property { 144 | color: #ffff66; 145 | font-weight: bold; 146 | font-style: normal; 147 | } 148 | 149 | pre.sh_sourceCode .sh_value { 150 | color: #abab66; 151 | font-weight: bold; 152 | font-style: normal; 153 | } 154 | 155 | -------------------------------------------------------------------------------- /js/sh_lang/sh_c.min.js: -------------------------------------------------------------------------------- 1 | if(!this.sh_languages){this.sh_languages={}}sh_languages.c=[[[/\/\/\//g,"sh_comment",1],[/\/\//g,"sh_comment",7],[/\/\*\*/g,"sh_comment",8],[/\/\*/g,"sh_comment",9],[/(\bstruct)([ \t]+)([A-Za-z0-9_]+)/g,["sh_keyword","sh_normal","sh_classname"],-1],[/^[ \t]*#(?:[ \t]*include)/g,"sh_preproc",10,1],[/^[ \t]*#(?:[ \t]*[A-Za-z0-9_]*)/g,"sh_preproc",-1],[/\b[+-]?(?:(?:0x[A-Fa-f0-9]+)|(?:(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?))u?(?:(?:int(?:8|16|32|64))|L)?\b/g,"sh_number",-1],[/"/g,"sh_string",13],[/'/g,"sh_string",14],[/\b(?:__asm|__cdecl|__declspec|__export|__far16|__fastcall|__fortran|__import|__pascal|__rtti|__stdcall|_asm|_cdecl|__except|_export|_far16|_fastcall|__finally|_fortran|_import|_pascal|_stdcall|__thread|__try|asm|auto|break|case|catch|cdecl|const|continue|default|do|else|enum|extern|for|goto|if|pascal|register|return|sizeof|static|struct|switch|typedef|union|volatile|while)\b/g,"sh_keyword",-1],[/\b(?:bool|char|double|float|int|long|short|signed|unsigned|void|wchar_t)\b/g,"sh_type",-1],[/~|!|%|\^|\*|\(|\)|-|\+|=|\[|\]|\\|:|;|,|\.|\/|\?|&|<|>|\|/g,"sh_symbol",-1],[/\{|\}/g,"sh_cbracket",-1],[/(?:[A-Za-z]|_)[A-Za-z0-9_]*(?=[ \t]*\()/g,"sh_function",-1],[/([A-Za-z](?:[^`~!@#$%&*()_=+{}|;:",<.>\/?'\\[\]\^\-\s]|[_])*)((?:<.*>)?)(\s+(?=[*&]*[A-Za-z][^`~!@#$%&*()_=+{}|;:",<.>\/?'\\[\]\^\-\s]*\s*[`~!@#$%&*()_=+{}|;:",<.>\/?'\\[\]\^\-\[\]]+))/g,["sh_usertype","sh_usertype","sh_normal"],-1]],[[/$/g,null,-2],[/(?:?)|(?:?)/g,"sh_url",-1],[/<\?xml/g,"sh_preproc",2,1],[//g,"sh_keyword",-1],[/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)/g,"sh_keyword",6,1],[/&(?:[A-Za-z0-9]+);/g,"sh_preproc",-1],[/<(?:\/)?[A-Za-z][A-Za-z0-9]*(?:\/)?>/g,"sh_keyword",-1],[/<(?:\/)?[A-Za-z][A-Za-z0-9]*/g,"sh_keyword",6,1],[/@[A-Za-z]+/g,"sh_type",-1],[/(?:TODO|FIXME|BUG)(?:[:]?)/g,"sh_todo",-1]],[[/\?>/g,"sh_preproc",-2],[/([^=" \t>]+)([ \t]*)(=?)/g,["sh_type","sh_normal","sh_symbol"],-1],[/"/g,"sh_string",3]],[[/\\(?:\\|")/g,null,-1],[/"/g,"sh_string",-2]],[[/>/g,"sh_preproc",-2],[/([^=" \t>]+)([ \t]*)(=?)/g,["sh_type","sh_normal","sh_symbol"],-1],[/"/g,"sh_string",3]],[[/-->/g,"sh_comment",-2],[/