aboutsummaryrefslogtreecommitdiff
path: root/src/epub.rs
Commit message (Collapse)AuthorAgeFilesLines
* Deserialize URLs to Url type directlyA Farzat4 days1-13/+6
| | | | | This saves the effort of having to do it manually later on. Also avoids duplication in parsing.
* Initiate full_path as RelativePathBufA Farzat4 days1-12/+8
| | | | | | | This is better than having it as string then converting it to path whenever we want to use it. It also ensures better interoperability between operating systems (though it would probably worked fine beforehand, but better be safe for the future).
* Convert URLs pointing upstream to local relativeA Farzat5 days1-3/+33
| | | | EPUB standard only recognizes relative paths. Fixes image rendering.
* Generate the EPUB fileA Farzat6 days1-2/+21
|
* Add container.xml to zipA Farzat6 days1-14/+21
| | | | | Instead of writing it to file and then reading it again, we write container.xml straight to zip, just like we did with mimetype.
* Start with the create_epub_archive functionA Farzat6 days1-1/+15
| | | | | For now, only mimetype is added. Next step is adding all the other files in epub_root.
* Revert "Add a function to write mimetype"A Farzat6 days1-8/+0
| | | | | | | | This reverts commit 6aad662ec59a3974cbca6c423c1e08e8bc5e90f6. There is no need to write it out to epub_root as it needs to be manually written to the zip file later on anyway. Not including it saves us the trouble of avoiding it when walking epub_root later.
* Add a function to write container.xmlA Farzat6 days1-0/+26
|
* Add a function to write mimetypeA Farzat6 days1-0/+8
|
* Add file download logicA Farzat6 days1-0/+34
All files in file_entries are downloaded according to their full_path.