Skip to content
Snippets Groups Projects

:pencil: fix and improve super project documentation generation

Merged Vincent Hatakeyama requested to merge topic/default/documentation into branch/default
1 file
+ 8
6
Compare changes
  • Side-by-side
  • Inline
+ 8
6
@@ -59,7 +59,7 @@ do
pushd $module_path
module=$(basename $module_path)
has_doc=""
if [ -e ".git" ]; then
if [ -e ".git" ] || [ -e "../.git" ]; then
branch="$(git rev-parse --abbrev-ref HEAD)"
elif [ -e ".hg" ]; then
branch="$(hg identify --branch)"
@@ -99,16 +99,16 @@ do
rsync --recursive --copy-links --perms --times --group --owner $doc_dir/ "$superproject_modules_doc/$module"
# generate autotodo for each module (to update pathes)
if [[ -e $doc_dir/autotodo.py ]] ; then
echo "${INFO} running autotodo again from different path $superproject_modules_doc/$module for ${project_home}/${module_path}"
echo "${INFO} running autotodo again from different path $superproject_modules_doc/$module for ${module_path}"
pushd "$superproject_modules_doc/$module"
./autotodo.py $(realpath --relative-to="." "${project_home}/${module_path}") .py TODO,FIXME,XXX
./autotodo.py $(realpath --relative-to="." "${module_path}") .py TODO,FIXME,XXX
popd
fi
# TODO translation will not work when copying like that.
fi
done
if [[ -z "$has_doc" ]] ; then
echo ${WARN} - Missing documentation for $module_path
echo ${WARN} Missing documentation for $module_path
fi
popd
fi
@@ -119,8 +119,10 @@ echo ""
echo "${INFO} ${WHITE_BOLD}Super project${RESET} documentation generation"
# determine branch name
if [ -n "$DRONE_BRANCH" ]; then
branch="$DRONE_BRANCH"
if [ -n "$CI_COMMIT_HG_BRANCH" ]; then
branch="$CI_COMMIT_HG_BRANCH"
elif [ -n "$CI_COMMIT_BRANCH" ]; then
branch="$CI_COMMIT_BRANCH"
elif [ -e ".git" ]; then
branch="$(git rev-parse --abbrev-ref HEAD)"
elif [ -e ".hg" ]; then
Loading