mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
Make theme selection also work with older Sphinx.
This commit is contained in:
parent
95ff02b7ad
commit
ab3b16059f
@ -396,8 +396,11 @@ pygments_style = 'sphinx'
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
from sphinx import version_info
|
||||
if (1, 3) <= version_info:
|
||||
try:
|
||||
from sphinx import version_info
|
||||
except ImportError:
|
||||
version_info = None
|
||||
if version_info and (1, 3) <= version_info:
|
||||
html_theme = 'classic'
|
||||
else:
|
||||
html_theme = 'default'
|
||||
|
Loading…
Reference in New Issue
Block a user