gh-136155: Docs: check for EPUB fatal errors in CI#134074
gh-136155: Docs: check for EPUB fatal errors in CI#134074hugovk merged 22 commits intopython:mainfrom
Conversation
|
|
||
| epub_author = 'Python Documentation Authors' | ||
| epub_publisher = 'Python Software Foundation' | ||
| epub_exclude_files = ('index.xhtml', 'download.xhtml') |
There was a problem hiding this comment.
For reference:
A sequence of files that are generated/copied in the build directory but should not be included in the EPUB file.
https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-epub_exclude_files
hugovk
left a comment
There was a problem hiding this comment.
Thanks, looks good.
We'll need to wait for #136155 (comment) / sphinx-doc/sphinxext-opengraph#136 / sphinx-doc/sphinxext-opengraph#137 to be fixed before merging.
But they're taking some time. Until sphinxext-opengraph is fixed and released, is it useful to log these errors in CI, without failing? Or shall we wait a bit longer?
|
Would it be worth to add |
|
As a custom file? Probably not, because it would only be for the short term. Unlike |
|
Thank you! |
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
|
GH-137538 is a backport of this pull request to the 3.13 branch. |
|
GH-137539 is a backport of this pull request to the 3.14 branch. |
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
…onGH-134074) (python#137539) Co-authored-by: Maciej Olko <maciej.olko@affirm.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
Sorry, @m-aciek and @hugovk, I could not cleanly backport this to |
|
Backport needed for (at least) 3.12, because the release scripts are testing the EPUB, and we need |
|
GH-145471 is a backport of this pull request to the 3.12 branch. |
…onGH-134074) (cherry picked from commit 624bf52) Co-authored-by: Maciej Olko <maciej.olko@affirm.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>

Validate EPUB documentation for not having warnings with level
FATALwhen running EPUBCheck in the CI.This should prevent issues similar to #136155 in the future.
The check will pass after rebase on #136187 merged to the main branch.