File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,9 @@ def run(self):
464
464
elif isinstance (self , VoiciDirective ):
465
465
button_text = self .env .config .voici_button_text
466
466
elif "button_text" in self .options :
467
- raise ValueError ("'button_text' is only valid if 'new_tab' is True. To modify the prompt text, use 'prompt' and 'prompt_color'." )
467
+ raise ValueError (
468
+ "'button_text' is only valid if 'new_tab' is True. To modify the prompt text, use 'prompt' and 'prompt_color'."
469
+ )
468
470
469
471
if new_tab :
470
472
return [
@@ -927,8 +929,12 @@ def setup(app):
927
929
928
930
# Allow customising the button text for each directive (only when "new_tab" is True,
929
931
# error otherwise)
930
- app .add_config_value ("jupyterlite_button_text" , "Open as a notebook" , rebuild = "html" )
931
- app .add_config_value ("notebooklite_button_text" , "Open as a notebook" , rebuild = "html" )
932
+ app .add_config_value (
933
+ "jupyterlite_button_text" , "Open as a notebook" , rebuild = "html"
934
+ )
935
+ app .add_config_value (
936
+ "notebooklite_button_text" , "Open as a notebook" , rebuild = "html"
937
+ )
932
938
app .add_config_value ("voici_button_text" , "Open with Voici" , rebuild = "html" )
933
939
934
940
# Initialize NotebookLite and JupyterLite directives
You can’t perform that action at this time.
0 commit comments