Skip to content

Commit

Permalink
use gh-pages for jskeus
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Dec 4, 2015
1 parent ef6cc92 commit 84ac86c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
# setup repo
local_name = repo['git']['local-name']
uri = os.path.splitext(repo['git']['uri'])[0]
subprocess.call(['git', 'clone', '--depth=1', uri, local_name])
version = repo['git']['version'] if repo['git'].has_key('version') else 'master'
subprocess.call(['git', 'clone', '--depth=1', uri, local_name, '-b', version])
subprocess.call(['git', 'clean', '-xfd'], cwd=local_name)
subprocess.call(['git', 'reset', '--hard'], cwd=local_name)

Expand Down Expand Up @@ -140,12 +141,10 @@
# euslisp
if local_name == "jskeus":
doc_dir=os.path.join('jskeus', 'doc');
subprocess.call(['make'], cwd='jskeus')
subprocess.call(['make', 'html'], cwd=doc_dir)
build_dir = os.path.join('_build', 'html', 'jskeus', 'doc', 'html')
if not os.path.exists(build_dir):
os.makedirs(os.path.dirname(build_dir))
shutil.copytree(os.path.join('jskeus', 'doc', 'html'), build_dir)
shutil.copytree('jskeus', build_dir)
with open(index, "a") as f:
f.write("\n")
f.write("`API Documents <html>`_\n")
Expand Down
1 change: 1 addition & 0 deletions doc/doc.rosinstall
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- git:
uri: https://github.com/euslisp/jskeus.git
local-name: jskeus
version: gh-pages
- git:
uri: https://github.com/jsk-ros-pkg/jsk_common.git
local-name: jsk_common
Expand Down

0 comments on commit 84ac86c

Please sign in to comment.