Mercurial > p > roundup > code
changeset 8116:d4fbfc6a7662
docs: add canonical link for all generated man pages
Have it point to
https://www.roundup-tracker.org/docs/man_pages/NAME.1.html
for each of the 4 man pages.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 01 Oct 2024 23:52:04 -0400 |
| parents | 61ffdc71cf46 |
| children | 89c0e2fc5073 |
| files | doc/Makefile |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/Makefile Thu Sep 26 00:34:54 2024 -0400 +++ b/doc/Makefile Tue Oct 01 23:52:04 2024 -0400 @@ -21,6 +21,10 @@ man --html=cat $< > $@ # set max width for paragraphs sed -i '/<style/,/<\/style/s/\(p\s* { \)margin/\1max-width: 65ch; margin/' $@ + # add link rel=cannonical $@(F) takes + # target $@ (html_extra/man_pages/x.1.html) + # and returns file part (x.1.html) + sed -i '/<head>/,/<\/head>/s#^<style#<link rel="canonical" href="https://www.roundup-tracker.org/docs/man_pages/$(@F)">\n<style#' $@ #man2html $< > $@ admin_help.html: ../roundup/admin.py
