Skip to content

Commit cab3825

Browse files
committed
Update conf.py
1 parent 4b74ed8 commit cab3825

1 file changed

Lines changed: 6 additions & 15 deletions

File tree

_doc/sphinxdoc/source/conf.py

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
11
# -*- coding: utf-8 -*-
22
import sys
33
import os
4+
import warnings
45
from pyquickhelper.helpgen.default_conf import set_sphinx_variables
6+
import pydata_sphinx_theme
57

6-
choice = "pydata_sphinx_theme"
8+
# see https://sphinx-gallery.github.io/stable/configuration.html#removing-warnings
9+
warnings.simplefilter("ignore", category=UserWarning)
710

8-
if choice == "sphtheme":
9-
import sphinx_theme_pd as sphtheme
10-
html_theme = sphtheme.__name__
11-
html_theme_path = [sphtheme.get_html_theme_path()]
12-
elif choice == "bootstrap":
13-
import sphinx_bootstrap_theme
14-
html_theme = 'bootstrap'
15-
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
16-
elif choice == 'pydata_sphinx_theme':
17-
import pydata_sphinx_theme
18-
html_theme = 'pydata_sphinx_theme'
19-
html_theme_path = ['_static']
20-
else:
21-
raise NotImplementedError()
11+
html_theme = 'pydata_sphinx_theme'
12+
html_theme_path = ['_static']
2213

2314
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0])))
2415

0 commit comments

Comments
 (0)