extra.js 380 Bytes
Newer Older
Nikita Titov's avatar
Nikita Titov committed
1
2
3
4
5
6
$(function() {
    if(window.location.pathname.toLocaleLowerCase().indexOf('/r/reference') != -1) {
        /* Replace '/R/' with '/R-package/R/' in all external links to .R files of LightGBM GitHub repo */
        $('a[href^="https://github.com/Microsoft/LightGBM/blob/master/R"][href*=".R"]').attr('href', (i, val) => { return val.replace('/R/', '/R-package/R/'); });
    }
});