jekyll / jekyll-import

:inbox_tray: The "jekyll import" command for importing from various blogs to Jekyll format.
https://import.jekyllrb.com
MIT License
515 stars 316 forks source link

Introduce medium importer #499

Closed sumanmaity112 closed 1 year ago

ashmaroli commented 1 year ago

Hello @sumanmaity112, I am posting a generic comment about my observations instead of a review.

sumanmaity112 commented 1 year ago

Hi @ashmaroli

parkr commented 1 year ago

The render_audio documentation was something I asked to be like that. Before it was too vague. Perhaps now it's too specific. This option is basically only useful if you have a podcast RSS feed I think.

sumanmaity112 commented 1 year ago

The render_audio documentation was something I asked to be like that. Before it was too vague. Perhaps now it's too specific. This option is basically only useful if you have a podcast RSS feed I think.

Maybe, I am also not sure. This option was there before my changes in RSS importer.

ashmaroli commented 1 year ago

Thank you for making the changes as suggested, @sumanmaity112. I have pushed a commit to your branch. Do run git pull origin master before you make additional changes to this proposal.

ashmaroli commented 1 year ago

I have some enquiries remaining @sumanmaity112.

sumanmaity112 commented 1 year ago

Hi @ashmaroli,

Is this importer done being developed? As in, if the RSS importer gets new options, how do we decide if those options need to be ported to the Medium Importer?

This is depends on the developer. If a new feature is getting added and same feature can be usable in case of Medium import then it's better to add it. According to me, we should have similar options set as RSS import. At the end, Medium import is nothing more than a wrapper around RSS importer with some default configurations.

It is still not clear to me why you explicitly chose to extract the category field from the feed XML. The Ruby comment you have left needs some more love.

I explained the comment little bit more, please do have a look.

Ideally, we ask contributors to attach tests for pull requests. But given the state of the test-suite for this project, that will be overlooked. Can you instead attach a mock rss file based on your canonical site's export file? You may attach the mock file in the test directory.

I added mock RSS feed file generated from my personal Medium feed (only with couple of items). Please let me know if I have to change anything there.

parkr commented 1 year ago

Needs a rebase to get @ashmaroli's latest commit to lock Psych to 4.x. I filed a request with ruby/setup-ruby: https://github.com/ruby/setup-ruby/issues/412

sumanmaity112 commented 1 year ago

@parkr Rebase is done. Now all CI verification also passed.

parkr commented 1 year ago

Thank you!

@jekyllbot: merge +minor