diff --git a/create_documentation b/create_documentation index 05689c6ad1ba63019563f36a314698c4bdbc29d4_Y3JlYXRlX2RvY3VtZW50YXRpb24=..edf702435fdc6bdc0451ee7320e0a8daefbbf403_Y3JlYXRlX2RvY3VtZW50YXRpb24= 100755 --- a/create_documentation +++ b/create_documentation @@ -30,19 +30,6 @@ pushd $project_home -# determine branch name -if [ -n "$DRONE_BRANCH" ]; then - branch="$DRONE_BRANCH" -elif [ -e ".git" ]; then - branch="$(git rev-parse --abbrev-ref HEAD)" -elif [ -e ".hg" ]; then - branch="$(hg id -b)" -else - echo "${RED}WARN${RESET} - Branch name not found" - branch="unknown" -fi -echo "${YELLOW}INFO ${RESET} - Branch name: $branch" - if type "python3" > /dev/null; then odoo_modules="$(python3 -B -c "import configparser ; c = configparser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print (c.has_option('odoo_scripts', 'modules') and ' '.join(c.get('odoo_scripts', 'modules').split()) or '')")" @@ -108,6 +95,20 @@ done # super project documentation + +# determine branch name +if [ -n "$DRONE_BRANCH" ]; then + branch="$DRONE_BRANCH" +elif [ -e ".git" ]; then + branch="$(git rev-parse --abbrev-ref HEAD)" +elif [ -e ".hg" ]; then + branch="$(hg id -b)" +else + echo "${RED}WARN${RESET} - Branch name not found" + branch="unknown" +fi +echo "${YELLOW}INFO ${RESET} - Branch name: $branch" + for doc_dir in doc docs; do if [[ -d "$doc_dir" ]] ; then pushd $doc_dir