Skip to content
Snippets Groups Projects
Commit 2af7602a authored by Thomas Woerner's avatar Thomas Woerner
Browse files

build-galaxy-release: Fix refs for all doc_fragments in plugins/doc_fragments

The script now fixes the references for all doc_fragments in the
plugins/doc_fragments folder. So far it was only fixing the references
for ipamodule_base_docs.

PR #762 (automount location: add support for delete_continue) added an
other doc_fragment and the references have not been fixes as needed.
parent 1b74cf16
No related branches found
No related tags found
No related merge requests found
...@@ -118,11 +118,15 @@ sed -i -e "s/ansible.module_utils.ansible_freeipa_module/ansible_collections.${c ...@@ -118,11 +118,15 @@ sed -i -e "s/ansible.module_utils.ansible_freeipa_module/ansible_collections.${c
ln -sf ../../roles/*/action_plugins/*.py . ln -sf ../../roles/*/action_plugins/*.py .
}) })
echo "Fixing doc fragments in plugins/modules..." for doc_fragment in plugins/doc_fragments/*.py; do
for file in plugins/modules/*.py; do fragment=$(basename -s .py "$doc_fragment")
sed -i -e "s/- ipamodule_base_docs/- ${collection_prefix}.ipamodule_base_docs/" "$file"
echo "Fixing doc fragments for ${fragment} in plugins/modules..."
for file in plugins/modules/*.py; do
sed -i -e "s/- ${fragment}/- ${collection_prefix}.${fragment}/" "$file"
done
echo -e "\033[AFixing doc framents for ${fragment} in plugins/modules... \033[32;1mDONE\033[0m"
done done
echo -e "\033[AFixing doc framents in plugins/modules... \033[32;1mDONE\033[0m"
echo "Fixing examples in plugins/modules..." echo "Fixing examples in plugins/modules..."
find plugins/modules -name "*.py" -print0 | find plugins/modules -name "*.py" -print0 |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment