Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b4e0187

Browse files
committed
Add gitbook publishing config
1 parent 848250c commit b4e0187

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

‎SUMMARY.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Summary
2+
3+
* [Introduction & Terms](README.md)
4+

‎book.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"plugins": ["-lunr", "-search", "search-pro", "disqus"],
3+
"variables":{
4+
"BASE_URL" :" https://pythonkr.github.io/python-terms"
5+
}
6+
}

‎publishing_gitbook.sh‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
git checkout gh-pages
2+
3+
# opt01. before push to remote
4+
git merge --squash master --no-edit
5+
git commit -m "squash and merge master"
6+
7+
# opt02. Publish remote repository contents
8+
#git pull origin gh-pages --rebase
9+
10+
gitbook install&&gitbook build
11+
12+
cp -R _book/* .
13+
git clean -fx node_modules
14+
git clean -fx _book
15+
16+
git add .
17+
git commit -a -m "Update docs"
18+
git push origin gh-pages
19+
20+
git checkout master

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /