Giter VIP home page Giter VIP logo

help's Introduction

如何将md文件转换为html、pdf文件?

(修改帮助文档一定要给相应文档添加目录)

cd 到help文件夹下

安装

mac/linux终端执行:sudo ./install.sh

编译html

(编译html文件。程序会自动在根目录下创建build文件夹,并把编译后到中文,英文<index.html>放在build文件夹下) mac/linux终端运行:sudo ./html.sh

预览编译效果

 在相应的文件根目录下执行:gitbook serve

编译pdf

(首先下载gitbook, https://calibre-ebook.com, 安装好后, mac终端执行:$ sudo ln -s ~/Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/bin linux终端执行:$sudo ln -s /usr/bin/nodejs /usr/bin/node 编译后到文件放在build文件夹下)

mac/linux终端运行:sudo ./pdf.sh

注: 官方参考文档:https://github.com/GitbookIO/gitbook

help's People

Contributors

chenzhipei avatar flyinshyer avatar huangyiirene avatar liulian2016 avatar marchtian avatar steedos-private avatar wangdingrun avatar yinlianghui avatar zhangshanshan2016 avatar zhangzheming1996 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.