File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,14 @@ def builder_inited(app):
55
55
if embed_url :
56
56
app .add_js_file (embed_url )
57
57
58
+ # add jupyter-sphinx css
59
+ app .add_css_file ('jupyter-sphinx.css' )
58
60
# Check if a thebelab config was specified
59
61
if app .config .jupyter_sphinx_thebelab_config :
60
62
app .add_js_file ('thebelab-helper.js' )
61
63
app .add_css_file ('thebelab.css' )
62
64
65
+
63
66
### Directives and their associated doctree nodes
64
67
65
68
class JupyterKernel (Directive ):
@@ -766,6 +769,11 @@ def build_finished(app, env):
766
769
if app .builder .format != 'html' :
767
770
return
768
771
772
+ # Copy stylesheet
773
+ src = os .path .join (os .path .dirname (__file__ ), 'css' )
774
+ dst = os .path .join (app .outdir , '_static' )
775
+ copy_asset (src , dst )
776
+
769
777
thebe_config = app .config .jupyter_sphinx_thebelab_config
770
778
if not thebe_config :
771
779
return
@@ -778,11 +786,6 @@ def build_finished(app, env):
778
786
779
787
def setup (app ):
780
788
# Configuration
781
- # Copy stylesheet
782
- src = os .path .join (os .path .dirname (__file__ ), 'css' )
783
- dst = os .path .join (app .outdir , '_static' )
784
- copy_asset (src , dst )
785
- app .add_css_file ('jupyter-sphinx.css' )
786
789
787
790
app .add_config_value (
788
791
'jupyter_execute_kwargs' ,
You can’t perform that action at this time.
0 commit comments