summaryrefslogtreecommitdiffstats
path: root/utils/docs-build.sh
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2016-01-18 23:04:20 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2016-01-18 23:04:20 +0900
commitd1bb09ef27929715d51ccffcf0b956b80a0ab1a2 (patch)
treecb2b1ebd5dfe9a1807976f264341c042ba1207a8 /utils/docs-build.sh
parent6544d0ae3a7e409a1f8b6be23ce3d5c67e9607f2 (diff)
docs: fix docs-build.sh for top level document
Change-Id: I3465e181c8f6bbb6bc4fbee3d7d3d6162487b9c0 Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'utils/docs-build.sh')
-rwxr-xr-xutils/docs-build.sh6
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"