readthedocs / sphinx-notfound-page

Create a custom 404 page with absolute URLs hardcoded
https://sphinx-notfound-page.readthedocs.io/
MIT License
51 stars 33 forks source link

Do not produce 404.xhtml in epub and htmlhelp #230

Closed methane closed 6 months ago

methane commented 6 months ago

Python uses this extension but I don't want include it in ePub build. Would you check if app.builder.embedded before generating 404 page?

humitos commented 6 months ago

Hi. Yeah, that makes sense. I think this page should only be generated if the builder is HTML (that means, no PDF nor ePUB or similars). Do you like to open a PR for this? 🙏🏼