From: Ryota MIBU Date: Thu, 7 Jan 2016 02:55:45 +0000 (+0900) Subject: docs-build.sh: fix merging of top level docs X-Git-Tag: brahmaputra.1.0~309 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=8bb24cb8235c1158f9fa0339e997526a651c4f86;p=releng.git docs-build.sh: fix merging of top level docs Change-Id: I6d489be3631fa81e799b55cce9d9e3d1c2608140 Signed-off-by: Ryota MIBU --- diff --git a/utils/docs-build.sh b/utils/docs-build.sh index e5e602584..914eaf207 100755 --- a/utils/docs-build.sh +++ b/utils/docs-build.sh @@ -180,7 +180,16 @@ do } if is_top_dir "$dir" ; then - mv "$output"/* "$OUTPUT_DIR"/ + # NOTE: Having top level document (docs/index.rst) is not recommended. + # It may cause conflicts with other docs (mostly with HTML + # folders for contents in top level docs and other document + # folders). But, let's try merge of those contents into the top + # docs directory. + ( + cd $output + find . -type d -print | xargs -I d mkdir -p ../d + find . -type f -print | xargs -I f mv -b f ../f + ) rm -rf "$output" fi