Of course, the title, author and contact information need to be specified, if not specified, once the default cooperation is adopted, 80% of them do not meet our expectations, maybe they will become anonymous e-books? So configuration files generally need to be set manually!Īfter all, not every e-book has a vocabulary to explain. Since an e-book is to be written, a minimum chapter introduction and chapter details are naturally indispensable. │ │ ├── apple-touch-icon-precomposed-152.png Serving book on # View the current directory structure Info: > generation finished with success in 1.2s ! Live reload server started on port: 35729 gitbook serveBuild and run the service locally, accessed by default preview.gitbook buildBuild locally but do not run the service, default output to _book/Catalog.gitbook initInitialization README.mdand SUMMARY.mdTwo files.githubAnd other websites for hosting, so mainly used for Release preparation phase. Output of static web pages can be packaged and uploaded to the server or uploaded to the server. By default, generated files are stored in _book/Directories, of course, output directories are configurable, not yet covered, see the Advanced Section. $ gitbook serve structure gitbookStatic web pageĬonstruct static web pages without starting local servers. Start the local service, the program can preview the effect of E-book in browser without error: Because it can preview the effect of E-book in real time, and most development environments are built in local rather than remote servers, it is mainly used for Development and debugging phase. gitbookThe corresponding file directory structure is initialized, so it is mainly used for Initial phase of development. Initialize the project according to gitbookSpecifications are automatically created README.mdand SUMMARY.mdTwo documents for specific purposes are listed below.Īctually SUMMARY.mdIt’s a catalogue of chapters and programs of e-books. Refer to Environmental Requirements for Installation and Configuration Initialization gitbookproject node.jsDevelopment environment, run after installation gitbook -VThe ability to print publication information indicates successful installation.
gitbookSome Common Commands install gitbook-cliScaffolding tools gitbook-cliCommand-line operations, the other two see the other two tutorials. This article mainly explains the first one.