Unverified Commit 8e721c56 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[docs] Improve rendering of class properties in docs (fixes #5073)

parent f77e0adf
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment