diff --git a/pre_nbdev_preview.py b/pre_nbdev_preview.py index 92fb5d48..991b38a8 100644 --- a/pre_nbdev_preview.py +++ b/pre_nbdev_preview.py @@ -1,3 +1,4 @@ +import os from nbdev.quarto import nbdev_docs from nbdev.processors import FilterDefaults as filter_defaults_old from nbdev.process import NBProcessor @@ -6,7 +7,5 @@ def FilterDefaults(nb): procs = [x for x in filter_defaults_old().procs() if x.__name__ != 'clean_magics'] return NBProcessor(nb=nb, procs=procs).process() -import os -print(os.getcwd()) -print(os.listdir()) +os.chdir(os.path.join(os.getcwd(),'nbs')) nbdev_docs(path=os.getcwd()) \ No newline at end of file