readme.md
Before
gem install docx
Useage
- 将需要转换的
.docx
文件放入到docxs
目录当中,并重命名为英文名称
Each with single docx file
- 使用
irb
命令进入ruby命令行 - 输入
require './md_genetator'
- 执行
MdGenerator.new('docxs/文件名.docx').execute
来转换
Batch file generate
ruby batch_generator.rb
After
转换后的.md
文件会保存在markdowns
目录中,图片会保存在images
目录中,执行成功后拷贝到hugo项目中即可进行校对