readthedocs / sphinx-notfound-page

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

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

Closed methane closed 3 months ago

methane commented 3 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 3 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? 🙏🏼