Open aucampia opened 2 years ago
Any workaround to this, besides disabling warnings or epub builds?
I found a solution on readthedocs.
# disable epub mimetype warnings
suppress_warnings = ["epub.unknown_project_files"]
Added here: https://github.com/sphinx-doc/sphinx/commit/6d900c34f12db0d21c581c58a5dd38ab49c8ea35
Describe the bug
When building epub with 4.5.0, the follow warning is produced:
This prevents the
-W
flag from being useful when building epub and having ahtml_favicon
set.How to Reproduce
Just the commands:
Commands with output
Expected behavior
I would expect the epub builder to either know how to handle .ico files or ignore
html_favicon
.Your project
https://github.com/RDFLib/rdflib/tree/d711a3518c033695e41a84c147bc09aca0893d21
Screenshots
No response
OS
Linux - Fedora 35
Python version
Python 3.9.12
Sphinx version
4.5.0
Sphinx extensions
sphinxcontrib.apidoc, sphinx.ext.autodoc, sphinx.ext.doctest, sphinx.ext.intersphinx, sphinx.ext.todo, sphinx.ext.coverage, sphinx.ext.ifconfig, sphinx.ext.viewcode, myst_parser, sphinxcontrib.kroki
Extra tools
No response
Additional context
I noticed this on our RTD build after enabling
sphinx.fail_on_warning
. See https://readthedocs.org/projects/rdflib/builds/16660933/.