This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README.markdown | ||
| |
example.dump | ||
| |
mt_to_jekyll.rb | ||
| |
mtexport_parser.rb |
README.markdown
Want to move your TypePad.com or MovableType-powered blog somewhere else?
First, you'll need to export your blog and put it into a convenient data structure. Here's how to do that:
file = File.read("mtexport.dump")
mt = MtexportParser.new(file)
mt.parse
mt.print_summary
And maybe you want to move it into Jekyll too? That's also easy:
file = File.read("mtexport.dump")
mt = MtexportParser.new(file)
mt.parse
jekyll = MtToJekyll.new
jekyll.output_dir = "_posts"
mt.each_blog_post do |entry|
jekyll.to_markdown(entry)
puts "Done processing: #{entry[:title]}"
end
Viola!








