Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Blogger (blogspot.com) importer #162

Merged
merged 16 commits into from Sep 19, 2014
Merged

Add Blogger (blogspot.com) importer #162

merged 16 commits into from Sep 19, 2014

Conversation

cat-in-136
Copy link
Contributor

I created a Blogger-to-Jekyll importer.

$ jekyll import blogger --source /path/to/blog-MM-DD-YYYY.xml

Would you capture my importer?

…mport blogger

Usage:

  jekyll import blogger [options]

Options:
            --source NAME  The XML file (blog-MM-DD-YYYY.xml) path to import
            --no-blogger-info  Leave blogger-URL info (id and old URL.) as YAML data (default: false)
            --replace-internal-link  Whether to replace internal links with the post_url liquid codes (default: false)
        -h, --help         Show this message
        -v, --version      Print the name and version
        -t, --trace        Show the full backtrace when an error occurs
@@ -0,0 +1,263 @@
require 'rexml/streamlistener'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be placed in require_deps.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the line cause an error on include REXML::StreamListener on BloggerAtomStreamListener class.

I have no idea how to do same without require...

@parkr
Copy link
Member

parkr commented Aug 31, 2014

Looks great! I'd gladly merge if you address my 2 comments and fix the tests, please. Thanks!

Two 'the in-elem-entry-to-post-data converter should raise an error if original_url not exists.' exists (duplicated).
So the 2nd test is replaced with '...should raise an error if non-post-kind not exists'.
In addition, fix the 1st test.
@cat-in-136
Copy link
Contributor Author

I wonder if the changeset cd3980a is OK wrt coding rule...

@parkr parkr merged commit db474c9 into jekyll:master Sep 19, 2014
@parkr
Copy link
Member

parkr commented Sep 19, 2014

It is perfect! Just so you know, I'll be coming back to you if people come asking about this code 😄 Thanks so much for your contribution!!

parkr added a commit that referenced this pull request Sep 19, 2014
parkr added a commit that referenced this pull request Sep 19, 2014
@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants