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
Merge requests
!83
fix and improve super project documentation generation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix and improve super project documentation generation
topic/default/documentation
into
branch/default
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Vincent Hatakeyama
requested to merge
topic/default/documentation
into
branch/default
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
branch/default
branch/default (base)
and
latest version
latest version
83ac97da
1 commit,
3 years ago
1 file
+
8
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
create_documentation
+
8
−
6
Options
@@ -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