mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
If sphinx_rtd_theme_chm_friendly directory is missing, use normal theme
This commit is contained in:
+5
-2
@@ -320,8 +320,11 @@ texinfo_documents = [
|
||||
#texinfo_no_detailmenu = False
|
||||
|
||||
# custom theme based on sphinx_rtd_theme
|
||||
html_theme = "sphinx_rtd_theme_chm_friendly"
|
||||
html_theme_path = ["."]
|
||||
if os.path.isdir('sphinx_rtd_theme_chm_friendly'):
|
||||
html_theme = "sphinx_rtd_theme_chm_friendly"
|
||||
html_theme_path = ["."]
|
||||
else:
|
||||
html_theme = "sphinx_rtd_theme"
|
||||
|
||||
html_context = {
|
||||
'show_source': False,
|
||||
|
||||
Reference in New Issue
Block a user