erisu commented on issue #1417: URL: https://github.com/apache/cordova-docs/issues/1417#issuecomment-3759058914
Hi @dheeraj12347 The highlighting is coming from the following files: * https://github.com/apache/cordova-docs/blob/master/www/_includes/toc_recursive_main.html#L10-L12 * https://github.com/apache/cordova-docs/blob/master/www/_includes/toc_recursive_dropdown.html#L4-L6 The site is built with Jekyll. All pages are static, and the logic in these files is responsible for determining when the `"this-page"` class is added to the list item's link. The class `this-page` is what triggers the highlighting and scrolling. You'll need to determine why `include.my_entry == entry.url` is not evaluating to `true` in cases where it should. The scroll logic for the TOC is here: https://github.com/apache/cordova-docs/blob/master/www/static/js/docs.js#L40-L43 However, the scrolling is not the issue since it works correctly on the items that highlight correctly. The problem is almost certainly related to the highlight logic. I think there shouldn't be any JS changes to resolve this issue. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
