Skip to content

Commit

Permalink
Merge pull request #8 from wkentaro/fix-add-img-table
Browse files Browse the repository at this point in the history
Fix add_img_tables_to_index for jsk_docs
  • Loading branch information
k-okada committed Dec 17, 2015
2 parents 3c2961c + e358db2 commit 711e538
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,15 @@
sys.path.insert(0, this_dir)
import add_img_tables_to_index
if not subprocess.check_output(['git', 'diff']):
add_img_tables_to_index.main(exclude_patterns)
cwd = os.path.abspath(os.getcwd())
for doc in os.listdir(this_dir):
doc = os.path.abspath(doc)
doc = os.path.join(doc, 'doc')
if not os.path.exists(doc):
continue
os.chdir(doc)
add_img_tables_to_index.main(exclude_patterns)
os.chdir(cwd)

# The reST default role (used for this markup: `text`) to use for all
# documents.
Expand Down

0 comments on commit 711e538

Please sign in to comment.