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.
- Covers custom content types
- Includes also the images URI for each post
Based on Migrating-from-Drupal-to-Jekyll approach (although rather old now...)
- Install the rubygem with
gem install jekyll-import
. - Run
jekyll import IMPORTER [options]
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)
jekyll-import has its own documentation site, found at https://import.jekyllrb.com. Dedicated documentation for each migrator is available there.
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"]
})'