Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Odoo scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo scripts
Commits
58455dbe5c53
Commit
58455dbe5c53
authored
1 year ago
by
Vincent Hatakeyama
Browse files
Options
Downloads
Patches
Plain Diff
also create documentation from odoo_modules directory
parent
7692f538c5fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!182
📝 also create documentation from odoo_modules directory
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
create_documentation
+22
-9
22 additions, 9 deletions
create_documentation
with
22 additions
and
9 deletions
create_documentation
+
22
−
9
View file @
58455dbe
...
...
@@ -7,7 +7,7 @@
# - openerp to be installed
#
# Version 20.0.
0
# Version 20.0.
1
here
=
$(
dirname
$0
)
source
$here
/common
...
...
@@ -21,6 +21,8 @@
error
=
0
typeset
-a
odoo_modules
# Remark: when running the CI, the configuration values from modules might be empty.
# (they are moved in odoo_modules instead)
odoo_modules
=(
"
${
(@s/ /)
$(
read_odoo_scripts_expandable_configuration_key modules
" "
)
}
"
)
pushd
$project_home
...
...
@@ -39,6 +41,17 @@
fi
unset
module_dir
done
# Add odoo_modules copied by docker_build_copy and only path available in CI
if
[[
-d
odoo_modules
]]
;
then
addons_path+
=(
$(
readlink
-f
odoo_modules
)
)
typeset
-a
dirs
dirs
=(
odoo_modules/
*
/
)
dirs
=(
"
${
dirs
[@]%/
}
"
)
for
dir
in
$dirs
;
do
odoo_modules+
=(
$(
readlink
-f
$dir
)
)
done
unset dirs
fi
export
ODOO_ADDONS_PATH
=
${
(j
:,:
)addons_path
}
unset
addons_path
...
...
@@ -59,13 +72,5 @@
pushd
$module_path
module
=
$(
basename
$module_path
)
has_doc
=
""
if
[
-e
".git"
]
||
[
-e
"../.git"
]
;
then
branch
=
"
$(
git rev-parse
--abbrev-ref
HEAD
)
"
elif
[
-e
".hg"
]
;
then
branch
=
"
$(
hg identify
--branch
)
"
else
echo
"
${
WARN
}
Branch name not found"
branch
=
"default"
fi
for
doc_dir
in
doc docs
;
do
if
[[
-d
$doc_dir
&&
-e
$doc_dir
/Makefile
]]
;
then
...
...
@@ -70,5 +75,13 @@
for
doc_dir
in
doc docs
;
do
if
[[
-d
$doc_dir
&&
-e
$doc_dir
/Makefile
]]
;
then
if
[
-e
".git"
]
||
[
-e
"../.git"
]
;
then
branch
=
"
$(
git rev-parse
--abbrev-ref
HEAD
)
"
elif
[
-e
".hg"
]
;
then
branch
=
"
$(
hg identify
--branch
)
"
else
echo
"
${
WARN
}
Branch name not found"
branch
=
"default"
fi
echo
"
${
INFO
}
Branch name:
$branch
"
has_doc
=
True
echo
${
INFO
}
Makefile found
in
$module_path
/
$doc_dir
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment