File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,9 @@ def refresh_quarto_yml():
169169 if 'title' not in vals : vals ['title' ] = vals ['lib_name' ]
170170 ny .write_text (_nbdev_yml .format (** vals ))
171171 qy = cfg .nbs_path / '_quarto.yml'
172- if qy .exists () and not str2bool (cfg .get ('custom_quarto_yml' , False )): qy .unlink ()
172+ if qy .exists () and not str2bool (cfg .get ('custom_quarto_yml' , True )):
173+ qy .unlink ()
174+ print ("NB: From v1.2 `_quarto.yml` is no longer auto-updated. Please remove the `custom_quarto_yml` line from `settings.ini`" )
173175 if not qy .exists (): qy .write_text (_quarto_yml )
174176
175177# %% ../nbs/api/quarto.ipynb 17
Original file line number Diff line number Diff line change 310310 " if 'title' not in vals: vals['title'] = vals['lib_name']\n " ,
311311 " ny.write_text(_nbdev_yml.format(**vals))\n " ,
312312 " qy = cfg.nbs_path/'_quarto.yml'\n " ,
313- " if qy.exists() and not str2bool(cfg.get('custom_quarto_yml', False)): qy.unlink()\n " ,
313+ " if qy.exists() and not str2bool(cfg.get('custom_quarto_yml', True)):\n " ,
314+ " qy.unlink()\n " ,
315+ " print(\" NB: From v1.2 `_quarto.yml` is no longer auto-updated. Please remove the `custom_quarto_yml` line from `settings.ini`\" )\n " ,
314316 " if not qy.exists(): qy.write_text(_quarto_yml)"
315317 ]
316318 },
You can’t perform that action at this time.
0 commit comments