const { templates } = app; const arrow = ''; templates.sidebarDoc = function (doc, options) { if (options == null) { options = {}; } let link = ``; if (options.disabled) { link += `Enable`; } else { link += arrow; } if (doc.release) { link += `${doc.release}`; } link += `${doc.name}`; if (options.fullName || (options.disabled && doc.version)) { link += ` ${doc.version}`; } return link + ""; }; templates.sidebarType = (type) => `${arrow}${ type.count }${$.escape(type.name)}`; templates.sidebarEntry = (entry) => `${$.escape( entry.name, )}`; templates.sidebarResult = function (entry) { let addons = entry.isIndex() && app.disabledDocs.contains(entry.doc) ? `Enable` : ''; if (entry.doc.version && !entry.isIndex()) { addons += `${entry.doc.short_version}`; } return `${addons}${$.escape( entry.name, )}`; }; templates.sidebarNoResults = function () { let html = '