Roller
额外依赖项
此导入器需要以下额外库文件。
可以通过运行 gem install GEM_NAME 分别安装所需的 gem,或者使用下面这条命令一次性全部安装:
gem install safe_yaml sequel unidecode
此导入器仅会转换你的文章并生成 YAML 前置元数据(front-matter)。 它不会导入任何布局、样式或外部文件(如图片、CSS 等)。
调用方式
调用导入器的示例命令:
jekyll-import roller --dbname DB --user USER --password PW --socket SOCKET --host HOST --port PORT --clean_entities --comments --categories --tags --status STATUS,STATUS2
| 选项 <PARAM> | 说明 | ||
|---|---|---|---|
--dbname DB |
Database name. |
||
--user USER |
Database user name. |
||
--password PW |
Database user’s password. |
||
--socket SOCKET |
Database socket. |
默认值: null |
|
--host HOST |
Database host name. |
默认值: 'localhost' |
|
--port PORT |
Database port number. |
默认值: '3306' |
|
--clean_entities |
Whether to clean entities. |
默认值: true |
|
--comments |
Whether to import comments. |
默认值: true |
|
--categories |
Whether to import categories. |
默认值: true |
|
--tags |
Whether to import tags. |
默认值: true |
|
--status STATUS,STATUS2 |
Array of allowed statuses (either [‘PUBLISHED’] or [‘DRAFT’]). |
默认值: ['PUBLISHED'] |
|
*上方表格中高亮的行表示必填选项。