mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge e3d5b9dc5f into c2b2def1c8
This commit is contained in:
commit
3b2b14f0cb
2 changed files with 11 additions and 7 deletions
|
|
@ -63,7 +63,9 @@ Optional arguments
|
|||
--tumblr Tumblr API (default: False)
|
||||
--feed Feed to parse (default: False)
|
||||
-o OUTPUT, --output OUTPUT
|
||||
Output path (default: output)
|
||||
Where to output the generated markup files. If not
|
||||
specified, a directory will be created, named
|
||||
"content" in the current path. (default: content)
|
||||
-m MARKUP, --markup MARKUP
|
||||
Output markup format (supports rst & markdown)
|
||||
(default: rst)
|
||||
|
|
@ -92,19 +94,19 @@ Examples
|
|||
|
||||
For WordPress::
|
||||
|
||||
$ pelican-import --wpfile -o ~/output ~/posts.xml
|
||||
$ pelican-import --wpfile ~/posts.xml
|
||||
|
||||
For Dotclear::
|
||||
|
||||
$ pelican-import --dotclear -o ~/output ~/backup.txt
|
||||
$ pelican-import --dotclear -o ~/markup-files ~/backup.txt
|
||||
|
||||
for Posterous::
|
||||
|
||||
$ pelican-import --posterous -o ~/output --email=<email_address> --password=<password> <api_token>
|
||||
$ pelican-import --posterous -o ~/content --email=<email_address> --password=<password> <api_token>
|
||||
|
||||
For Tumblr::
|
||||
|
||||
$ pelican-import --tumblr -o ~/output --blogname=<blogname> <api_token>
|
||||
$ pelican-import --tumblr -o ~/content --blogname=<blogname> <api_token>
|
||||
|
||||
Tests
|
||||
=====
|
||||
|
|
|
|||
|
|
@ -787,8 +787,10 @@ def main():
|
|||
'--feed', action='store_true', dest='feed',
|
||||
help='Feed to parse')
|
||||
parser.add_argument(
|
||||
'-o', '--output', dest='output', default='output',
|
||||
help='Output path')
|
||||
'-o', '--output', dest='output', default='content',
|
||||
help=('Where to output the generated markup files. If not specified, '
|
||||
'a directory will be created, named "content" in the current '
|
||||
'path.'))
|
||||
parser.add_argument(
|
||||
'-m', '--markup', dest='markup', default='rst',
|
||||
help='Output markup format (supports rst & markdown)')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue