docsify-docx-converter
📖 A tool for building docx based on your docsify project
Install
npm install --save-dev docsify-docx-converter
Usage
Create config file .docsifytodocxrc.js
in your project root directory.
module.exports = {
contents: '_sidebar.md',
titleDowngrade: true,
rootPath: './docs',
pathToPublic: './README.docx',
imgMaxWidth: 468,
coverTitle: null,
bodyStyles: 'font-family: 微软雅黑;',
orientation: 'portrait',
margins: {}
};
Add script into package.json:
{
"scripts": {
"convert": "node_modules/.bin/docsify-docx-converter"
}
}
Run converter:
npm run convert