Skip to content

Commit

Permalink
[docs] Improve rendering of class properties in docs (fixes #5073)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS committed Mar 18, 2022
1 parent f77e0ad commit 8e721c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/_static/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ $(function() {
/* Use wider container for the page content */
$('.wy-nav-content').each(function() { this.style.setProperty('max-width', 'none', 'important'); });

/* List each class property item on a new line
https://github.com/microsoft/LightGBM/issues/5073 */
if(window.location.pathname.toLocaleLowerCase().indexOf('pythonapi') != -1) {
$('.py.property').each(function() { this.style.setProperty('display', 'inline', 'important'); });
}

/* Point to the same version of R API as the current docs version */
var current_version_elems = $('.rst-current-version');
if(current_version_elems.length !== 0) {
Expand Down

0 comments on commit 8e721c5

Please sign in to comment.