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: fix logo not declared in the OPF manifest #1852

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

milmazz
Copy link
Member

@milmazz milmazz commented Jan 25, 2024

We need to list all the resources included in the EPUB file in the OPF manifest, we missed doing that for the logo.

Basically this PR fix the following error found by epubcheck:

  {
    "ID" : "RSC-008",
    "severity" : "ERROR",
    "message" : "Referenced resource \"OEBPS/assets/logo.png\" is not declared in the OPF manifest.",
    "locations" : [ {
      "path" : "OEBPS/title.xhtml",
      "line" : 21,
      "column" : 55
    } ]
  }

I also did some small refactor in this template.

We need to list all the resources included in the EPUB file in the OPF
manifest, we missed doing that for the logo.

Basically this PR should fix the following error found by `epubcheck`:

```json
  {
    "ID" : "RSC-008",
    "severity" : "ERROR",
    "message" : "Referenced resource \"OEBPS/assets/logo.png\" is not declared in the OPF manifest.",
    "locations" : [ {
      "path" : "OEBPS/title.xhtml",
      "line" : 21,
      "column" : 55
    } ]
  }
```

I also some small refactor in this template.
@josevalim
Copy link
Member

Could we add a test for this one? :)

@milmazz
Copy link
Member Author

milmazz commented Jan 26, 2024

Could we add a test for this one? :)

Sure, now it's done.

@milmazz milmazz merged commit 0b01c76 into main Jan 26, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants