jekyll-import 0.1.0.beta4 → 0.1.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/History.markdown +5 -0
  3. data/Rakefile +114 -11
  4. data/jekyll-import.gemspec +67 -2
  5. data/lib/jekyll-import.rb +3 -5
  6. data/lib/jekyll-import/importer.rb +6 -0
  7. data/lib/jekyll-import/importers/rss.rb +2 -2
  8. data/lib/jekyll-import/importers/s9y.rb +1 -1
  9. data/lib/jekyll-import/importers/textpattern.rb +1 -1
  10. data/site/.gitignore +4 -0
  11. data/site/CNAME +1 -0
  12. data/site/README +1 -0
  13. data/site/_config.yml +7 -0
  14. data/site/_includes/analytics.html +32 -0
  15. data/site/_includes/docs_contents.html +10 -0
  16. data/site/_includes/docs_contents_mobile.html +14 -0
  17. data/site/_includes/docs_option.html +11 -0
  18. data/site/_includes/docs_ul.html +20 -0
  19. data/site/_includes/footer.html +15 -0
  20. data/site/_includes/header.html +18 -0
  21. data/site/_includes/news_contents.html +23 -0
  22. data/site/_includes/news_contents_mobile.html +11 -0
  23. data/site/_includes/news_item.html +24 -0
  24. data/site/_includes/primary-nav-items.html +14 -0
  25. data/site/_includes/section_nav.html +22 -0
  26. data/site/_includes/top.html +17 -0
  27. data/site/_layouts/default.html +12 -0
  28. data/site/_layouts/docs.html +29 -0
  29. data/site/_layouts/news.html +19 -0
  30. data/site/_layouts/news_item.html +27 -0
  31. data/site/_posts/2013-11-09-jekyll-import-0-1-0-beta4-release.markdown +23 -0
  32. data/site/_posts/2013-11-18-jekyll-import-0-1-0-rc1-released.markdown +17 -0
  33. data/site/css/gridism.css +110 -0
  34. data/site/css/normalize.css +1 -0
  35. data/site/css/pygments.css +70 -0
  36. data/site/css/style.css +946 -0
  37. data/site/docs/contributing.md +8 -0
  38. data/site/docs/csv.md +25 -0
  39. data/site/docs/drupal6.md +24 -0
  40. data/site/docs/drupal7.md +24 -0
  41. data/site/docs/enki.md +23 -0
  42. data/site/docs/google_reader.md +19 -0
  43. data/site/docs/history.md +7 -0
  44. data/site/docs/index.md +17 -0
  45. data/site/docs/installation.md +26 -0
  46. data/site/docs/joomla.md +26 -0
  47. data/site/docs/jrnl.md +23 -0
  48. data/site/docs/marley.md +20 -0
  49. data/site/docs/mephisto.md +23 -0
  50. data/site/docs/mt.md +23 -0
  51. data/site/docs/posterous.md +25 -0
  52. data/site/docs/rss.md +19 -0
  53. data/site/docs/s9y.md +19 -0
  54. data/site/docs/textpattern.md +30 -0
  55. data/site/docs/third-party.md +30 -0
  56. data/site/docs/tumblr.md +24 -0
  57. data/site/docs/typo.md +26 -0
  58. data/site/docs/usage.md +28 -0
  59. data/site/docs/wordpress.md +31 -0
  60. data/site/docs/wordpressdotcom.md +44 -0
  61. data/site/favicon.png +0 -0
  62. data/site/feed.xml +36 -0
  63. data/site/img/article-footer.png +0 -0
  64. data/site/img/footer-arrow.png +0 -0
  65. data/site/img/footer-logo.png +0 -0
  66. data/site/img/logo-2x.png +0 -0
  67. data/site/img/octojekyll.png +0 -0
  68. data/site/img/tube.png +0 -0
  69. data/site/img/tube1x.png +0 -0
  70. data/site/index.html +100 -0
  71. data/site/js/modernizr-2.5.3.min.js +4 -0
  72. data/site/news/index.html +10 -0
  73. data/site/news/releases/index.html +10 -0
  74. metadata +68 -3
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: docs
3
+ title: Contributing
4
+ prev_section: third-party
5
+ next_section: history
6
+ permalink: /docs/contributing/
7
+ ---
8
+
data/site/docs/csv.md ADDED
@@ -0,0 +1,25 @@
1
+ ---
2
+ layout: docs
3
+ title: CSV
4
+ prev_section: quickstart
5
+ link_source: csv
6
+ next_section: drupal6
7
+ permalink: /docs/csv/
8
+ ---
9
+
10
+ To import your posts from a CSV file, run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::CSV.run({
15
+ "file" => "my_posts.csv"
16
+ })'
17
+ {% endhighlight %}
18
+
19
+ Your file CSV file will be read in with the following columns:
20
+
21
+ 1. title
22
+ 2. permalink
23
+ 3. body
24
+ 4. published_at
25
+ 5. filter (e.g. markdown, textile)
@@ -0,0 +1,24 @@
1
+ ---
2
+ layout: docs
3
+ title: Drupal 6
4
+ prev_section: csv
5
+ link_source: drupal6
6
+ next_section: drupal7
7
+ permalink: /docs/drupal6/
8
+ ---
9
+
10
+ To import your posts from a [Drupal 6](http://drupal.org) installation, run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::Drupal6.run({
15
+ "dbname" => "name",
16
+ "user" => "myuser",
17
+ "password" => "mypassword",
18
+ "host" => "myhost",
19
+ "prefix" => "mytableprefix"
20
+ })'
21
+ {% endhighlight %}
22
+
23
+ The only required fields are `dbname` and `user`. `password` defaults to `""`,
24
+ `host` defaults to `"localhost"`, and `prefix` defaults to `""`.
@@ -0,0 +1,24 @@
1
+ ---
2
+ layout: docs
3
+ title: Drupal 7
4
+ prev_section: drupal6
5
+ link_source: drupal7
6
+ next_section: enki
7
+ permalink: /docs/drupal7/
8
+ ---
9
+
10
+ To import your posts from a [Drupal 7](http://drupal.org) installation, run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::Drupal7.run({
15
+ "dbname" => "name",
16
+ "user" => "myuser",
17
+ "password" => "mypassword",
18
+ "host" => "myhost",
19
+ "prefix" => "mytableprefix"
20
+ })'
21
+ {% endhighlight %}
22
+
23
+ The only required fields are `dbname` and `user`. `password` defaults to `""`,
24
+ `host` defaults to `"localhost"`, and `prefix` defaults to `""`.
data/site/docs/enki.md ADDED
@@ -0,0 +1,23 @@
1
+ ---
2
+ layout: docs
3
+ title: Enki
4
+ prev_section: drupal7
5
+ link_source: enki
6
+ next_section: google_reader
7
+ permalink: /docs/enki/
8
+ ---
9
+
10
+ To import your posts from a [Enki](http://enkiblog.com) installation, run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::Enki.run({
15
+ "dbname" => "name",
16
+ "user" => "myuser",
17
+ "password" => "mypassword",
18
+ "host" => "myhost"
19
+ })'
20
+ {% endhighlight %}
21
+
22
+ The only required fields are `dbname` and `user`. `password` defaults to `""`
23
+ and `host` defaults to `"localhost"`.
@@ -0,0 +1,19 @@
1
+ ---
2
+ layout: docs
3
+ title: Google Reader
4
+ prev_section: enki
5
+ link_source: google_reader
6
+ next_section: joomla
7
+ permalink: /docs/google_reader/
8
+ ---
9
+
10
+ To import your posts from a [Google Reader](http://reader.google.com) XML dump file, run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::GoogleReader.run({
15
+ "source" => "my_file.xml"
16
+ })'
17
+ {% endhighlight %}
18
+
19
+ The `source` field is required.
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: docs
3
+ title: History
4
+ permalink: /docs/history/
5
+ prev_section: contributing
6
+ ---
7
+
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: docs
3
+ title: Getting started
4
+ next_section: installation
5
+ permalink: /docs/home/
6
+ ---
7
+
8
+ If you’re switching to Jekyll from another blogging system, Jekyll’s importers
9
+ can help you with the move. Most methods listed on this page require read access
10
+ to the database from your old system to generate posts for Jekyll. Each method
11
+ generates `.markdown` posts in the `_posts` directory based on the entries in
12
+ the foreign system.
13
+
14
+ ## Other Systems
15
+
16
+ If you have a system for which there is currently no migrator, consider writing
17
+ one and sending us [a pull request](https://github.com/jekyll/jekyll-import).
@@ -0,0 +1,26 @@
1
+ ---
2
+ layout: docs
3
+ title: Installation
4
+ prev_section: home
5
+ next_section: usage
6
+ permalink: /docs/installation/
7
+ ---
8
+
9
+ Because the importers have many of their own dependencies, they are made
10
+ available via a separate gem called
11
+ [`jekyll-import`](https://github.com/jekyll/jekyll-import). To use them, all
12
+ you need to do is install the gem, and they will become available as part of
13
+ Jekyll's standard command line interface.
14
+
15
+ {% highlight bash %}
16
+ $ gem install jekyll-import --pre
17
+ {% endhighlight %}
18
+
19
+ <div class="note warning">
20
+ <h5>Jekyll-import requires you to manually install some dependencies.</h5>
21
+ <p markdown="1">If you are importing your blog from Drupal 6,7, Joomla,
22
+ Mephisto, Movable Type, Textpattern, or Typo (with mysql db), you need to install
23
+ `mysql` and `sequel` gems. If you are importing from a WordPress database, you
24
+ need to install `mysql2` and `sequel` gems, and if you are importing from Enki
25
+ or Typo (with postgresql db) you need to install `pg` and `sequel` gems.</p>
26
+ </div>
@@ -0,0 +1,26 @@
1
+ ---
2
+ layout: docs
3
+ title: Joomla
4
+ prev_section: google_reader
5
+ link_source: joomla
6
+ next_section: jrnl
7
+ permalink: /docs/joomla/
8
+ ---
9
+
10
+ To import your posts from a [Joomla](http://joomla.org) installation, run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::Joomla.run({
15
+ "dbname" => "name",
16
+ "user" => "myuser",
17
+ "password" => "mypassword",
18
+ "host" => "myhost",
19
+ "section" => "thesection",
20
+ "prefix" => "mytableprefix"
21
+ })'
22
+ {% endhighlight %}
23
+
24
+ The only required fields are `dbname` and `user`. `password` defaults to `""`,
25
+ `host` defaults to `"localhost"`, and `section` defaults to `"1"` and `prefix`
26
+ defaults to `"jos_"`.
data/site/docs/jrnl.md ADDED
@@ -0,0 +1,23 @@
1
+ ---
2
+ layout: docs
3
+ title: Jrnl
4
+ prev_section: joomla
5
+ link_source: jrnl
6
+ next_section: marley
7
+ permalink: /docs/jrnl/
8
+ ---
9
+
10
+ To import your posts from [Jrnl](http://maebert.github.io/jrnl/), run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::Jrnl.run({
15
+ "file" => "~/journal.txt",
16
+ "time_format" => "%Y-%m-%d %H:%M",
17
+ "extension" => "md",
18
+ "layout" => "post"
19
+ })'
20
+ {% endhighlight %}
21
+
22
+ None of the fields are mandatory. The default to the values in the example
23
+ block above.
@@ -0,0 +1,20 @@
1
+ ---
2
+ layout: docs
3
+ title: Marley
4
+ prev_section: jrnl
5
+ link_source: marley
6
+ next_section: mephisto
7
+ permalink: /docs/marley/
8
+ ---
9
+
10
+ To import your posts from [Marley](https://github.com/karmi/marley), run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::Marley.run({
15
+ "marley_data_dir" => "my_marley_data_dir"
16
+ })'
17
+ {% endhighlight %}
18
+
19
+ The `marley_data_dir` field is required and points to the directory in which
20
+ your Marley data resides.
@@ -0,0 +1,23 @@
1
+ ---
2
+ layout: docs
3
+ title: Mephisto
4
+ prev_section: marley
5
+ link_source: mephisto
6
+ next_section: mt
7
+ permalink: /docs/mephisto/
8
+ ---
9
+
10
+ To import your posts from [Mephisto](http://www.mephistoblog.com), run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::Mephisto.run({
15
+ "dbname" => "name",
16
+ "user" => "myuser",
17
+ "password" => "mypassword",
18
+ "host" => "myhost"
19
+ })'
20
+ {% endhighlight %}
21
+
22
+ The only required fields are `dbname` and `user`. `password` defaults to `""`
23
+ and `host` defaults to `"localhost"`.
data/site/docs/mt.md ADDED
@@ -0,0 +1,23 @@
1
+ ---
2
+ layout: docs
3
+ title: Movable Type
4
+ prev_section: mephisto
5
+ link_source: mt
6
+ next_section: posterous
7
+ permalink: /docs/mt/
8
+ ---
9
+
10
+ To import your posts from [Movable Type](http://movabletype.org), run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::MT.run({
15
+ "dbname" => "name",
16
+ "user" => "myuser",
17
+ "password" => "mypassword",
18
+ "host" => "myhost"
19
+ })'
20
+ {% endhighlight %}
21
+
22
+ The only required fields are `dbname` and `user`. `password` defaults to `""`
23
+ and `host` defaults to `"localhost"`.
@@ -0,0 +1,25 @@
1
+ ---
2
+ layout: docs
3
+ title: Posterous
4
+ prev_section: mt
5
+ link_source: posterous
6
+ next_section: rss
7
+ permalink: /docs/posterous/
8
+ ---
9
+
10
+ To import your posts from [Posterous](http://movabletype.org), run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::Posterous.run({
15
+ "email" => "myemail",
16
+ "password" => "mypassword",
17
+ "api_token" => "mytoken"
18
+ })'
19
+ {% endhighlight %}
20
+
21
+ All three fields are required.
22
+
23
+ There is also an [alternative Posterous
24
+ migrator](https://github.com/pepijndevos/jekyll/blob/patch-1/lib/jekyll/migrators/posterous.rb)
25
+ that maintains permalinks and attempts to import images too.
data/site/docs/rss.md ADDED
@@ -0,0 +1,19 @@
1
+ ---
2
+ layout: docs
3
+ title: RSS
4
+ prev_section: posterous
5
+ link_source: rss
6
+ next_section: s9y
7
+ permalink: /docs/rss/
8
+ ---
9
+
10
+ To import your posts from an RSS feed (local or remote), run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::RSS.run({
15
+ "source" => "my_file.xml"
16
+ })'
17
+ {% endhighlight %}
18
+
19
+ The `source` field is required and can be either a local file or a remote one.
data/site/docs/s9y.md ADDED
@@ -0,0 +1,19 @@
1
+ ---
2
+ layout: docs
3
+ title: S9Y
4
+ prev_section: rss
5
+ link_source: s9y
6
+ next_section: textpattern
7
+ permalink: /docs/s9y/
8
+ ---
9
+
10
+ To import your posts from an [S9Y](http://www.s9y.org) feed, run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::S9Y.run({
15
+ "source" => "http://blog.example.com/rss.php?version=2.0&all=1"
16
+ })'
17
+ {% endhighlight %}
18
+
19
+ The `source` field is required.
@@ -0,0 +1,30 @@
1
+ ---
2
+ layout: docs
3
+ title: Textpattern
4
+ prev_section: s9y
5
+ link_source: textpattern
6
+ next_section: tumblr
7
+ permalink: /docs/textpattern/
8
+ ---
9
+
10
+ To import your posts from [Textpattern](http://textpattern.com), run:
11
+
12
+ {% highlight bash %}
13
+ $ ruby -rubygems -e 'require "jekyll-import";
14
+ JekyllImport::Importers::TextPattern.run({
15
+ "dbname" => "name",
16
+ "user" => "myuser",
17
+ "password" => "mypassword",
18
+ "host" => "myhost"
19
+ })'
20
+ {% endhighlight %}
21
+
22
+ The only required fields are `dbname` and `user`. `password` defaults to `""`
23
+ and `host` defaults to `"localhost"`.
24
+
25
+ You will need to run the above from the parent directory of your `_import`
26
+ folder. For example, if `_import` is located in `/path/source/_import`, you will
27
+ need to run this code from `/path/source`. The hostname defaults to `localhost`,
28
+ all other variables are required. You may need to adjust the code used to filter
29
+ entries. Left alone, it will attempt to pull all entries that are live or
30
+ sticky.
@@ -0,0 +1,30 @@
1
+ ---
2
+ layout: docs
3
+ title: Third-party
4
+ prev_section: wordpressdotcom
5
+ next_section: contributing
6
+ permalink: /docs/third-party/
7
+ ---
8
+
9
+ Various third-party importers for Jekyll have been created separate from this
10
+ gem. They are as below:
11
+
12
+ ### Blogger (Blogspot)
13
+
14
+ To import posts from Blogger, see [this post about migrating from Blogger to
15
+ Jekyll](http://blog.coolaj86.com/articles/migrate-from-blogger-to-jekyll.html). If
16
+ that doesn’t work for you, you might want to try some of the following
17
+ alternatives:
18
+
19
+ - [@kennym](https://github.com/kennym) created a [little migration
20
+ script](https://gist.github.com/1115810), because the solutions in the
21
+ previous article didn't work out for him.
22
+ - [@ngauthier](https://github.com/ngauthier) created [another
23
+ importer](https://gist.github.com/1506614) that imports comments, and does so
24
+ via blogger’s archive instead of the RSS feed.
25
+ - [@juniorz](https://github.com/juniorz) created [yet another
26
+ importer](https://gist.github.com/1564581) that works for
27
+ [Octopress](http://octopress.org). It is like [@ngauthier’s
28
+ version](https://gist.github.com/1506614) but separates drafts from posts, as
29
+ well as importing tags and permalinks.
30
+