File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22import sys
33import os
4+ import warnings
45from 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
2314sys .path .insert (0 , os .path .abspath (os .path .join (os .path .split (__file__ )[0 ])))
2415
You can’t perform that action at this time.
0 commit comments