Skip to content

Commit 98dc794

Browse files
committed
doc_path.name
1 parent 57f7e5b commit 98dc794

File tree

7 files changed

+5
-59
lines changed

7 files changed

+5
-59
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
_quarto.yml
12
nbs/sidebar.yml
23
tests/settings.ini
34
idx/

nbdev/clean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def _git_root():
177177
try: return Path(run('git rev-parse --show-toplevel'))
178178
except OSError: return None
179179

180-
# %% ../nbs/09_API/10_clean.ipynb 42
180+
# %% ../nbs/09_API/10_clean.ipynb 41
181181
@call_parse
182182
def nbdev_install_hooks():
183183
"Install Jupyter and git hooks to automatically clean, trust, and fix merge conflicts in notebooks"

nbdev/quarto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def refresh_quarto_yml():
214214
cfg = get_config()
215215
p = cfg.nbs_path/'_quarto.yml'
216216
vals = {k:cfg[k] for k in ['title', 'description', 'branch', 'git_url', 'doc_host', 'doc_baseurl']}
217-
vals['doc_path'] = cfg.doc_path
217+
vals['doc_path'] = cfg.doc_path.name
218218
# Do not build _quarto_yml if custom_quarto_yml is set to True
219219
if cfg.get('custom_quarto_yml', False): return
220220
if 'title' not in vals: vals['title'] = vals['lib_name']

nbs/09_API/10_clean.ipynb

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -575,31 +575,13 @@
575575
"import tempfile"
576576
]
577577
},
578-
{
579-
"cell_type": "code",
580-
"execution_count": null,
581-
"metadata": {},
582-
"outputs": [
583-
{
584-
"name": "stdout",
585-
"output_type": "stream",
586-
"text": [
587-
"/home/jhoward/git/nbdev/nbs\r\n"
588-
]
589-
}
590-
],
591-
"source": [
592-
"!pwd"
593-
]
594-
},
595578
{
596579
"cell_type": "code",
597580
"execution_count": null,
598581
"metadata": {},
599582
"outputs": [],
600583
"source": [
601584
"#|hide\n",
602-
"test_eq(_git_root().name, 'nbdev')\n",
603585
"with tempfile.TemporaryDirectory() as d, working_directory(d): test_is(_git_root(), None)"
604586
]
605587
},

nbs/09_API/13_quarto.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@
394394
" cfg = get_config()\n",
395395
" p = cfg.nbs_path/'_quarto.yml'\n",
396396
" vals = {k:cfg[k] for k in ['title', 'description', 'branch', 'git_url', 'doc_host', 'doc_baseurl']}\n",
397-
" vals['doc_path'] = cfg.doc_path\n",
397+
" vals['doc_path'] = cfg.doc_path.name\n",
398398
" # Do not build _quarto_yml if custom_quarto_yml is set to True\n",
399399
" if cfg.get('custom_quarto_yml', False): return\n",
400400
" if 'title' not in vals: vals['title'] = vals['lib_name']\n",

nbs/_quarto.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

settings.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ language = English
1414
custom_sidebar = False
1515
license = apache2
1616
status = 2
17-
requirements = fastcore>=1.5.19 execnb>=0.1.2 astunparse ghapi>=1.0.2
17+
requirements = fastcore>=1.5.24 execnb>=0.1.2 astunparse ghapi>=1.0.2
1818
pip_requirements = PyYAML
1919
conda_requirements = pyyaml
2020
conda_user = fastai

0 commit comments

Comments
 (0)