1
0
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:
2026-03-12 08:31:55 +02:00
parent 24c3769e22
commit d113c492c9
2 changed files with 13 additions and 4 deletions

View File

@@ -15,7 +15,3 @@
html.dark-mode #projectlogo img { html.dark-mode #projectlogo img {
content: url('smath_dark.svg'); content: url('smath_dark.svg');
} }
.header:has(+ .contents .anchor#md__r_e_a_d_m_e) {
display: none;
}

13
docs/postprocess-doxygen.sh Executable file
View 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}"