-
git clone git://github.com/getpelican/pelican.git
-
cd pelican
-
python setup.py install
-
pelican-import --wpfile -o ~/$output-location ~/Downloads/$wp-xml-file
-
cd ~/$output-location
-
for i in *.rst; do pandoc $i --no-wrap -f rst -t asciidoc post-content.html -o $i.adoc
-
rename .rst.adoc .adoc *.rst.adoc
-
use sed to cleanup [haven’t tested these sed bits myself yet]
sed -i s/^image:/image::/ post-content.adoc sed -i s/^----.*/----/ post-content.adoc
-
Mod, manually, to add document title, author and date (manual, atm)
= Post title Jason Brooks 2012-08-31
-
Manually prepend date- to file names.
-
copy to /archive dir
-
-
Save jasonbrooks/5733146 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment