10
10
# add these directories to sys.path here. If the directory is relative to the
11
11
# documentation root, use os.path.abspath to make it absolute, like shown here.
12
12
#
13
- import os
13
+ import os , shutil
14
14
import sys
15
15
sys .path .insert (0 , os .path .abspath ('../' ))
16
16
17
+
18
+ def copy_tree (src , tar ):
19
+ if os .path .exists (tar ):
20
+ shutil .rmtree (tar )
21
+ shutil .copytree (src , tar )
22
+
23
+
24
+ copy_tree ("../../examples" , "build/blitz" )
25
+ copy_tree ("../../asset" , "build/asset" )
26
+
17
27
import sphinx_rtd_theme
18
28
19
29
# -- Project information -----------------------------------------------------
22
32
copyright = '2021, bigdata-ustc'
23
33
author = 'bigdata-ustc'
24
34
25
-
26
35
# -- General configuration ---------------------------------------------------
27
36
28
37
# Add any Sphinx extension module names here, as strings. They can be
36
45
'sphinx.ext.napoleon' ,
37
46
'sphinx.ext.mathjax' ,
38
47
'sphinx_toggleprompt' ,
48
+ 'nbsphinx' ,
49
+ 'sphinx_gallery.load_style'
39
50
]
40
51
52
+ # extension variables setting
53
+ # npsphinx
54
+
55
+ nbsphinx_thumbnails = {
56
+ 'build/blitz/sif/sif' : '_static/EduNLP.png' ,
57
+ }
58
+
41
59
# Add any paths that contain templates here, relative to this directory.
42
60
templates_path = ['_templates' ]
43
61
62
+ # The suffix(es) of source filenames.
63
+ # You can specify multiple suffix as a list of string:
64
+ #
65
+ source_suffix = ['.rst' , '.md' , '.ipynb' ]
66
+ # source_suffix = '.rst'
67
+
44
68
# The language for content autogenerated by Sphinx. Refer to documentation
45
69
# for a list of supported languages.
46
70
#
51
75
# List of patterns, relative to source directory, that match files and
52
76
# directories to ignore when looking for source files.
53
77
# This pattern also affects html_static_path and html_extra_path.
54
- exclude_patterns = []
55
-
78
+ exclude_patterns = ['_build' ]
56
79
57
80
# -- Options for HTML output -------------------------------------------------
58
81
65
88
# Add any paths that contain custom static files (such as style sheets) here,
66
89
# relative to this directory. They are copied after the builtin static files,
67
90
# so a file named "default.css" will overwrite the builtin "default.css".
68
- html_static_path = ['_static' ]
91
+ html_static_path = ['_static' ]
0 commit comments