|
362 | 362 | " **kwargs):\n", |
363 | 363 | " \"Export notebooks in `path` to Python modules\"\n", |
364 | 364 | " if os.environ.get('IN_TEST',0): return\n", |
| 365 | + " if not is_nbdev(): raise Exception('`nbdev_export` must be called from a directory within a nbdev project.')\n", |
| 366 | + " path = Path(path or get_config().nbs_path)\n", |
365 | 367 | " if procs:\n", |
366 | 368 | " import nbdev.export\n", |
367 | 369 | " procs = [getattr(nbdev.export, p) for p in L(procs)]\n", |
|
576 | 578 | "text/markdown": [ |
577 | 579 | "---\n", |
578 | 580 | "\n", |
579 | | - "[source](https://github.com/fastai/nbdev/blob/master/nbdev/doclinks.py#L216){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 581 | + "[source](https://github.com/fastai/nbdev/blob/master/nbdev/doclinks.py#L226){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
580 | 582 | "\n", |
581 | 583 | "### NbdevLookup.doc\n", |
582 | 584 | "\n", |
583 | 585 | "> NbdevLookup.doc (sym)\n", |
584 | 586 | "\n", |
585 | | - "Link to docs for `sym`" |
| 587 | + "*Link to docs for `sym`*" |
586 | 588 | ], |
587 | 589 | "text/plain": [ |
588 | 590 | "---\n", |
589 | 591 | "\n", |
590 | | - "[source](https://github.com/fastai/nbdev/blob/master/nbdev/doclinks.py#L216){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 592 | + "[source](https://github.com/fastai/nbdev/blob/master/nbdev/doclinks.py#L226){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
591 | 593 | "\n", |
592 | 594 | "### NbdevLookup.doc\n", |
593 | 595 | "\n", |
594 | 596 | "> NbdevLookup.doc (sym)\n", |
595 | 597 | "\n", |
596 | | - "Link to docs for `sym`" |
| 598 | + "*Link to docs for `sym`*" |
597 | 599 | ] |
598 | 600 | }, |
599 | 601 | "execution_count": null, |
|
670 | 672 | "text/markdown": [ |
671 | 673 | "---\n", |
672 | 674 | "\n", |
673 | | - "[source](https://github.com/fastai/nbdev/blob/master/nbdev/doclinks.py#L221){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 675 | + "[source](https://github.com/fastai/nbdev/blob/master/nbdev/doclinks.py#L231){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
674 | 676 | "\n", |
675 | 677 | "### NbdevLookup.code\n", |
676 | 678 | "\n", |
677 | 679 | "> NbdevLookup.code (sym)\n", |
678 | 680 | "\n", |
679 | | - "Link to source code for `sym`" |
| 681 | + "*Link to source code for `sym`*" |
680 | 682 | ], |
681 | 683 | "text/plain": [ |
682 | 684 | "---\n", |
683 | 685 | "\n", |
684 | | - "[source](https://github.com/fastai/nbdev/blob/master/nbdev/doclinks.py#L221){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 686 | + "[source](https://github.com/fastai/nbdev/blob/master/nbdev/doclinks.py#L231){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
685 | 687 | "\n", |
686 | 688 | "### NbdevLookup.code\n", |
687 | 689 | "\n", |
688 | 690 | "> NbdevLookup.code (sym)\n", |
689 | 691 | "\n", |
690 | | - "Link to source code for `sym`" |
| 692 | + "*Link to source code for `sym`*" |
691 | 693 | ] |
692 | 694 | }, |
693 | 695 | "execution_count": null, |
|
729 | 731 | "text/markdown": [ |
730 | 732 | "---\n", |
731 | 733 | "\n", |
732 | | - "[source](https://github.com/fastai/nbdev/blob/master/nbdev/doclinks.py#L238){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 734 | + "[source](https://github.com/fastai/nbdev/blob/master/nbdev/doclinks.py#L248){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
733 | 735 | "\n", |
734 | 736 | "### NbdevLookup.linkify\n", |
735 | 737 | "\n", |
|
738 | 740 | "text/plain": [ |
739 | 741 | "---\n", |
740 | 742 | "\n", |
741 | | - "[source](https://github.com/fastai/nbdev/blob/master/nbdev/doclinks.py#L238){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
| 743 | + "[source](https://github.com/fastai/nbdev/blob/master/nbdev/doclinks.py#L248){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n", |
742 | 744 | "\n", |
743 | 745 | "### NbdevLookup.linkify\n", |
744 | 746 | "\n", |
|
0 commit comments