Skip to content

Commit

Permalink
feat: add new config to JB config
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Dec 12, 2023
1 parent 9be46f6 commit 1972936
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jupyter_book/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,9 @@ def yaml_to_sphinx(yaml: dict):
if execute:
for spx_key, yml_key in [
("nb_execution_allow_errors", "allow_errors"),
("nb_execution_raise_on_error", "raise_on_error"),
("nb_eval_name_regex", "eval_regex"),
("nb_execution_show_tb", "show_tb"),
("nb_execution_in_temp", "run_in_temp"),
("nb_output_stderr", "stderr_output"),
("nb_execution_timeout", "timeout"),
Expand Down
13 changes: 13 additions & 0 deletions jupyter_book/config_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,24 @@
"execute": {
"type": "object",
"properties": {
"eval_regex": {
"type": "string",
"default": "^[a-zA-Z_][a-zA-Z0-9_]*$"
},
"raise_on_error": {
"type": "boolean",
"default": false
},
"show_tb": {
"type": "boolean",
"default": false
},
"execute_notebooks": {
"enum": [
"auto",
"cache",
"force",
"inline",
"off",
false
],
Expand Down

0 comments on commit 1972936

Please sign in to comment.