gitbook export pdf stepped pit

gitbook export pdf stepped pit

gitbook推到github

First, the establishment of a github repo, and then find the button on github associated gitbook page, login name, associated with the corresponding library, ready to be commit to a github repo inside. For subsequent clone.

This command line tool installation gitbook

Installation node

I generally use nvm, do not repeat them

Installation gitbook

npm install -g gitbook-cli
Note To install gitbook-cli, according to many tutorials installed directly when gitbook then use the error.

Start Export

  • Repo cloned locally
  • cd into the corresponding directory, there should be local and README files md two SUMMARY
  • Execution gitbook serve, the local gitbook into usable browser to access the web, the terminal will prompt url to access the default is http: // localhost: 4000
  • At this time you will find much under a _book local repo directory folder, which is stored in web resources
  • Found style.css open editing, searching overflow, in book-bodyand markdown-sectionunder the selectors, the overflowor overflow-ythe value to visible, should be the original value auto, or hidden(it does not change the future survive only the first page of the pdf no later ..)
  • Open a browser to access the corresponding link, then you can save as pdf

other

Most online tutorials to install gitbook editor client, I'm too lazy installed. . So only installed the command-line tool, the other is to generate pdf, a lot of tutorials written by gitbook pdf . xxx.pdfthis command, I will be stopped after performing local print out a few lines in the log after and can not generate pdf. So take a roundabout way to compare.

Guess you like

Origin www.cnblogs.com/cottony/p/11881375.html