jekyll-import 0.4.0 → 0.4.1

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 (91) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-import/importers/wordpress.rb +2 -2
  3. data/lib/jekyll-import/importers/wordpressdotcom.rb +1 -0
  4. data/lib/jekyll-import/version.rb +1 -1
  5. metadata +3 -96
  6. data/.gitignore +0 -21
  7. data/.travis.yml +0 -14
  8. data/Gemfile +0 -2
  9. data/History.markdown +0 -135
  10. data/Rakefile +0 -209
  11. data/jekyll-import.gemspec +0 -60
  12. data/script/bootstrap +0 -3
  13. data/script/cibuild +0 -3
  14. data/site/.gitignore +0 -4
  15. data/site/CNAME +0 -1
  16. data/site/README +0 -1
  17. data/site/_config.yml +0 -7
  18. data/site/_includes/analytics.html +0 -32
  19. data/site/_includes/docs_contents.html +0 -10
  20. data/site/_includes/docs_contents_mobile.html +0 -14
  21. data/site/_includes/docs_option.html +0 -11
  22. data/site/_includes/docs_ul.html +0 -20
  23. data/site/_includes/footer.html +0 -15
  24. data/site/_includes/header.html +0 -18
  25. data/site/_includes/news_contents.html +0 -23
  26. data/site/_includes/news_contents_mobile.html +0 -11
  27. data/site/_includes/news_item.html +0 -24
  28. data/site/_includes/primary-nav-items.html +0 -14
  29. data/site/_includes/section_nav.html +0 -22
  30. data/site/_includes/top.html +0 -17
  31. data/site/_layouts/default.html +0 -12
  32. data/site/_layouts/docs.html +0 -29
  33. data/site/_layouts/news.html +0 -19
  34. data/site/_layouts/news_item.html +0 -27
  35. data/site/_posts/2013-11-09-jekyll-import-0-1-0-beta4-release.markdown +0 -23
  36. data/site/_posts/2013-11-18-jekyll-import-0-1-0-rc1-released.markdown +0 -17
  37. data/site/_posts/2013-12-17-jekyll-import-0-1-0-released.markdown +0 -67
  38. data/site/_posts/2014-03-16-jekyll-import-0-2-0-released.markdown +0 -16
  39. data/site/_posts/2014-05-23-jekyll-import-0-3-0-released.markdown +0 -22
  40. data/site/_posts/2014-06-29-jekyll-import-0-4-0-released.markdown +0 -19
  41. data/site/css/gridism.css +0 -110
  42. data/site/css/normalize.css +0 -1
  43. data/site/css/pygments.css +0 -70
  44. data/site/css/style.css +0 -945
  45. data/site/docs/behance.md +0 -20
  46. data/site/docs/contributing.md +0 -8
  47. data/site/docs/csv.md +0 -37
  48. data/site/docs/drupal6.md +0 -24
  49. data/site/docs/drupal7.md +0 -24
  50. data/site/docs/easyblog.md +0 -25
  51. data/site/docs/enki.md +0 -23
  52. data/site/docs/ghost.md +0 -19
  53. data/site/docs/google_reader.md +0 -19
  54. data/site/docs/history.md +0 -130
  55. data/site/docs/index.md +0 -17
  56. data/site/docs/installation.md +0 -26
  57. data/site/docs/joomla.md +0 -26
  58. data/site/docs/jrnl.md +0 -23
  59. data/site/docs/marley.md +0 -20
  60. data/site/docs/mephisto.md +0 -23
  61. data/site/docs/mt.md +0 -39
  62. data/site/docs/posterous.md +0 -25
  63. data/site/docs/rss.md +0 -19
  64. data/site/docs/s9y.md +0 -19
  65. data/site/docs/textpattern.md +0 -30
  66. data/site/docs/third-party.md +0 -30
  67. data/site/docs/tumblr.md +0 -24
  68. data/site/docs/typo.md +0 -26
  69. data/site/docs/usage.md +0 -29
  70. data/site/docs/wordpress.md +0 -41
  71. data/site/docs/wordpressdotcom.md +0 -47
  72. data/site/favicon.png +0 -0
  73. data/site/feed.xml +0 -36
  74. data/site/img/article-footer.png +0 -0
  75. data/site/img/footer-arrow.png +0 -0
  76. data/site/img/footer-logo.png +0 -0
  77. data/site/img/logo-2x.png +0 -0
  78. data/site/img/octojekyll.png +0 -0
  79. data/site/img/tube.png +0 -0
  80. data/site/img/tube1x.png +0 -0
  81. data/site/index.html +0 -95
  82. data/site/js/modernizr-2.5.3.min.js +0 -4
  83. data/site/news/index.html +0 -10
  84. data/site/news/releases/index.html +0 -10
  85. data/test/helper.rb +0 -50
  86. data/test/test_jrnl_importer.rb +0 -39
  87. data/test/test_mt_importer.rb +0 -104
  88. data/test/test_tumblr_importer.rb +0 -108
  89. data/test/test_util.rb +0 -10
  90. data/test/test_wordpress_importer.rb +0 -9
  91. data/test/test_wordpressdotcom_importer.rb +0 -8
data/site/docs/marley.md DELETED
@@ -1,20 +0,0 @@
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.
@@ -1,23 +0,0 @@
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 DELETED
@@ -1,39 +0,0 @@
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
- "comments" => true
20
- })'
21
- {% endhighlight %}
22
-
23
- Posts will be generated and placed in `_posts` directory.
24
-
25
- The only required fields are `dbname` and `user`. `password` defaults to `""`
26
- and `host` defaults to `"localhost"`.
27
-
28
- `comments`, which defaults to false, control the generation of
29
- comment. If `comments` set to true, posts will be generated and placed
30
- in `_comments` directory.
31
-
32
-
33
- All of the posts and comments will include `post_id` in YAML front
34
- matter to link a post and its comments.
35
-
36
- To include imported comments as part of a post, use the yet to merge
37
- [fork of mt-static-comments](https://github.com/shigeya/jekyll-static-comments/tree/mt_static_comments)
38
- to include statically generate comments in your post. Fork and provide
39
- feedback if necessary.
@@ -1,25 +0,0 @@
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 DELETED
@@ -1,19 +0,0 @@
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 DELETED
@@ -1,19 +0,0 @@
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.
@@ -1,30 +0,0 @@
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.
@@ -1,30 +0,0 @@
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
-
data/site/docs/tumblr.md DELETED
@@ -1,24 +0,0 @@
1
- ---
2
- layout: docs
3
- title: Tumblr
4
- prev_section: textpattern
5
- link_source: tumblr
6
- next_section: typo
7
- permalink: /docs/tumblr/
8
- ---
9
-
10
- To import your posts from [Tumblr](http://tumblr.com), run:
11
-
12
- {% highlight bash %}
13
- $ ruby -rubygems -e 'require "jekyll-import";
14
- JekyllImport::Importers::Tumblr.run({
15
- "url" => "http://myblog.tumblr.com",
16
- "format" => "html", # or "md"
17
- "grab_images" => false, # whether to download images as well.
18
- "add_highlights" => false, # whether to wrap code blocks (indented 4 spaces) in a Liquid "highlight" tag
19
- "rewrite_urls" => false # whether to write pages that redirect from the old Tumblr paths to the new Jekyll paths
20
- })'
21
- {% endhighlight %}
22
-
23
- The only required field is `url`. The other fields default to their above
24
- values.
data/site/docs/typo.md DELETED
@@ -1,26 +0,0 @@
1
- ---
2
- layout: docs
3
- title: Typo
4
- prev_section: tumblr
5
- link_source: typo
6
- next_section: wordpress
7
- permalink: /docs/typo/
8
- ---
9
-
10
- To import your posts from Typo (now [Publify](http://publify.co)), run:
11
-
12
- {% highlight bash %}
13
- $ ruby -rubygems -e 'require "jekyll-import";
14
- JekyllImport::Importers::Typo.run({
15
- "server" => "mysql",
16
- "dbname" => "name",
17
- "user" => "myuser",
18
- "password" => "mypassword",
19
- "host" => "myhost"
20
- })'
21
- {% endhighlight %}
22
-
23
- The only required fields are `server`, `dbname`, and `user`. `password`
24
- defaults to `""` and `host` defaults to `"localhost"`.
25
-
26
- This code has only been tested with Typo version 4+.
data/site/docs/usage.md DELETED
@@ -1,29 +0,0 @@
1
- ---
2
- layout: docs
3
- title: Usage
4
- prev_section: installation
5
- next_section: csv
6
- permalink: /docs/usage/
7
- ---
8
-
9
- You should now be all set to run the importers with the following incantation:
10
-
11
- {% highlight bash %}
12
- $ ruby -rubygems -e 'require "jekyll-import";
13
- JekyllImport::Importers::MyImporter.run({
14
- # options for this importer
15
- })'
16
- {% endhighlight %}
17
-
18
- Where IMPORTER is the name of the specific importer.
19
-
20
- <div class="note info">
21
- <h5>Note: Always double-check migrated content</h5>
22
- <p>
23
-
24
- Importers may not distinguish between published or private posts, so
25
- you should always check that the content Jekyll generates for you appears as
26
- you intended.
27
-
28
- </p>
29
- </div>
@@ -1,41 +0,0 @@
1
- ---
2
- layout: docs
3
- title: WordPress
4
- prev_section: typo
5
- link_source: wordpress
6
- next_section: wordpressdotcom
7
- permalink: /docs/wordpress/
8
- ---
9
-
10
- To import your posts from a self-hosted [WordPress](http://wordpress.org)
11
- installation, run:
12
-
13
- {% highlight bash %}
14
- $ ruby -rubygems -e 'require "jekyll-import";
15
- JekyllImport::Importers::WordPress.run({
16
- "dbname" => "",
17
- "user" => "",
18
- "password" => "",
19
- "host" => "localhost",
20
- "socket" => "",
21
- "table_prefix" => "wp_",
22
- "clean_entities" => true,
23
- "comments" => true,
24
- "categories" => true,
25
- "tags" => true,
26
- "more_excerpt" => true,
27
- "more_anchor" => true,
28
- "status" => ["publish"]
29
- })'
30
- {% endhighlight %}
31
-
32
- None of the fields are required. Their defaults are as you see above.
33
-
34
- <div class="note info">
35
- <h5>This only imports post &amp; page data &amp; content</h5>
36
- <p>
37
- This importer only converts your posts and creates YAML front-matter.
38
- It does not import any layouts, styling, or external files
39
- (images, CSS, etc.).
40
- </p>
41
- </div>
@@ -1,47 +0,0 @@
1
- ---
2
- layout: docs
3
- title: WordPress.com
4
- prev_section: wordpress
5
- link_source: wordpressdotcom
6
- next_section: third-party
7
- permalink: /docs/wordpressdotcom/
8
- ---
9
-
10
- To import your posts from a [WordPress.com](http://wordpress.com) blog, run:
11
-
12
- {% highlight bash %}
13
- $ ruby -rubygems -e 'require "jekyll-import";
14
- JekyllImport::Importers::WordpressDotCom.run({
15
- "source" => "wordpress.xml",
16
- "no_fetch_images" => false,
17
- "assets_folder" => "assets"
18
- })'
19
- {% endhighlight %}
20
-
21
- The `source`, `no_fetch_images`, and `assets_folder` fields are not required.
22
- Their default values are what you see above.
23
-
24
- <div class="note">
25
- <h5>ProTip™: WordPress.com Export Tool</h5>
26
- <p markdown="1">If you are migrating from a WordPress.com account, you can
27
- access the export tool at the following URL:
28
- `https://YOUR-USER-NAME.wordpress.com/wp-admin/export.php`.</p>
29
- </div>
30
-
31
- ### Further WordPress migration alternatives
32
-
33
- While the above method works, it does not import much of the metadata that is
34
- usually stored in WordPress posts and pages. If you need to export things like
35
- pages, tags, custom fields, image attachments and so on, the following resources
36
- might be useful to you:
37
-
38
- - [Exitwp](https://github.com/thomasf/exitwp) is a configurable tool written in
39
- Python for migrating one or more WordPress blogs into Jekyll (Markdown) format
40
- while keeping as much metadata as possible. Exitwp also downloads attachments
41
- and pages.
42
- - [A great
43
- article](http://vitobotta.com/how-to-migrate-from-wordpress-to-jekyll/) with a
44
- step-by-step guide for migrating a WordPress blog to Jekyll while keeping most
45
- of the structure and metadata.
46
- - [wpXml2Jekyll](https://github.com/theaob/wpXml2Jekyll) is an executable
47
- windows application for creating Markdown posts from your WordPress XML file.
data/site/favicon.png DELETED
Binary file
data/site/feed.xml DELETED
@@ -1,36 +0,0 @@
1
- ---
2
- layout: none
3
- permalink: /feed.xml
4
- ---
5
-
6
- <?xml version="1.0" encoding="utf-8"?>
7
- <rss version="2.0"
8
- xmlns:content="http://purl.org/rss/1.0/modules/content/"
9
- xmlns:wfw="http://wellformedweb.org/CommentAPI/"
10
- xmlns:dc="http://purl.org/dc/elements/1.1/"
11
- xmlns:atom="http://www.w3.org/2005/Atom"
12
- xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
13
- xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
14
- >
15
- <channel>
16
- <title xml:lang="en">{{ site.title }}</title>
17
- <atom:link type="application/atom+xml" href="http://import.jekyllrb.com/feed.xml" rel="self"/>
18
- <link>http://import.jekyllrb.com</link>
19
- <pubDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
20
- <lastBuildDate>{{ site.time | date: "%a, %d %b %Y %H:%M:%S %z" }}</lastBuildDate>
21
- <language>en-US</language>
22
- <description>Import your old &amp; busted site to Jekyll, a blog-aware static site generator.</description>
23
- {% for post in site.posts %}
24
- <item>
25
- <title>{{ post.title | xml_escape}}</title>
26
- <link>http://import.jekyllrb.com{{ post.url }}</link>
27
- <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
28
- <dc:creator>{{ post.author }}</dc:creator>
29
- {% for tag in post.tags %}<category>{{ tag | xml_escape }}</category>
30
- {% endfor %}{% for cat in post.categories %}<category>{{ cat | xml_escape }}</category>
31
- {% endfor %}<guid isPermaLink="false">{{ post.id }}</guid>
32
- <description><![CDATA[ {{ post.content }} ]]></description>
33
- </item>
34
- {% endfor %}
35
- </channel>
36
- </rss>
Binary file
Binary file
Binary file
data/site/img/logo-2x.png DELETED
Binary file