Skip to content

Commit

Permalink
Merge pull request #1266 from restlessronin/copy-extensions
Browse files Browse the repository at this point in the history
copy contents of _extensions folder from nbs
  • Loading branch information
jph00 authored Jan 9, 2023
2 parents acf0bfe + fa5f564 commit 1141f92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions nbdev/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def proc_nbs(
path = Path(path or cfg.nbs_path)
files = nbglob(path, func=Path, file_glob='', file_re='', **kwargs)
if (path/'_quarto.yml').exists(): files.append(path/'_quarto.yml')
if (path/'_extensions').exists(): files.extend(nbglob(path/'_extensions', func=Path, file_glob='', file_re='', skip_file_re='^[.]'))

# If settings.ini or filter script newer than cache folder modified, delete cache
chk_mtime = max(cfg.config_file.stat().st_mtime, Path(__file__).stat().st_mtime)
Expand Down
1 change: 1 addition & 0 deletions nbs/api/serve.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
" path = Path(path or cfg.nbs_path)\n",
" files = nbglob(path, func=Path, file_glob='', file_re='', **kwargs)\n",
" if (path/'_quarto.yml').exists(): files.append(path/'_quarto.yml')\n",
" if (path/'_extensions').exists(): files.extend(nbglob(path/'_extensions', func=Path, file_glob='', file_re='', skip_file_re='^[.]'))\n",
"\n",
" # If settings.ini or filter script newer than cache folder modified, delete cache\n",
" chk_mtime = max(cfg.config_file.stat().st_mtime, Path(__file__).stat().st_mtime)\n",
Expand Down

0 comments on commit 1141f92

Please sign in to comment.