diff options
author | Aric Gardner <agardner@linuxfoundation.org> | 2016-01-18 20:11:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-01-18 20:11:19 +0000 |
commit | 659810f6d6845f0a2dfc2ba9a67ab6b641146541 (patch) | |
tree | 86f4bf1bdff5ae528c3c32877cca17596c08a875 | |
parent | b631d34331e5c8e6e27374777d7196e71888cd25 (diff) | |
parent | d1bb09ef27929715d51ccffcf0b956b80a0ab1a2 (diff) |
Merge "docs: fix docs-build.sh for top level document"
-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" |