1
0
mirror of https://github.com/slendidev/smath.git synced 2026-03-17 02:26:50 +02:00
Files
smath/docs/postprocess-doxygen.sh
2026-03-12 08:31:55 +02:00

14 lines
355 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
html_dir="${1:-build/docs/html}"
index_file="${html_dir%/}/index.html"
if [[ ! -f "${index_file}" ]]; then
echo "error: ${index_file} not found" >&2
exit 1
fi
perl -0pi -e 's{<div><div class="header">\s*<div class="headertitle"><div class="title">.*?</div></div>\s*</div><!--header-->\s*}{}s' "${index_file}"