itsam / jekyll-import

:inbox_tray: The "jekyll import" command for importing from various blogs to Jekyll format.

Home Page:https://import.jekyllrb.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jekyll-import

Build Status

The new Jekyll command for importing from various blogs to Jekyll format.

Note: migrators are now called importers and are only available if one installs the jekyll-import gem.

My custom changes

  1. Covers custom content types
  2. Includes also the images URI for each post

Based on Migrating-from-Drupal-to-Jekyll approach (although rather old now...)

How jekyll-import works:

Jekyll v2.x and higher

  1. Install the rubygem with gem install jekyll-import.
  2. Run jekyll import IMPORTER [options]

Jekyll v1.x

Launch IRB:

# 1. Require jekyll-import
irb> require 'jekyll-import'
# 2. Choose the importer you'd like to use.
irb> importer_class = "Behance" # an example, there are many others!
# 3. Run it!
irb> JekyllImport::Importers.const_get(importer_class).run(options_hash)

Documentation

jekyll-import has its own documentation site, found at https://import.jekyllrb.com. Dedicated documentation for each migrator is available there.

After installing run the following

ruby -e 'require "jekyll-import";
    JekyllImport::Importers::Drupal7.run({
      "engine"   => "mysql",
      "dbname"   => "XXXX",
      "user"     => "XXXX",
      "password" => "XXXX",
      "host"     => "localhost",
      "types"    => ["article", "page", "mklproject", "people", "project", "publication", "research"]
    })'

About

:inbox_tray: The "jekyll import" command for importing from various blogs to Jekyll format.

https://import.jekyllrb.com

License:MIT License


Languages

Language:Ruby 99.9%Language:Shell 0.1%