diff options
author | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2016-01-18 23:04:20 +0900 |
---|---|---|
committer | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2016-01-18 23:04:20 +0900 |
commit | d1bb09ef27929715d51ccffcf0b956b80a0ab1a2 (patch) | |
tree | cb2b1ebd5dfe9a1807976f264341c042ba1207a8 | |
parent | 6544d0ae3a7e409a1f8b6be23ce3d5c67e9607f2 (diff) |
docs: fix docs-build.sh for top level document
Change-Id: I3465e181c8f6bbb6bc4fbee3d7d3d6162487b9c0
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
-rwxr-xr-x | utils/docs-build.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/docs-build.sh b/utils/docs-build.sh index 7c444e3d8..b397094c6 100755 --- a/utils/docs-build.sh +++ b/utils/docs-build.sh @@ -137,7 +137,11 @@ prepare_src_files find $DOCS_DIR -name $INDEX_RST -printf '%h\n' | while read dir do name=$(generate_name $dir) - src="$SRC_DIR/${dir#$DOCS_DIR/}" + if is_top_dir "$dir" ; then + src="$SRC_DIR" + else + src="$SRC_DIR/${dir#$DOCS_DIR/}" + fi build="$BUILD_DIR/$name" output="$OUTPUT_DIR/$name" conf="$src/conf.py" |