mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Only set _static doc assets path if dir exists
Otherwise this is an error
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# Support markdown too
|
||||
import os
|
||||
|
||||
source_suffix = ['.rst']
|
||||
|
||||
project = 'The Littlest JupyterHub'
|
||||
@@ -38,6 +39,9 @@ html_theme = 'alabaster'
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
# Do this only if _static exists, otherwise this will error
|
||||
here = os.path.dirname(os.path.abspath(__file__))
|
||||
if os.path.exists(os.path.join(here, '_static')):
|
||||
html_static_path = ['_static']
|
||||
|
||||
# Configure the sidebar to be how we want it to be
|
||||
|
||||
Reference in New Issue
Block a user