/usr/share/SuperCollider/HelpSource/Browse.html is in supercollider-common 1:3.8.0~repack-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 | <html>
<head>
<title>Document Browser</title>
<link rel='stylesheet' href='./scdoc.css' type='text/css' />
<link rel='stylesheet' href='./custom.css' type='text/css' />
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<script src="docmap.js" type="text/javascript"></script>
<script src="scdoc.js" type="text/javascript"></script>
<style>
.browser {
margin: 0em;
border-collapse: collapse;
margin-top: 1em;
}
.result {
padding: 2px;
}
.browser td {
vertical-align: top;
border: none;
}
.result_doc {
border-bottom: 1px solid #ddd;
margin-top: 0.5em;
}
.result_summary {
color: #444;
font-size: 9pt;
max-width: 18em;
margin-bottom: 0.6em;
}
.category, .cat_selected {
margin-bottom: 0.25em;
border-bottom: 1px solid transparent;
}
.cat_selected {
border-bottom: 1px solid #777;
}
.cat_header {
border-bottom: 2px solid #999;
color: #777;
/* background: #aaa;
color: white;*/
margin-bottom: 0.25em;
padding: 2px;
/* font-weight: bold;*/
}
.category a {
color: #555;
font-weight: bold;
}
.cat_selected a {
color: #000;
font-weight: bold;
}
.cat_arrow {
float: right;
padding-left: 1ex;
color: #555;
}
#search_checks {
font-size: 9pt;
color: #555;
border-bottom: 1px solid #ddd;
margin-top: 1em;
padding-bottom: 1em;
}
.cat_count {
color: #777;
font-size: 9pt;
}
#total_count {
font-size: 9pt;
color: #777;
}
.doc_kind {
color: #666;
float: right;
font-size: 8pt;
padding: 0 2px;
margin-left: 0.5ex;
font-weight: bold;
}
</style>
<noscript>
<!--<meta http-equiv="refresh" content="3; URL=Overviews/Categories.html">
<p>JavaScript is not available, redirecting to <a href="Overviews/Categories.html">static category overview</a>...-->
<p>The document browser needs JavaScript.
</noscript>
<script type="text/javascript">
var categorytree = null;
var path = [];
function GotoPath(p) {
path = p.split(">");
var x = escape(p);
if(window.location.hash != x)
window.location.hash = x;
updateTree();
}
function updateTree() {
var el = document.getElementById("browser");
var res = "<tr><td>";
var lev = 0;
var tree = {entries:[],subcats:categorytree};
var p;
var done = 0;
var sel;
var colors = {
"Classes": "#7ab",
"Reference": "#7b9",
"Overviews": "#ca6",
"Guides": "#b87",
"Tutorials": "#b77",
};
link = "";
while(1) {
res += "<div class='result'>";
p=path[lev++];
var l = [];
for(var k in tree.subcats)
l.push(k);
l = l.sort();
sel = "";
for(var i=0;i<l.length;i++) {
var k = l[i];
if(k==p) {
res += "<div class='cat_selected'>";
sel = k;
} else
res += "<div class='category'>";
res += "<a href='javascript:GotoPath(\""+link+k+"\")'>"+k+"</a>";
res += " <span class='cat_count'>("+tree.subcats[k].count+")</span>";
if(k==p)
res += "<span class='cat_arrow'> ►</span>";
res += "</div>";
}
for(var i=0;i<tree.entries.length;i++) {
var v = tree.entries[i];
var x = v.path.split("/");
res += "<div class='result_doc'><span class='doc_kind' ";
var clr = colors[x[0]];
if(clr) {
res += "style='color:"+clr+";'";
};
res += ">";
if(v.installed=="extension")
res += "+";
else if(v.installed=="missing")
res += "(not installed) ";
var docLink = v.hasOwnProperty("oldhelp")?v.oldhelp:(v.path+".html");
res += x[0].toUpperCase()+"</span><a href='"+docLink+"'>"+v.title+"</a></div><div class='result_summary'>"+v.summary+"</div>";
}
res += "</div>";
if(!p)
break;
tree = tree.subcats[p];
link += p+">";
res += "<td>";
res += "<div class='cat_header'>"+sel+"</div>";
if(!tree) {
res += "<div class='result_summary'>► Category not found: "+p+"</div>";
break;
}
}
el.innerHTML = res;
}
function countTree(t) {
var x = 0;
for(var k in t.subcats)
x += countTree(t.subcats[k]);
x += t.entries.length;
return t.count = x;
}
function buildCategoryTree() {
var cats = {};
for(var k in docmap) {
var v = docmap[k];
if(v.installed=="extension" && !check_extensions.checked)
continue;
if(filter.value != "all" && v.path.split("/")[0].toLowerCase() != filter.value)
continue;
var c2 = v.categories.match(/[^, ]+[^,]*[^, ]+/g) || ["Uncategorized"];
for(var i=0;i<c2.length;i++) {
var c = c2[i];
if(!cats[c])
cats[c]=[];
cats[c].push(v);
}
}
var tree = {};
var p,l,e,a;
for(var cat in cats) {
var files = cats[cat];
p=tree;
l=cat.split(">");
for(var i=0;i<l.length;i++) {
var c = l[i];
if(!p[c]) {
p[c]={};
p[c].subcats = {};
p[c].entries = [];
p[c].count = 0;
}
e=p[c];
p=p[c].subcats;
}
for(var i=0;i<files.length;i++)
e.entries.push(files[i]);
e.entries = e.entries.sort(function(a,b) {
a=a.title; b=b.title;
if(a<b) return -1;
else
if(a>b) return +1;
else
return 0;
});
}
categorytree = tree;
document.getElementById("total_count").innerHTML = countTree({subcats:tree,entries:[],count:0}) + " documents";
}
var check_extensions;
var filter;
window.onload = function() {
// restoreMenu();
helpRoot="."; fixTOC();
var onChange = function() {
buildCategoryTree();
updateTree();
};
check_extensions = document.getElementById("check_extensions");
check_extensions.onchange = onChange;
filter = document.getElementById("menu_filter");
filter.onchange = onChange;
buildCategoryTree();
GotoPath(unescape(window.location.hash.slice(1)));
}
window.onhashchange = function() {
GotoPath(unescape(window.location.hash.slice(1)));
}
</script>
</head>
<ul id="menubar"></ul>
<body>
<div class='contents'>
<div class='header'>
<div id='label'>SuperCollider</div>
<h1>Document Browser</h1>
<div id='summary'>Browse categories</div>
</div>
<div id="search_checks">
Filter:
<select id="menu_filter">
<option SELECTED value="all">All documents</option>
<option value="classes">Classes only</option>
<option value="reference">Reference only</option>
<option value="guides">Guides only</option>
<option value="tutorials">Tutorials only</option>
<option value="overviews">Overviews only</option>
<option value="other">Other only</option>
</select>
<input type="checkbox" id="check_extensions" checked="true">Include extensions</input>
</div>
<div id="total_count"></div>
<table class="browser" id="browser"></table>
</div>
</body>
</html>
|