docs2epub 0.1.5__py3-none-any.whl → 0.1.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- docs2epub/docusaurus_next.py +9 -1
- {docs2epub-0.1.5.dist-info → docs2epub-0.1.6.dist-info}/METADATA +1 -1
- {docs2epub-0.1.5.dist-info → docs2epub-0.1.6.dist-info}/RECORD +5 -5
- {docs2epub-0.1.5.dist-info → docs2epub-0.1.6.dist-info}/WHEEL +0 -0
- {docs2epub-0.1.5.dist-info → docs2epub-0.1.6.dist-info}/entry_points.txt +0 -0
docs2epub/docusaurus_next.py
CHANGED
|
@@ -332,7 +332,15 @@ def iter_docusaurus_next(options: DocusaurusNextOptions) -> list[Chapter]:
|
|
|
332
332
|
return None
|
|
333
333
|
visited.add(key)
|
|
334
334
|
|
|
335
|
-
page_soup = soup
|
|
335
|
+
page_soup = soup
|
|
336
|
+
if page_soup is None:
|
|
337
|
+
try:
|
|
338
|
+
page_soup = fetch_soup(target_url)
|
|
339
|
+
except requests.HTTPError as exc:
|
|
340
|
+
status = exc.response.status_code if exc.response is not None else None
|
|
341
|
+
if status in {404, 410} and key != initial_key:
|
|
342
|
+
return None
|
|
343
|
+
raise
|
|
336
344
|
|
|
337
345
|
article = _extract_article(page_soup)
|
|
338
346
|
title_el = article.find(["h1", "h2"])
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
docs2epub/__init__.py,sha256=iccyEu4zlubhvd6pM7Z2Gjwn8tPw9IhZ4ABKhbiFjUY,54
|
|
2
2
|
docs2epub/cli.py,sha256=pt1crvrkr2k1ybf_p0m4xSYyoZVluFsDNGuwJ7CykYM,3863
|
|
3
|
-
docs2epub/docusaurus_next.py,sha256=
|
|
3
|
+
docs2epub/docusaurus_next.py,sha256=c4EZMo7E6zeuekbA3n_rF1joT3Km1cPY1HTimzUkMFg,10866
|
|
4
4
|
docs2epub/epub.py,sha256=OsPWcPGTgazAeNpWASIE6e4HQ5ILQr2VFO1-Aj3y1kg,2986
|
|
5
5
|
docs2epub/kindle_html.py,sha256=LN0CGj9ap9b8iC_MlZcQLuhJ7FehZr_VbIfMOz78E5c,2297
|
|
6
6
|
docs2epub/model.py,sha256=uL7uwbG6yU0bEGpSFxxIv2pcZHQR9cs2prfqk5iNQwc,160
|
|
7
7
|
docs2epub/pandoc_epub2.py,sha256=l22-QAQcCgJyl7HF0_b5weC3qEGVQLwOhxdbAvd8C2o,3610
|
|
8
|
-
docs2epub-0.1.
|
|
9
|
-
docs2epub-0.1.
|
|
10
|
-
docs2epub-0.1.
|
|
11
|
-
docs2epub-0.1.
|
|
8
|
+
docs2epub-0.1.6.dist-info/METADATA,sha256=Qu_OyYWfevaG_y7rCpUR81AT8aYK9Yo9KS4Cz_ZgDg8,1886
|
|
9
|
+
docs2epub-0.1.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
10
|
+
docs2epub-0.1.6.dist-info/entry_points.txt,sha256=DHK4mzthrIXUvM8Y8Vo_3jG2IhegEDDM7T9CvCkUtvw,49
|
|
11
|
+
docs2epub-0.1.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|