Verified Commit 55456db4 authored by Camil Staps's avatar Camil Staps 🚀

Add class_derivations (see #120)

parent feb6320a
Subproject commit 591c2f9742f3ccc5fdb49124047e6a061eb5a4f4
Subproject commit 430646bcaa4342ecca582805700490fc839587bb
......@@ -164,6 +164,7 @@ predefClasses
, ce_documentation=Nothing
, ce_members=[]
, ce_instances=[]
, ce_derivations=[]
}
)
]
......
......@@ -46,7 +46,7 @@ function highlightCallback(span, cls, str) {
return '<a class="hidden" title="Search type ' + str + '" href="#' +
encodeURIComponent('type ' + str) + '">' +
span + '</a>';
} else if (cls == 'classname') {
} else if (cls == 'classname' || cls == 'classname classname-generic') {
return '<a class="hidden" title="Search class ' + str + '" href="#' +
encodeURIComponent('class ' + str) + '">' +
span + '</a>';
......@@ -393,6 +393,11 @@ function getResults(str, libs, include_builtins, include_core, page) {
'Instances',
makeInstanceTable(extra['class_instances'], highlightType),
pluralise(extra['class_instances'].length, 'instance')]);
if (extra['class_derivations'].length > 0)
hidden.push([
'Derivations',
makeInstanceTable(extra['class_derivations'], highlightType),
pluralise(extra['class_derivations'].length, 'derivation')]);
var html = highlightClassDef(
'class ' + extra['class_heading'] +
......
Subproject commit d7e69324e2e981d3e2856a9919b72f6f58f00c94
Subproject commit 3d4a0e40ac847dfac4cdd034670a2ce84d6ff2c1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment