8 GIT_CLONE_BASE=${GIT_CLONE_BASE:-ssh://gerrit.opnfv.org:29418}
9 GERRIT_BRANCH=${GERRIT_BRANCH:-master}
12 # NOTE: Not all repositories are ready for the composite docs,
13 # so we have the repo name list here to add project docs
14 # one by one. This will be replaced by the list in project.cfg .
15 # grep -v '^#' releng/jjb/opnfvdocs/project.cfg | sort
22 [[ -d "$_repo" ]] && return 0
23 git clone -b $GERRIT_BRANCH --depth 1 --quiet $GIT_CLONE_BASE/$_repo
28 repos=$(get_repo_names)
30 [[ -e docs/projects ]] && rm -rf docs/projects
31 mkdir -p docs/projects
34 echo "Cloning repos of participating OPNFV Projects and copying docs"
36 mkdir -p docs_build/projects
37 pushd docs_build/projects
38 for repo in $repos; do
39 echo " $repo ($GERRIT_BRANCH)"
41 [[ -e $repo/docs ]] || continue
42 cp -r $repo/docs ../../docs/projects/$repo
46 # NOTE: Removing index.rst in project repos to reduce number of docs.
47 find docs_build/projects -type f -name 'index.rst' -print | xargs -I i rm -f i
49 # NOTE: automated link generation is not ready...
51 #echo "Creating document links"
53 #for guide in configguide userguide
55 # link_list=$WORKSPACE/docs/$guide/projects-$guide.rst
58 # file=projects/$repo/$guide/$guide.rst
59 # [[ -e $WORKSPACE/docs/$file ]] || continue
60 # echo "" >> $link_list
61 # echo "$repo:" >> $link_list
62 # echo ".. include:: ../$file" >> $link_list
66 ./releng/utils/docs-build.sh