Since PR #84 modified the markup of each section to include the group in the id attribute, this change breaks the search suggestions feature, since generated anchors are no longer valid.
One way to solve this could be to modify this file:
Search.prototype.initialize = function () {
// Fuse engine instanciation
this.index = new Fuse($.map($(this.conf.search.items), function (item) {
var $item = $(item);
return {
group: $item.data('group'), // <=== To include group
name: $item.data('name'),
type: $item.data('type'),
node: $item
};
}), this.conf.fuse);
this.initializeSearch();
};
Since PR #84 modified the markup of each section to include the group in the
id
attribute, this change breaks the search suggestions feature, since generated anchors are no longer valid.One way to solve this could be to modify this file:
And here:
And add this new data-group attribute to each
.sassdoc__item
here: