Skip to content

Commit

Permalink
docs: add canonical link for all generated man pages
Browse files Browse the repository at this point in the history
Have it point to
https://www.roundup-tracker.org/docs/man_pages/NAME.1.html
for each of the 4 man pages.
  • Loading branch information
rouilj committed Oct 2, 2024
1 parent ef2f430 commit 610e23e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ html_extra/man_pages/%.1.html: ../share/man/man1/%.1
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
Expand Down

0 comments on commit 610e23e

Please sign in to comment.