Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: correct notebook2html path operation for Windows. #239

Merged
merged 1 commit into from
Sep 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nbdev/export2html.py
Original file line number Diff line number Diff line change
@@ -566,7 +566,7 @@ def notebook2html(fname=None, force_all=False, n_workers=None, cls=HTMLExporter,
"Convert all notebooks matching `fname` to html files"
if fname is None:
files = [f for f in Config().nbs_path.glob('**/*.ipynb')
if not f.name.startswith('_') and not '/.' in str(f)]
if not f.name.startswith('_') and not '/.' in f.as_posix()]
else:
p = Path(fname)
files = list(p.parent.glob(p.name))
2 changes: 1 addition & 1 deletion nbs/03_export2html.ipynb
Original file line number Diff line number Diff line change
@@ -1876,7 +1876,7 @@
" \"Convert all notebooks matching `fname` to html files\"\n",
" if fname is None:\n",
" files = [f for f in Config().nbs_path.glob('**/*.ipynb')\n",
" if not f.name.startswith('_') and not '/.' in str(f)]\n",
" if not f.name.startswith('_') and not '/.' in f.as_posix()]\n",
" else:\n",
" p = Path(fname)\n",
" files = list(p.parent.glob(p.name))\n",