Skip to content

Instantly share code, notes, and snippets.

@shkumagai
Created October 16, 2012 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shkumagai/3899917 to your computer and use it in GitHub Desktop.
Save shkumagai/3899917 to your computer and use it in GitHub Desktop.
How to write fallback setting for sphinxjp.themes.* are not found.
try:
import sphinxjp.themecore
extensions.append('sphinxjp.themecore')
except ImportError:
extensions = []
try:
import sphinxjp.themes.bizstyle
html_theme = 'bizstyle'
except ImportError:
html_theme = 'default'
@shimizukawa
Copy link

extensions.append() するならば先に extensions = [] しておきたい

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment