Created
February 24, 2016 02:42
-
-
Save aereal/d045db2b6d2e07475e19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
indexer = { | |
id: 'jquery', | |
name: 'jQuery', | |
color: '#0769AD', | |
index: function (ctx) { | |
return ctx.fetchDocument('http://api.jquery.com/').then(function (doc) { | |
var links = Array.from( | |
doc.querySelectorAll('.entry-title > a') | |
); | |
links.forEach(function (l) { | |
ctx.pushIndex(l.textContent, l.href); | |
}); | |
}); | |
}, | |
CSS: function() { | |
var hideNavs = '#logo-events, body > header, #main, #sidebar, body > footer { display: none !important; }'; | |
var resetLayout = '#content { float: none !important; width: 100% !important; }'; | |
return [ | |
hideNavs, | |
resetLayout | |
].join("\n"); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment