|
51 | 51 | "from fastcore.script import *\n",
|
52 | 52 | "import httpx\n",
|
53 | 53 | "from urllib.parse import urlparse\n",
|
54 |
| - "from nbdev.config import get_config" |
| 54 | + "from nbdev.config import *" |
55 | 55 | ]
|
56 | 56 | },
|
57 | 57 | {
|
|
686 | 686 | "def get_doc_content(url):\n",
|
687 | 687 | " \"Fetch content from local file if in nbdev repo.\"\n",
|
688 | 688 | " cfg = get_config()\n",
|
689 |
| - " if url.startswith(cfg.doc_host):\n", |
| 689 | + " if is_nbdev() and url.startswith(cfg.doc_host):\n", |
690 | 690 | " relative_path = urlparse(url).path.lstrip('/')\n",
|
691 | 691 | " local_path = _local_docs_pth(cfg) / relative_path\n",
|
692 | 692 | " if local_path.exists(): return local_path.read_text()\n",
|
|
778 | 778 | "data": {
|
779 | 779 | "text/plain": [
|
780 | 780 | "{'docs': {'internal docs - ed': 34464,\n",
|
781 |
| - " 'FastHTML quick start': 27376,\n", |
782 |
| - " 'HTMX reference': 26427,\n", |
| 781 | + " 'FastHTML quick start': 27383,\n", |
| 782 | + " 'HTMX reference': 26642,\n", |
783 | 783 | " 'Starlette quick guide': 7936},\n",
|
784 | 784 | " 'examples': {'Todo list application': 18558},\n",
|
785 | 785 | " 'optional': {'Starlette full documentation': 48331}}"
|
|
802 | 802 | {
|
803 | 803 | "data": {
|
804 | 804 | "text/plain": [
|
805 |
| - "164321" |
| 805 | + "164543" |
806 | 806 | ]
|
807 | 807 | },
|
808 | 808 | "execution_count": null,
|
|
0 commit comments