Skip to content

Commit a1c3ac3

Browse files
amitnGiniAppsEyal-Danieli
authored andcommitted
enforce default light mode in sphinx-book-theme (mlrun#861)
1 parent 44063ac commit a1c3ac3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

cli/marketplace/conf.template

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,25 @@ html_theme = "sphinx_book_theme"
8989
html_static_path = ["_static"]
9090
html_css_files = ["css/custom.css"]
9191

92+
# conf.py
93+
94+
html_context = {
95+
"default_mode": "light", # Enforces light mode on page load
96+
}
97+
9298
html_theme_options = {
9399
"repository_url": "{{repository_url}}",
100+
"repository_branch": "{{repository_branch}}",
101+
"path_to_docs": "docs",
94102
"use_repository_button": False,
95103
"use_issues_button": False,
96104
"use_edit_page_button": False,
97-
"path_to_docs": "docs",
98-
"repository_branch": "{{repository_branch}}",
99105
"home_page_in_toc": False,
100106
"navigation_with_keys": False,
101107
"use_fullscreen_button": False,
102108
"show_navbar_depth": 1,
103109
"theme_dev_mode": False,
104110
"launch_buttons": {},
105-
"default_mode": "light",
106111
"switcher": False,
107112
"search_bar_text": "",
108113
"search_bar_position": "none",

0 commit comments

Comments
 (0)