spring-security/docs/modules/ROOT/pages/servlet/authentication/unpwd
Rob Winch 29a7669101 rg "xref:\S+?#\S+\[\]" docs/modules -l -g "*.adoc" | while read adoc_file_to_replace; do
echo "Replacing $adoc_file_to_replace"
  for id_file in build/ids/*.id; do
    id=$(basename $id_file | sed 's/\.id$//')
    xref_page=$(cat $id_file)
    if [[ "$adoc_file_to_replace" -ef "./docs/modules/ROOT/pages/$xref_page" ]]
    then
      echo "  - Skipping same page refid $id "
    else
      text_file=$(echo $id_file | sed 's/\.id$/.text/')
      default_text=$(cat $text_file)
      sed -i -E "s%xref:${xref_page}#${id}\[\]%xref:${xref_page}#${id}[$default_text]%g" $adoc_file_to_replace
    fi
  done
done
2021-09-23 15:49:45 -05:00
..
basic.adoc rg "xref:\S+?#\S+\[\]" docs/modules -l -g "*.adoc" | while read adoc_file_to_replace; do 2021-09-23 15:49:45 -05:00
dao-authentication-provider.adoc rg "xref:\S+?#\S+\[\]" docs/modules -l -g "*.adoc" | while read adoc_file_to_replace; do 2021-09-23 15:49:45 -05:00
digest.adoc mkdir -p build/ids 2021-09-23 15:49:43 -05:00
form.adoc rg "xref:\S+?#\S+\[\]" docs/modules -l -g "*.adoc" | while read adoc_file_to_replace; do 2021-09-23 15:49:45 -05:00
in-memory.adoc mkdir -p build/ids 2021-09-23 15:49:43 -05:00
index.adoc rg "xref:\S+?#\S+\[\]" docs/modules -l -g "*.adoc" | while read adoc_file_to_replace; do 2021-09-23 15:49:45 -05:00
jdbc.adoc mkdir -p build/ids 2021-09-23 15:49:43 -05:00
ldap.adoc rg "xref:\S+?#\S+\[\]" docs/modules -l -g "*.adoc" | while read adoc_file_to_replace; do 2021-09-23 15:49:45 -05:00
password-encoder.adoc mkdir -p build/ids 2021-09-23 15:49:43 -05:00
user-details-service.adoc mkdir -p build/ids 2021-09-23 15:49:43 -05:00
user-details.adoc mkdir -p build/ids 2021-09-23 15:49:43 -05:00