From 851085879fb16ca7ad1156e86bc1064c295a5208 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 14 Feb 2019 03:09:43 +0100 Subject: doc: Fix hyperlinks to table of contents in HTML doc. Reported by Akim Demaille . * doc/Makefile.am (libunistring_toc.html): Replace references to libunistring.html with references to libunistring_toc.html. --- ChangeLog | 7 +++++++ doc/Makefile.am | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e8d72f2..f993738 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2019-02-13 Bruno Haible + + doc: Fix hyperlinks to table of contents in HTML doc. + Reported by Akim Demaille . + * doc/Makefile.am (libunistring_toc.html): Replace references to + libunistring.html with references to libunistring_toc.html. + 2019-02-13 Bruno Haible doc: Make function declarations easier to read. diff --git a/doc/Makefile.am b/doc/Makefile.am index e4c2f2e..44027dd 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,5 +1,5 @@ ## Makefile for the doc subdirectory of GNU libunistring. -## Copyright (C) 2009, 2011, 2014, 2017-2018 Free Software Foundation, Inc. +## Copyright (C) 2009, 2011, 2014, 2017-2019 Free Software Foundation, Inc. ## ## This program is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -146,7 +146,9 @@ libunistring_toc.html: libunistring.texi version.texi $(libunistring_TEXINFOS) $(TEXI2HTML) $(TEXINCLUDES) -no-sec-nav -no-menu -toc-links -number -split_chapter `if test -f libunistring.texi; then echo libunistring.texi; else echo $(srcdir)/libunistring.texi; fi` ;; \ esac \ && { mv libunistring/libunistring.html libunistring_toc.html; \ - mv libunistring/*.html .; \ + for file in libunistring/*.html; do \ + sed -e 's/libunistring\.html/libunistring_toc.html/g' < $$file > `basename $$file` && rm -f $$file; \ + done; \ rmdir libunistring; \ } -- cgit v1.2.1