@@ -54,15 +54,15 @@ def install_quarto():
5454def install ():
5555 "Install Quarto and the current library"
5656 install_quarto .__wrapped__ ()
57- d = get_config ().path ( ' lib_path' )
57+ d = get_config ().lib_path
5858 if (d / '__init__.py' ).exists (): system (f'pip install -e "{ d .parent } [dev]"' )
5959
6060# %% ../nbs/09_API/13_quarto.ipynb 9
6161def _doc_paths (path :str = None , doc_path :str = None ):
6262 cfg = get_config ()
6363 cfg_path = cfg .config_path
64- path = cfg .path ( ' nbs_path' ) if not path else Path (path )
65- doc_path = cfg .path ( ' doc_path' ) if not doc_path else Path (doc_path )
64+ path = cfg .nbs_path if not path else Path (path )
65+ doc_path = cfg .doc_path if not doc_path else Path (doc_path )
6666 tmp_doc_path = path / f"{ cfg ['doc_path' ]} "
6767 return cfg ,cfg_path ,path ,doc_path ,tmp_doc_path
6868
@@ -97,7 +97,7 @@ def nbdev_sidebar(
9797 ** kwargs ):
9898 "Create sidebar.yml"
9999 if not force and str2bool (get_config ().custom_sidebar ): return
100- path = get_config ().path ( ' nbs_path' ) if not path else Path (path )
100+ path = get_config ().nbs_path if not path else Path (path )
101101 files = nbglob (path , func = _f , skip_folder_re = skip_folder_re , ** kwargs ).sorted (key = _sort )
102102 lastd ,res = Path (),[]
103103 for dabs ,name in files :
@@ -212,7 +212,7 @@ def _ensure_quarto():
212212def refresh_quarto_yml ():
213213 "Generate `_quarto.yml` from `settings.ini`."
214214 cfg = get_config ()
215- p = cfg .path ( ' nbs_path' ) / '_quarto.yml'
215+ p = cfg .nbs_path / '_quarto.yml'
216216 vals = {k :cfg .get (k ) for k in ['doc_path' , 'title' , 'description' , 'branch' , 'git_url' , 'doc_host' , 'doc_baseurl' ]}
217217 # Do not build _quarto_yml if custom_quarto_yml is set to True
218218 if str2bool (cfg .get ('custom_quarto_yml' , False )): return
@@ -287,4 +287,4 @@ def deploy(
287287 if not skip_build : nbdev_quarto .__wrapped__ (path , ** kwargs )
288288 try : from ghp_import import ghp_import
289289 except : return warnings .warn ('Please install ghp-import with `pip install ghp-import`' )
290- ghp_import (get_config ().path ( ' doc_path' ) , push = True , stderr = True , no_history = True )
290+ ghp_import (get_config ().doc_path , push = True , stderr = True , no_history = True )
0 commit comments