Skip to content

Commit 878badd

Browse files
author
Matt Sokoloff
committed
prevent sidebar from collapsing in api reference
1 parent 5ee9133 commit 878badd

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
window.addEventListener('load', (event) => {
2+
var menu = document.querySelector(".wy-menu ul li:first-child")
3+
if (!menu.classList.contains("current")) {
4+
menu.classList.add("current")
5+
}
6+
});

docs/source/conf.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
project = 'Labelbox Python API reference'
2121
copyright = '2021, Labelbox'
2222

23-
release = '2.4'
23+
release = '2.5.3'
2424

2525
# -- General configuration ---------------------------------------------------
2626

@@ -50,3 +50,11 @@
5050
# relative to this directory. They are copied after the builtin static files,
5151
# so a file named "default.css" will overwrite the builtin "default.css".
5252
html_static_path = ['_static']
53+
54+
# Prevent the sidebar from collapsing
55+
html_js_files = [
56+
'js/prevent_collapse.js'
57+
]
58+
html_theme_options = {
59+
"collapse_navigation": False,
60+
}

0 commit comments

Comments
 (0)