From f5458734ad5052fa48f9f8eb5eb2178644f7f3a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=87=8D=E8=A8=80?= Date: Thu, 9 Dec 2021 19:00:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index eed665e..945f57d 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,15 @@ -### Usage +### Before `gem install docx` + + +### Useage + +1. 将需要转换的`.docx`文件放入到`docxs`目录当中,并重命名为英文名称 +2. 使用`irb`命令进入ruby命令行 +3. 输入`require './md_genetator'` +4. 执行`MdGenerator.new('docxs/文件名.docx').execute`来转换 + +### After + +转换后的`.md`文件会保存在`markdowns`目录中,图片会保存在`images`目录中,执行成功后拷贝到hugo项目中即可进行校对 -- GitLab