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
24 [[ -d "$_repo" ]] && return 0
25 git clone -b $GERRIT_BRANCH --depth 1 --quiet $GIT_CLONE_BASE/$_repo
30 repos=$(get_repo_names)
32 [[ -e docs/projects ]] && rm -rf docs/projects
33 mkdir -p docs/projects
36 echo "Cloning repos of participating OPNFV Projects and copying docs"
38 mkdir -p docs_build/projects
39 pushd docs_build/projects
40 for repo in $repos; do
41 echo " $repo ($GERRIT_BRANCH)"
43 [[ -e $repo/docs ]] || continue
44 cp -r $repo/docs ../../docs/projects/$repo
48 # NOTE: Removing index.rst in project repos to reduce number of docs.
49 find docs_build/projects -type f -name 'index.rst' -print | xargs -I i rm -f i
51 # NOTE: automated link generation is not ready...
53 #echo "Creating document links"
55 #for guide in configguide userguide
57 # link_list=$WORKSPACE/docs/$guide/projects-$guide.rst
60 # file=projects/$repo/$guide/$guide.rst
61 # [[ -e $WORKSPACE/docs/$file ]] || continue
62 # echo "" >> $link_list
63 # echo "$repo:" >> $link_list
64 # echo ".. include:: ../$file" >> $link_list
68 ./releng/utils/docs-build.sh