Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

epub broken due to empty data-no-tooltip #2087

Closed
petermm opened this issue Feb 2, 2025 · 0 comments
Closed

epub broken due to empty data-no-tooltip #2087

petermm opened this issue Feb 2, 2025 · 0 comments

Comments

@petermm
Copy link

petermm commented Feb 2, 2025

So apparently according to standards data-no-tooltip must not be empty, eg. it has to be data-no-tooltip=""

This results in most/all epub being broken with "FATAL" error.

➜  ex_doc-0.37.0-rc.2 epubcheck ExDoc.epub
ERROR(PKG-005): ExDoc.epub/./ExDoc.epub(-1,-1): The mimetype file has an extra field of length 28. The use of the extra field feature of the ZIP format is not permitted for the mimetype file.
Validating using EPUB version 3.3 rules.
ERROR(RSC-005): ExDoc.epub/OEBPS/nav.xhtml(30,15): Error while parsing file: element "ol" not allowed yet; expected element "a" or "span"
ERROR(OPF-014): ExDoc.epub/OEBPS/readme.xhtml(-1,-1): The property "remote-resources" should be declared in the OPF file.
FATAL(RSC-016): ExDoc.epub/OEBPS/ExDoc.Markdown.xhtml(35,51): Fatal Error while parsing file: Attribute name "data-no-tooltip" associated with an element type "a" must be followed by the ' = ' character.
FATAL(RSC-016): ExDoc.epub/OEBPS/ExDoc.Markdown.Earmark.xhtml(33,45): Fatal Error while parsing file: Attribute name "data-no-tooltip" associated with an element type "a" must be followed by the ' = ' character.
ERROR(CSS-008): ExDoc.epub/OEBPS/dist/epub-elixir-FNUUKFP7.css(1,7722): An error occurred while parsing the CSS: Token "code" not allowed here.
ERROR(CSS-008): ExDoc.epub/OEBPS/dist/epub-elixir-FNUUKFP7.css(1,7862): An error occurred while parsing the CSS: Token "code" not allowed here.
ERROR(CSS-008): ExDoc.epub/OEBPS/dist/epub-elixir-FNUUKFP7.css(1,8908): An error occurred while parsing the CSS: Token "code" not allowed here.
ERROR(CSS-008): ExDoc.epub/OEBPS/dist/epub-elixir-FNUUKFP7.css(1,8908): An error occurred while parsing the CSS: Token "code" not allowed here.
ERROR(RSC-006): ExDoc.epub/OEBPS/readme.xhtml(17,178): Remote resource reference is not allowed in this context; resource "https://github.com/elixir-lang/ex_doc/workflows/CI/badge.svg" must be located in the EPUB container.
ERROR(RSC-012): ExDoc.epub/OEBPS/ExDoc.Markdown.xhtml(30,26): Fragment identifier is not defined.
ERROR(RSC-012): ExDoc.epub/OEBPS/ExDoc.Markdown.Earmark.xhtml(28,26): Fragment identifier is not defined.

Check finished with errors
Messages: 2 fatals / 10 errors / 0 warnings / 0 infos

EPUBCheck completed
Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant