README

GitbookGeneral2021-03-06


Introduction


  • productivity
  • business agility
  • scalability
  • availability
  • utilization
  • and cost savings
  • time to market, cost
  • gitbook init Initialization README.md and SUMMARY.md Two files.
  • gitbook build Build locally but do not run the service, default output to _book/ Catalog.
  • gitbook serve Build and run the service locally, accessed by default http://localhost:4000 Real-time preview.
    mkdir gitbook && cd
    gitbook init
    gitbook build
    gitbook serve
    tree _book/

πŸ“‘ 3 ways to generate e-books


gitbookThere are three main ways to generate e-books:

  • gitbook-cli Command line operation, concise and efficient, suitable for people engaged in software development.
  • gitbook-editor Editor operation, visual editing, suitable for literary creators without programming experience.
  • gitbook.com Official website operation, online editing and real-time publishing, suitable for users who have no local environment and access to the Internet scientifically.

πŸ“‘ gitbook 5 default plugins


  • highlight
  • search
  • sharing
  • font-settings
  • livereload

πŸ“‘ Git


πŸ“‘ gitbook quick start

$ gitbook init
$ gitbook build
$ gitbook serve
$ open localhost:4000

πŸ“‘ Integration


  • Integration with App:

    $ gitbook build
    $ mv _book ../client/public/gitbook (or ln -s)

Create a link (component) to refer to it:

<Link to="_book">gitbook</Link>
  • Integration with Nginx as a proxy, config nginx.conf.