diff --git a/docs/custom.css b/docs/custom.css index 9a582a5..7be81b6 100644 --- a/docs/custom.css +++ b/docs/custom.css @@ -15,7 +15,3 @@ html.dark-mode #projectlogo img { content: url('smath_dark.svg'); } - -.header:has(+ .contents .anchor#md__r_e_a_d_m_e) { - display: none; -} diff --git a/docs/postprocess-doxygen.sh b/docs/postprocess-doxygen.sh new file mode 100755 index 0000000..525513e --- /dev/null +++ b/docs/postprocess-doxygen.sh @@ -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{