From b4e0187fa59151804f1500b783ceb3a957f7bb38 Mon Sep 17 00:00:00 2001 From: ohahohah Date: 2019年2月14日 23:49:55 +0900 Subject: [PATCH] Add gitbook publishing config --- SUMMARY.md | 4 ++++ book.json | 6 ++++++ publishing_gitbook.sh | 20 ++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 SUMMARY.md create mode 100644 book.json create mode 100644 publishing_gitbook.sh diff --git a/SUMMARY.md b/SUMMARY.md new file mode 100644 index 0000000..839b880 --- /dev/null +++ b/SUMMARY.md @@ -0,0 +1,4 @@ +# Summary + +* [Introduction & Terms](README.md) + diff --git a/book.json b/book.json new file mode 100644 index 0000000..29be3f6 --- /dev/null +++ b/book.json @@ -0,0 +1,6 @@ +{ + "plugins": ["-lunr", "-search", "search-pro", "disqus"], + "variables":{ + "BASE_URL" :" https://pythonkr.github.io/python-terms" + } +} diff --git a/publishing_gitbook.sh b/publishing_gitbook.sh new file mode 100644 index 0000000..d1b5929 --- /dev/null +++ b/publishing_gitbook.sh @@ -0,0 +1,20 @@ +git checkout gh-pages + +# opt01. before push to remote +git merge --squash master --no-edit +git commit -m "squash and merge master" + +# opt02. Publish remote repository contents +#git pull origin gh-pages --rebase + +gitbook install&&gitbook build + +cp -R _book/* . +git clean -fx node_modules +git clean -fx _book + +git add . +git commit -a -m "Update docs" +git push origin gh-pages + +git checkout master

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