zeal-cli icon indicating copy to clipboard operation
zeal-cli copied to clipboard

Download user-contributions feeds using API

Open alkuzad opened this issue 2 years ago • 2 comments

Describe Your Changes:

Use https://kapeli.com/feeds/zzz/user_contributed/build/index.json to get list of all user-contributed docsets. Iterate over keys and convert them to xml with structure similar to what is in feeds-master, save xmls into feeds_dir/user_contributed Change glob to rglob and change feeds_dir to be feeds instead of feeds/feeds-master Add new check of newest version so user still can directly pass newest version and it will be used as if it would be "latest" Changed download logic to support user-contributed versions urls that can be different. Ideally we would save archive item from json api for each of them Added, mostly debug, print of what is being downloaded, this could be changed to use Loguru and logging with proper level.

Linked Issues:

Please use Closing Keywords to link any related issues. i.e: Will improve #41

Change Type

Category

  • [ ] This is a Minor Change which does not fit any other category.
  • [ ] This is a Bugfix
  • [x] This is a Feature Addition
  • [ ] This is a CI Change
  • [ ] This is a Documentation-Only Change (do not check any of the above boxes if this box is checked)

Breaking/Non Breaking

  • [ ] This is a Breaking Change
  • [x] This is a Non-Breaking Change

Reasoning

Technically it could be a breaking change if one feed would be in two places, then order of rglob will decide which one to use. We could detect that but I scanned current feeds and they do not have same docsets.

Copyright Assignment

  • [x] I have filled out the copyright assignment at https://copyright.morpheus636.com for this pull request.
  • [ ] I am Morpheus636 so I do not need to fill out the copyright assignment.

Why do I require a copyright assignment?

Click to expand I require a copyright assignment for changes to my projects for the same reason as the Free Software Foundation, and they do a much better job of explaining it in their post at https://www.gnu.org/licenses/why-assign.en.html than I could ever do.

Please email any questions about the copyright assignment to [email protected]

alkuzad avatar Feb 26 '23 10:02 alkuzad

I'm not sure why config is also marked as change, whitespace?

alkuzad avatar Feb 26 '23 10:02 alkuzad

or just my main is older :D

alkuzad avatar Feb 26 '23 10:02 alkuzad