mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
importer - add documentation
This commit is contained in:
parent
69636a9da0
commit
7b7695509d
3 changed files with 64 additions and 7 deletions
56
docs/importer.rst
Normal file
56
docs/importer.rst
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
=================================
|
||||
Import from other blog software
|
||||
=================================
|
||||
|
||||
Description
|
||||
===========
|
||||
|
||||
``importer.py`` is a command line tool for converting articles from other
|
||||
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
|
||||
"""""
|
||||
|
||||
| importer.py [-h] [--wpfile] [--dotclear] [--feed] [-o OUTPUT]
|
||||
| [--dir-cat]
|
||||
| input
|
||||
|
||||
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::
|
||||
|
||||
$ python2 tools/importer.py --wpfile -o ~/output ~/posts.xml
|
||||
|
||||
for Dotclear::
|
||||
|
||||
$ python2 tools/importer.py --dotclear -o ~/output ~/backup.txt
|
||||
|
||||
|
||||
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
|
||||
|
|
@ -42,8 +42,8 @@ If you want to see new features in Pelican, dont hesitate to tell me, to clone
|
|||
the repository, etc. That's open source, dude!
|
||||
|
||||
Contact me at "alexis at notmyidea dot org" for any request/feedback! You can
|
||||
also join the team at `#pelican on irc.freenode.org
|
||||
<irc://irc.freenode.net/pelican>`_
|
||||
also join the team at `#pelican on irc.freenode.org
|
||||
<irc://irc.freenode.net/pelican>`_
|
||||
(or if you don't have any IRC client, using `the webchat
|
||||
<http://webchat.freenode.net/?channels=pelican&uio=d4>`_)
|
||||
for quick feedback.
|
||||
|
|
@ -55,11 +55,12 @@ A french version of the documentation is available at :doc:`fr/index`.
|
|||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
|
||||
getting_started
|
||||
settings
|
||||
themes
|
||||
internals
|
||||
pelican-themes
|
||||
importer
|
||||
faq
|
||||
contribute
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue