Skip to content

Commit

Permalink
Use the new doc scripts in gitlab ci and debian/rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Mar 5, 2025
1 parent 5965c61 commit b8c5b4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
18 changes: 5 additions & 13 deletions .gitlab/ci/bot.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,17 @@ generate-helpers-doc:
- git config --global user.email "yunohost@yunohost.org"
- git config --global user.name "$GITHUB_USER"
script:
- cd doc
- python3 generate_helper_doc.py 2
- python3 generate_helper_doc.py 2.1
- python3 generate_resource_doc.py > resources.md
- python3 generate_configpanel_and_formoptions_doc.py > forms.md
- hub clone https://$GITHUB_TOKEN:x-oauth-basic@github.com/YunoHost/doc.git doc_repo
- cp helpers.v2.md doc_repo/pages/06.contribute/10.packaging_apps/20.scripts/10.helpers/packaging_app_scripts_helpers.md
- cp helpers.v2.1.md doc_repo/pages/06.contribute/10.packaging_apps/20.scripts/12.helpers21/packaging_app_scripts_helpers_v21.md
- cp resources.md doc_repo/pages/06.contribute/10.packaging_apps/10.manifest/10.appresources/packaging_app_manifest_resources.md
- cp forms.md doc_repo/pages/06.contribute/15.dev/03.forms/forms.md
- python3 doc/generate_helpers_doc.py 2 -o doc_repo/pages/06.contribute/10.packaging_apps/20.scripts/10.helpers/packaging_app_scripts_helpers.md
- python3 doc/generate_helpers_doc.py 2.1 -o doc_repo/pages/06.contribute/10.packaging_apps/20.scripts/12.helpers21/packaging_app_scripts_helpers_v21.md
- python3 doc/generate_resource_doc.py -o doc_repo/pages/06.contribute/10.packaging_apps/10.manifest/10.appresources/packaging_app_manifest_resources.md
- python3 doc/generate_configpanel_and_formoptions_doc.py -o doc_repo/pages/06.contribute/15.dev/03.forms/forms.md

- cd doc_repo
# replace ${CI_COMMIT_REF_NAME} with ${CI_COMMIT_TAG} ?
- hub checkout -b "${CI_COMMIT_REF_NAME}"
- hub commit -am "[CI] Update app helpers/resources for ${CI_COMMIT_REF_NAME}"
- hub pull-request -m "[CI] Update app helpers/resources for ${CI_COMMIT_REF_NAME}" -p # GITHUB_USER and GITHUB_TOKEN registered here https://gitlab.com/yunohost/yunohost/-/settings/ci_cd
artifacts:
paths:
- doc/helpers.md
- doc/resources.md
only:
- tags

Expand Down
3 changes: 2 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@

override_dh_auto_build:
# Generate bash completion file
python3 doc/generate_bash_completion.py
mkdir -p doc/bash_completion.d
python3 doc/generate_bash_completion.py -o doc/bash_completion.d/yunohost
python3 doc/generate_manpages.py --gzip --output doc/yunohost.8.gz

0 comments on commit b8c5b4f

Please sign in to comment.