Skip to content

Commit 3ddc597

Browse files
committed
.update-doc.sh: skip contents, commit png files
1 parent 7a0dc16 commit 3ddc597

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ after_success:
5757
- if [ "$TRAVIS_BRANCH" == "master" ]; then cd /tmp/euslisp-docs; git remote rm origin; git remote add origin https://k-okada:[email protected]/jsk-ros-pkg/euslisp-docs.git; fi
5858
- if [ "$TRAVIS_BRANCH" == "master" ]; then cd ${CI_SOURCE_PATH}/doc/latex; ${CI_SOURCE_PATH}/.upload-doc.sh; fi
5959
- if [ "$TRAVIS_BRANCH" == "master" ]; then mkdir -p /tmp/euslisp-docs/docs/euslisp; cd /tmp/euslisp-docs/docs/euslisp; cp /tmp/html/*.{md,png} .; fi
60-
- if [ "$TRAVIS_BRANCH" == "master" ]; then git add *.md; git commit -m "Update euslisp form https://github.com/$TRAVIS_REPO_SLUG/tree/$TRAVIS_COMMIT"; git push -fq origin master; fi
60+
- if [ "$TRAVIS_BRANCH" == "master" ]; then git add *.md *.png; git commit -m "Update euslisp form https://github.com/$TRAVIS_REPO_SLUG/tree/$TRAVIS_COMMIT"; git push -fq origin master; fi
6161

6262

6363

.upload-doc.sh

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
rm -fr /tmp/html
44
mkdir -p /tmp/html
5+
sed -i 's@^\(\\tableofcontents\)@% \1@' manual.tex
56
latex2html -dir /tmp/html/ -local_icons -auto_prefix -iso_language JP manual -split 1 -no_navigation
67
# euslisp-docs, generate markdown from pandoc
78
sudo apt-get install -qq -y pandoc

0 commit comments

Comments
 (0)