update doc-build.sh to allow multiple depth of dir