meso-web

Sources of the |Méso|Star> website
git clone git://git.meso-star.fr/meso-web.git
Log | Files | Refs | README | LICENSE

commit bd976fc0cbfe248547978074c87819d1fa885d12
parent bf829152f3b11d8ae8382c43e42f21e78142bb83
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 13 Nov 2023 15:49:29 +0100

Fix the convert_mdoc.sh script

Define root directory relative to where man pages are stored. In this
way, the CSS path is independent of the current file tree.

Do not provide a link target for the csplit man page.

Diffstat:
Mconvert_mdoc.sh | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/convert_mdoc.sh b/convert_mdoc.sh @@ -31,7 +31,7 @@ fi man_name=${input##*/} man_name=${man_name%.*} -root="${HOME}/docs/meso-star/meso-web/" +root="../../../" { print_header -s "${section}" -n "${man_name}" -r "${root}" @@ -42,6 +42,7 @@ root="${HOME}/docs/meso-star/meso-web/" -e 's/"Nm">htrdr-image/"Nm">htrdr\&#8209;image/g' \ -e 's/"Nm">htrdr-materials/"Nm">htrdr\&#8209;materials/g' \ -e 's/"Nm">htrdr-planeto/"Nm">htrdr\&#8209;planeto/g' \ + -e 's/<a class="Xr"[^>]\{0,\}>csplit(1)<\/a>/<a class "Xr">csplit(1)<\/a>/g' \ -e 's/<a class="Xr"[^>]\{0,\}>gnuplot(1)<\/a>/<a class "Xr">gnuplot(1)<\/a>/g' \ -e 's/<a class="Xr"[^>]\{0,\}>mmap(2)<\/a>/<a class "Xr">mmap(2)<\/a>/g' \ -e 's/<a class="Xr"[^>]\{0,\}>mpirun(1)<\/a>/<a class "Xr">mpirun(1)<\/a>/g' \