# HG changeset patch # User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr> # Date 1589365233 -7200 # Wed May 13 12:20:33 2020 +0200 # Node ID 419b7791ab3570013b4982cfb113cad1e1d26228 # Parent 21f08d020591ae9d184053422a5b11dab1ebce44 Allow setting documentation name for create_documentation Default using project name from CI/DRONE, and default to directory project name as a last resort. 🚑 fix that last point as it was using project_name_from_home instead of the variable of the same name diff --git a/create_documentation b/create_documentation --- a/create_documentation +++ b/create_documentation @@ -7,12 +7,12 @@ # - openerp to be installed # -# Version 2.7 +# Version 3.0 here=$(dirname $0) project_home=$(cd $here && cd .. && echo $PWD) project_name_from_home=$(basename $project_home) -project_name=${DRONE_REPO_NAME:-project_name_from_home} +project_name=${DOC_PROJECT_NAME:-${CI_PROJECT_NAME:-${DRONE_REPO_NAME:-$project_name_from_home}}} languages=(${LANGUAGES:-en}) format=html diff --git a/setup.cfg b/setup.cfg --- a/setup.cfg +++ b/setup.cfg @@ -6,6 +6,8 @@ [bumpversion:file:VERSION] +[bumpversion:file:create_documentation] + [bumpversion:file:do_tests] [bumpversion:file:run_tests]