aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add release creation to GitLab CIv0.1.2A Farzat15 hours1-3/+30
|
* Prevent accidental GitLab CI releases using 'when'A Farzat15 hours1-0/+2
|
* Remove redundant backslash in GitLab CI commandsA Farzat15 hours1-4/+4
|
* Add appropriate toolchains and ENV to GitLab CIA Farzat25 hours1-0/+14
| | | | | Toolchains are needed to link the targets. ENV variables ensure the correct tools are used.
* Add more linux targets to GitLab CIA Farzat25 hours1-5/+24
|
* Set CARGO_HOME in GitLab CI to inside project dirA Farzat25 hours1-0/+3
| | | | This lets it know where to find and cache cargo files.
* Add cargo-clippy manually for GitLab CIA Farzat30 hours1-1/+1
|
* Manually install rustfmt for GitLab CIA Farzat30 hours1-0/+1
|
* Add basic GitLab CI workflowA Farzat30 hours1-0/+49
|
* Release v0.1.2A Farzat37 hours2-2/+2
|
* Upgrade GitHub workflow to action-gh-releaseA Farzat37 hours1-27/+6
| | | | This is because upload-release-asset was deprecated.
* Create releases using GitHub workflowsv0.1.1A Farzat37 hours1-5/+54
|
* Release v0.1.1A Farzat38 hours2-2/+2
|
* Add release build to GitHub workflowA Farzat38 hours1-0/+32
|
* Add GitHub workflow job for testsA Farzat39 hours1-0/+23
| | | | | Though we do not have any tests yet, this will make sure they are checked once they are there.
* Fix formattingA Farzat39 hours1-1/+3
| | | | | For future reference, the User-Agent was obtained from https://hasdata.com/blog/user-agents-for-web-scraping
* Add simple GitHub workflow job checking fmt & lintA Farzat39 hours1-0/+33
|
* Avoid useless jar clone and update User-AgentA Farzat41 hours1-2/+2
|
* Use a generic writer in write_container_xmlA Farzat42 hours1-12/+9
| | | | This should allow for easier testing down the line.
* Remove unused models, fields, and endpointsA Farzat2 days2-48/+6
| | | | | | If they are ever needed again, they can be added back. Also set API endpoints fields to Url type instead of String.
* Allow cookies.json in config dirA Farzat2 days2-9/+30
| | | | | This allows running the program from anywhere, given the cookies are placed in the config dir.
* Update the TODO listA Farzat2 days1-3/+3
|
* Add EPUB descriptions to OPF filesA Farzat2 days2-1/+11
|
* Create a function to modify OPF contentsA Farzat2 days1-1/+45
| | | | The main purpose for now is to add the description.
* Use XDG directories to map downloadsA Farzat2 days4-7/+70
| | | | | | | | This provides standard locations for files regardless of the location of the binary and/or the working directory. Could allow some customization in the future, both as a permanent config or one-time case.
* Add newline between wrapper and chapter contentA Farzat3 days1-0/+2
| | | | | This makes it easier to identify diff lines caused by quick_xml from those of the wrapper.
* Allow skipping downloadsA Farzat3 days1-4/+6
| | | | This streamlines testing.
* Hide unnecessary output in diff-epubs.shA Farzat3 days1-2/+2
|
* Register roadmap progress in READMEA Farzat3 days1-8/+4
|
* Stream files to zip in chunksA Farzat3 days1-6/+5
| | | | Doing so reduces peak memory.
* Avoid using string buffers when modifying chaptersA Farzat3 days2-34/+41
| | | | | This saves on memory. Bytes are read from the file as needed, and written to zip as soon as they are ready.
* Fix attributes of more element types with linksA Farzat3 days1-3/+16
|
* Prevent processed_fragment from escapingA Farzat3 days1-4/+5
| | | | | | This is done by not including it in the xml! macro in the first place. Instead, it is inserted later by using format!. This is because ogrim does not support injecting raw xml yet (to my knowledge).
* Replace format! macro with xml! where xml is usedA Farzat3 days2-32/+38
| | | | | This commit does not produce a working version, as processed_fragment is escaped by xml!. This needs to be resolved.
* Add a util to diff epubsA Farzat4 days1-0/+13
| | | | This helps in debugging the effects of code changes.
* Use xml! macro for cleaner xml handlingA Farzat4 days3-10/+41
|
* Fix chapter contents to proper xmlA Farzat4 days6-10/+176
| | | | | | | Change resource URLs using attribute matching (only img src for now, should add more later). Add respective stylesheets to chapters.
* Add LICENSE fileA Farzat4 days2-1/+675
|
* Gather stylesheet file entries for each chapterA Farzat5 days2-2/+13
| | | | This prepares them to be added to their xhtml content.
* Add stylesheets to Chapter modelA Farzat5 days1-0/+7
| | | | | This allows these stylesheets to be added to the chapter contents later during zipping.
* Deserialize URLs to Url type directlyA Farzat5 days4-14/+11
| | | | | This saves the effort of having to do it manually later on. Also avoids duplication in parsing.
* Add READMEA Farzat5 days1-0/+113
|
* Initiate full_path as RelativePathBufA Farzat5 days3-14/+11
| | | | | | | 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 Farzat6 days4-4/+48
| | | | EPUB standard only recognizes relative paths. Fixes image rendering.
* Remove the sanity checksA Farzat7 days1-21/+1
| | | | They are no longer needed.
* Generate the EPUB fileA Farzat7 days2-3/+25
|
* Add container.xml to zipA Farzat7 days2-22/+22
| | | | | 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 Farzat7 days3-1/+96
| | | | | 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 Farzat7 days2-10/+1
| | | | | | | | 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 Farzat7 days2-1/+28
|