1
0
Fork 0
forked from github/pelican
pelican-theme/docs/importer.rst

57 lines
1.4 KiB
ReStructuredText
Raw Normal View History

.. _import:
2011-08-03 22:06:10 +02:00
=================================
Import from other blog software
=================================
Description
===========
``pelican-import`` is a command line tool for converting articles from other
2011-08-03 22:06:10 +02:00
software to ReStructuredText. The supported formats are:
- Wordpress XML export
- Dotclear export
- RSS/ATOM feed
The conversion from HTML to ReStructuredText relies on `pandoc
<http://johnmacfarlane.net/pandoc/>`_. For Dotclear, if the source posts are
written with Markdown syntax, they will not be converted (as Pelican also
supports Markdown).
Usage
"""""
| pelican-import [-h] [--wpfile] [--dotclear] [--feed] [-o OUTPUT]
| [--dir-cat]
| input
2011-08-03 22:06:10 +02:00
Optional arguments:
"""""""""""""""""""
-h, --help show this help message and exit
--wpfile Wordpress XML export
--dotclear Dotclear export
--feed Feed to parse
-o OUTPUT, --output OUTPUT
Output path
--dir-cat Put files in directories with categories name
Examples
========
for Wordpress::
$ pelican-import --wpfile -o ~/output ~/posts.xml
2011-08-03 22:06:10 +02:00
for Dotclear::
$ pelican-import --dotclear -o ~/output ~/backup.txt
2011-08-03 22:06:10 +02:00
Tests
=====
To test the module, one can use sample files:
- for Wordpress: http://wpcandy.com/made/the-sample-post-collection
- for Dotclear: http://themes.dotaddict.org/files/public/downloads/lorem-backup.txt