-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
As a user, I’d like to search for canViewModel and get https://canjs.com/doc/can-view-model.html as a result.
This could be accomplished right now by indexing API signatures.
Here’s what I think needs to be done:
- Modify https://github.com/bit-docs/bit-docs-generate-searchmap/blob/master/generators/search-map.js to include API signatures in the
searchObj(I’m assuming thedocMapalready has these signatures) - Check the size of the search map that’s generated. If it’s a huge increase, we might want to just index the first part of the signature, e.g.
canViewModel(element)->canViewModel[we might want to do this anyway?] - Add the field to the search indexer
indexData: function(items) { - …?
For now, I don’t think we need to show signatures as search results, just show the page as a result when you search for a signature it contains. It might be a nice improvement in the future to show the signature as a result and link directly to it.