Skip to content

Commit

Permalink
Update GitBook By TravisCI With Build 82
Browse files Browse the repository at this point in the history
  • Loading branch information
actiontech-bot committed Apr 19, 2024
0 parents commit 3715404
Show file tree
Hide file tree
Showing 112 changed files with 59,161 additions and 0 deletions.
134 changes: 134 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
### Eclipse template
*.pydevproject
.metadata
.gradle
/bin/
/tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath

# Eclipse Core
.project

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# JDT-specific (Eclipse Java Development Tools)
.classpath

# Java annotation processor (APT)
.factorypath

# PDT-specific
.buildpath

# sbteclipse plugin
.target

# TeXlipse plugin
.texlipse


### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion

*.iml

## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the following:

# User-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# .idea/dictionaries

# Sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
# .idea/uiDesigner.xml

# Gradle:
# .idea/gradle.xml
# .idea/libraries

# Mongo Explorer plugin:
# .idea/mongoSettings.xml

## File-based project format:
*.ipr
*.iws

## Plugin-specific files:

# IntelliJ
/out/
.idea/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties


### Java template
*.class

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*


/project/project/
/project/target/
/project/activator-*
/RUNNING_PID
.DS_Store
/target/
/tmlogs/
/txlogs/
/viewConf/
src/main/resources/server.xml
src/main/resources/schema.xml
src/main/resources/rule.xml
src/main/resources/zkconf/server.xml
src/main/resources/zkconf/schema.xml
src/main/resources/zkconf/rule.xml
conf/dnindex.properties
version.txt
copyResources.bat
dependency-reduced-pom.xml
checkstyle-result.out

# gitbook
_book/
node_modules/

# vscode
.vscode/
65 changes: 65 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
dist: trusty
env:
global:
- GH_REF: github.com/actiontech/dtle-docs-cn
- GH_USER: actiontech-bot
- GH_MAIL: [email protected]


# 指定环境语言
language: node_js
# 指定sudo权限
sudo: required
# 指定node版本
node_js: v14.2.0
# 指定缓存模块,缓存可以加速编译
cache:
directories:
- node_modules

# 邮件通知
notifications:
email:
recipients:
- [email protected]
on_success: never # default: change
on_failure: always # default: always

# 构建的分支
branches:
only:
- master

# 调整时区
before_install:
- export TZ='Asia/Shanghai'
- sudo apt-get install -y calibre fonts-arphic-gbsn00lp

# 安装环境
install:
- npm install -g gitbook-cli
- npm install gitbook-plugin-yahei
- gitbook install

# gitbook生成静态文件
script:
- gitbook build
- cd ./_book
- git init
- git config user.name "${GH_USER}"
- git config user.email "${GH_MAIL}"
- git add .
- git commit -m "Update GitBook By TravisCI With Build $TRAVIS_BUILD_NUMBER"
- git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages
- cd ..
# pdf
- xvfb-run gitbook pdf ./ ./dtle-manual.pdf
- mkdir pdf
- cp dtle-manual.pdf ./pdf/
- cd ./pdf
- git init
- git config user.name "${GH_USER}"
- git config user.email "${GH_MAIL}"
- git add .
- git commit -m "Update GitBook By TravisCI With Build PDF $TRAVIS_BUILD_NUMBER"
- git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:pdf
Loading

0 comments on commit 3715404

Please sign in to comment.