mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Store slugs in posts by default on Pelican import
This commit is contained in:
parent
dfa69fd383
commit
b4c5d7cf62
4 changed files with 64 additions and 16 deletions
|
|
@ -39,29 +39,44 @@ Usage
|
|||
"""""
|
||||
|
||||
| pelican-import [-h] [--wpfile] [--dotclear] [--feed] [-o OUTPUT]
|
||||
| [-m MARKUP][--dir-cat]
|
||||
| [-m MARKUP] [--dir-cat] [--strip-raw] [--disable-slugs]
|
||||
| input
|
||||
|
||||
Positional arguments
|
||||
====================
|
||||
|
||||
input The input file to read
|
||||
|
||||
Optional arguments
|
||||
""""""""""""""""""
|
||||
|
||||
-h, --help show this help message and exit
|
||||
--wpfile Wordpress XML export
|
||||
--dotclear Dotclear export
|
||||
--feed Feed to parse
|
||||
--wpfile Wordpress XML export (default: False)
|
||||
--dotclear Dotclear export (default: False)
|
||||
--feed Feed to parse (default: False)
|
||||
-o OUTPUT, --output OUTPUT
|
||||
Output path
|
||||
-m MARKUP Output markup
|
||||
Output path (default: output)
|
||||
-m MARKUP, --markup MARKUP
|
||||
Output markup format (supports rst & markdown)
|
||||
(default: rst)
|
||||
--dir-cat Put files in directories with categories name
|
||||
(default: False)
|
||||
--strip-raw Strip raw HTML code that can't be converted to markup
|
||||
such as flash embeds or iframes (wordpress import
|
||||
only) (default: False)
|
||||
--disable-slugs Disable storing slugs from imported posts within
|
||||
output. With this disabled, your Pelican URLs may not
|
||||
be consistent with your original posts. (default:
|
||||
False)
|
||||
|
||||
Examples
|
||||
========
|
||||
|
||||
for WordPress::
|
||||
For WordPress::
|
||||
|
||||
$ pelican-import --wpfile -o ~/output ~/posts.xml
|
||||
|
||||
for Dotclear::
|
||||
For Dotclear::
|
||||
|
||||
$ pelican-import --dotclear -o ~/output ~/backup.txt
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue