Skip to content

Commit 1b58f17

Browse files
committed
doc_path
1 parent b5005ba commit 1b58f17

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

nbdev/quarto.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ def refresh_quarto_yml():
213213
"Generate `_quarto.yml` from `settings.ini`."
214214
cfg = get_config()
215215
p = cfg.nbs_path/'_quarto.yml'
216-
vals = {k:cfg.get(k) for k in ['doc_path', 'title', 'description', 'branch', 'git_url', 'doc_host', 'doc_baseurl']}
216+
vals = {k:cfg[k] for k in ['title', 'description', 'branch', 'git_url', 'doc_host', 'doc_baseurl']}
217+
vals['doc_path'] = cfg.doc_path.name
217218
# Do not build _quarto_yml if custom_quarto_yml is set to True
218219
if cfg.get('custom_quarto_yml', False): return
219220
if 'title' not in vals: vals['title'] = vals['lib_name']

nbdev/release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def _get_conda_meta():
220220
'build': {'number': '0', 'noarch': 'python',
221221
'script': '{{ PYTHON }} -m pip install . -vv'},
222222
'requirements': {'host':reqs, 'run':reqs},
223-
'test': {'imports': [cfg.get('lib_path')]},
223+
'test': {'imports': [cfg.lib_path.name]},
224224
'about': {
225225
'license': 'Apache Software',
226226
'license_family': 'APACHE',

nbs/09_API/13_quarto.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@
393393
" \"Generate `_quarto.yml` from `settings.ini`.\"\n",
394394
" cfg = get_config()\n",
395395
" p = cfg.nbs_path/'_quarto.yml'\n",
396-
" vals = {k:cfg.get(k) for k in ['doc_path', 'title', 'description', 'branch', 'git_url', 'doc_host', 'doc_baseurl']}\n",
396+
" vals = {k:cfg[k] for k in ['title', 'description', 'branch', 'git_url', 'doc_host', 'doc_baseurl']}\n",
397+
" vals['doc_path'] = cfg.doc_path.name\n",
397398
" # Do not build _quarto_yml if custom_quarto_yml is set to True\n",
398399
" if cfg.get('custom_quarto_yml', False): return\n",
399400
" if 'title' not in vals: vals['title'] = vals['lib_name']\n",

nbs/09_API/17_release.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@
565565
" 'build': {'number': '0', 'noarch': 'python',\n",
566566
" 'script': '{{ PYTHON }} -m pip install . -vv'},\n",
567567
" 'requirements': {'host':reqs, 'run':reqs},\n",
568-
" 'test': {'imports': [cfg.get('lib_path')]},\n",
568+
" 'test': {'imports': [cfg.lib_path.name]},\n",
569569
" 'about': {\n",
570570
" 'license': 'Apache Software',\n",
571571
" 'license_family': 'APACHE',\n",

nbs/_quarto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ipynb-filters: [nbdev_filter]
22

33
project:
44
type: website
5-
output-dir: /Users/jhoward/git/nbdev/_docs
5+
output-dir: _docs
66
preview:
77
port: 3000
88
browser: false

0 commit comments

Comments
 (0)