Skip to content

Commit d235765

Browse files
committed
quarto.yml msg
1 parent 698f883 commit d235765

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

nbdev/quarto.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

nbs/api/quarto.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@
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
},

0 commit comments

Comments
 (0)