File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -152,9 +152,8 @@ def refresh_quarto_yml():
152
152
if 'title' not in vals : vals ['title' ] = vals ['lib_name' ]
153
153
ny .write_text (_nbdev_yml .format (** vals ))
154
154
qy = cfg .nbs_path / '_quarto.yml'
155
- if qy .exists () and not str2bool (cfg .get ('custom_quarto_yml' , False )):
156
- qy .unlink ()
157
- print ("NB: From v1.2 `_quarto.yml` is no longer auto-updated. Please remove the `custom_quarto_yml` line from `settings.ini`" )
155
+ if 'custom_quarto_yml' in cfg .d : print ("NB: `_quarto.yml` is no longer auto-updated. Remove `custom_quarto_yml` from `settings.ini`" )
156
+ if qy .exists () and not str2bool (cfg .get ('custom_quarto_yml' , True )): qy .unlink ()
158
157
if not qy .exists (): qy .write_text (_quarto_yml )
159
158
160
159
# %% ../nbs/api/quarto.ipynb 16
Original file line number Diff line number Diff line change 285
285
" if 'title' not in vals: vals['title'] = vals['lib_name']\n " ,
286
286
" ny.write_text(_nbdev_yml.format(**vals))\n " ,
287
287
" qy = cfg.nbs_path/'_quarto.yml'\n " ,
288
- " if qy.exists() and not str2bool(cfg.get('custom_quarto_yml', False)):\n " ,
289
- " qy.unlink()\n " ,
290
- " print(\" NB: From v1.2 `_quarto.yml` is no longer auto-updated. Please remove the `custom_quarto_yml` line from `settings.ini`\" )\n " ,
288
+ " if 'custom_quarto_yml' in cfg.d: print(\" NB: `_quarto.yml` is no longer auto-updated. Remove `custom_quarto_yml` from `settings.ini`\" )\n " ,
289
+ " if qy.exists() and not str2bool(cfg.get('custom_quarto_yml', True)): qy.unlink()\n " ,
291
290
" if not qy.exists(): qy.write_text(_quarto_yml)"
292
291
]
293
292
},
Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ allowed_metadata_keys =
63
63
allowed_cell_metadata_keys =
64
64
jupyter_hooks = True
65
65
clean_ids = False
66
- custom_quarto_yml = True
67
66
clear_all = False
68
67
put_version_in_init = True
69
68
You can’t perform that action at this time.
0 commit comments