Skip to content

Commit

Permalink
doc.rosinstall: add euslisp
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Dec 3, 2015
1 parent 707ce53 commit a202124
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
16 changes: 14 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@
subprocess.call(['git', 'clean', '-xfd'], cwd=local_name)
subprocess.call(['git', 'reset', '--hard'], cwd=local_name)

with open("index.rst", "a") as f:
f.write(" %s/doc/index\n"%(local_name))
if "/" not in local_name:
with open("index.rst", "a") as f:
f.write(" %s/doc/index\n"%(local_name))
# add index.rst if not exists
index = os.path.join(local_name, "doc", "index.rst")
if not os.path.exists(index):
Expand Down Expand Up @@ -136,6 +137,17 @@
f.write("\n")
f.write("`API Documents <../../hrpsys-base-api/html/>`_\n")

# euslisp
if local_name == "jskeus":
doc_dir=os.path.join('jskeus', 'doc');
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)
with open(index, "a") as f:
f.write("\n")
f.write("`API Documents <html>`_\n")

## add image tables @wkentaro
this_dir = os.path.dirname(os.path.abspath(__file__))
Expand Down
6 changes: 6 additions & 0 deletions doc/doc.rosinstall
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
- git:
uri: https://github.com/euslisp/jskeus.git
local-name: jskeus
- git:
uri: https://github.com/euslisp/EusLisp.git
local-name: jskeus/eus
- git:
uri: https://github.com/jsk-ros-pkg/jsk_common.git
local-name: jsk_common
Expand Down

0 comments on commit a202124

Please sign in to comment.