mirror of
https://github.com/slendidev/smath.git
synced 2026-03-17 02:26:50 +02:00
Try another approach on removing the header
Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
13
docs/postprocess-doxygen.sh
Executable file
13
docs/postprocess-doxygen.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/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}"
|
||||
Reference in New Issue
Block a user