Skip to content

Commit

Permalink
LDoc: fix showing version info
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Aug 18, 2021
1 parent bf5b583 commit c6b27a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .ldoc/build_versioned_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ for vinfo in $(git tag -l --sort=-v:refname | grep "^v[0-9]"); do

# show version info
for html in $(find "${d_temp}" -type f -name "*.html"); do
sed -i -e "s|^<h1>Sounds</h1>$|<h1>Sounds <span style=\"font-size:12pt;\">(${vinfo})</span></h1>|" "${html}"
sed -i -e "s|^<h1>Server Shops</h1>$|<h1>Server Shops <span style=\"font-size:12pt;\">(${vinfo})</span></h1>|" "${html}"
done

# copy screenshot
Expand Down
8 changes: 7 additions & 1 deletion .ldoc/gendoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,16 @@ sed -i -e 's/local version = .*$/local version = master/' "${f_config_tmp}"
# create new files
ldoc --UNSAFE_NO_SANDBOX -c "${f_config_tmp}" -d "${d_export}/${vinfo}" "${d_root}"

# check exit status
if test ${retval} -ne 0; then
echo -e "\nan error occurred (ldoc return code: ${retval})"
exit ${retval}
fi

# show version info
echo -e "\nfinding ${vinfo}..."
for html in $(find "${d_export}/${vinfo}" -type f -name "*.html"); do
sed -i -e "s|^<h1>Sounds</h1>$|<h1>Sounds <span style=\"font-size:12pt;\">(${vinfo})</span></h1>|" "${html}"
sed -i -e "s|^<h1>Server Shops</h1>$|<h1>Server Shops <span style=\"font-size:12pt;\">(${vinfo})</span></h1>|" "${html}"
done

# copy screenshot
Expand Down

0 comments on commit c6b27a0

Please sign in to comment.