gitbook 项目.gitignore忽略文件示例参考-1

这个忽略文件主要是提交的时候直接忽略 _book 整个目录,

将发布过程分为了两步,先切换到 gh-pages 分支,然后初始化生成book项目对应的文件并删除无效文件并发布。

具体发布步骤可参考:将gitbook项目发布到gitee码云平台-1

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock
*~

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

_book
.DS_Store

« »

发表评论

电子邮件地址不会被公开。 必填项已用*标注

昵称 *