← 返回首页
gh-118689: fix ePub build by methane · Pull Request #118690 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

gh-118689: fix ePub build#118690

Merged
methane merged 2 commits into
python:mainfrom
methane:fix-epub
May 10, 2024
Merged

gh-118689: fix ePub build#118690
methane merged 2 commits into
python:mainfrom
methane:fix-epub

Conversation

methane commented May 7, 2024
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

methane commented May 7, 2024
edited
Loading

Copy link
Copy Markdown
Member Author

glossary.json caused unknown mimetype error. I don't know when this error starts. Maybe, recent Sphinx become more strict?

#116966 introduced JavaScript in ePub. This should be backported into 3.12.

#109438 introduced duplicated ToC error. This is Python 3.13 only issue.

methane commented May 7, 2024

Copy link
Copy Markdown
Member Author

With this fix, I can open the epub file with Books.app in macOS.

There are many other errors reported by epubcheck.
Some of them are caused by opengraph.
sphinx-doc/sphinxext-opengraph#120

methane added type-bug An unexpected behavior, bug, or error docs Documentation in the Doc dir 3.12 only security fixes needs backport to 3.12 only security fixes labels May 7, 2024

methane commented May 7, 2024

Copy link
Copy Markdown
Member Author

Another issue:
readthedocs/sphinx-notfound-page#230

methane commented May 7, 2024

Copy link
Copy Markdown
Member Author

Remaining errors:

$ epubcheck --locale en-US build/epub/Python.epub 2>python-epub-errors.txt

https://gist.github.com/methane/03a569934bec14a2b4b2a783f96d01b3

methane commented May 7, 2024

Copy link
Copy Markdown
Member Author

I found epub_use_index option so I use it to disable index.
Index page has been broken from start. When I show index page in Books.app, the app show only erro and I can not use the book.
Since index pages are very inaccessible (no link from toc), no one care it.

hugovk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Thank you for the fixes.

With this fix, I can open the epub file with Books.app in macOS.

Same here 👍

There are many other errors reported by epubcheck.

This sounds like something we should aim to add to the CI, even if we start with a subset of passing checks.

Thanks also for opening issues in the extensions.

serhiy-storchaka added the needs backport to 3.13 bugs and security fixes label May 9, 2024
methane merged commit 7ac933e into python:main May 10, 2024
methane deleted the fix-epub branch May 10, 2024 10:24

Copy link
Copy Markdown

Thanks @methane for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 10, 2024
(cherry picked from commit 7ac933e) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 10, 2024
(cherry picked from commit 7ac933e) Co-authored-by: Inada Naoki <songofacandy@gmail.com>

bedevere-app Bot commented May 10, 2024

Copy link
Copy Markdown

GH-118889 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label May 10, 2024

bedevere-app Bot commented May 10, 2024

Copy link
Copy Markdown

GH-118890 is a backport of this pull request to the 3.12 branch.

bedevere-app Bot removed the needs backport to 3.12 only security fixes label May 10, 2024
methane added a commit that referenced this pull request May 10, 2024
(cherry picked from commit 7ac933e) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
methane added a commit that referenced this pull request May 10, 2024
(cherry picked from commit 7ac933e) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.12 only security fixes docs Documentation in the Doc dir skip news type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Footer

© 2026 GitHub, Inc.