aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update READMEA Farzat15 hours1-22/+55
|
* Make maximum parallel downloads configurableA Farzat16 hours2-6/+13
| | | | Still limit it to 8 as more is ineffective and could trigger O'Reilly.
* Add parallel downloadingA Farzat17 hours1-15/+47
| | | | | This can be helpful when files are small in size, like the components of an EPUB.
* Stream downloads to files directlyA Farzat18 hours3-11/+52
|
* Add release creation to GitLab CIv0.1.2A Farzat22 hours1-3/+30
|
* Prevent accidental GitLab CI releases using 'when'A Farzat22 hours1-0/+2
|
* Remove redundant backslash in GitLab CI commandsA Farzat22 hours1-4/+4
|
* Add appropriate toolchains and ENV to GitLab CIA Farzat32 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 Farzat32 hours1-5/+24
|
* Set CARGO_HOME in GitLab CI to inside project dirA Farzat32 hours1-0/+3
| | | | This lets it know where to find and cache cargo files.
* Add cargo-clippy manually for GitLab CIA Farzat37 hours1-1/+1
|
* Manually install rustfmt for GitLab CIA Farzat37 hours1-0/+1
|
* Add basic GitLab CI workflowA Farzat37 hours1-0/+49
|
* Release v0.1.2A Farzat44 hours2-2/+2
|
* Upgrade GitHub workflow to action-gh-releaseA Farzat44 hours1-27/+6
| | | | This is because upload-release-asset was deprecated.
* Create releases using GitHub workflowsv0.1.1A Farzat44 hours1-5/+54
|
* Release v0.1.1A Farzat45 hours2-2/+2
|
* Add release build to GitHub workflowA Farzat45 hours1-0/+32
|
* Add GitHub workflow job for testsA Farzat46 hours1-0/+23
| | | | | Though we do not have any tests yet, this will make sure they are checked once they are there.
* Fix formattingA Farzat46 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 Farzat46 hours1-0/+33
|
* Avoid useless jar clone and update User-AgentA Farzat2 days1-2/+2
|
* Use a generic writer in write_container_xmlA Farzat2 days1-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 Farzat3 days1-3/+3
|
* Add EPUB descriptions to OPF filesA Farzat3 days2-1/+11
|
* Create a function to modify OPF contentsA Farzat3 days1-1/+45
| | | | The main purpose for now is to add the description.
* Use XDG directories to map downloadsA Farzat3 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 Farzat4 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 Farzat4 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 Farzat6 days1-0/+7
| | | | | This allows these stylesheets to be added to the chapter contents later during zipping.
* Deserialize URLs to Url type directlyA Farzat6 days4-14/+11
| | | | | This saves the effort of having to do it manually later on. Also avoids duplication in parsing.
* Add READMEA Farzat6 days1-0/+113
|
* Initiate full_path as RelativePathBufA Farzat6 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
|