We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef2f430 commit 610e23eCopy full SHA for 610e23e
doc/Makefile
@@ -21,6 +21,10 @@ html_extra/man_pages/%.1.html: ../share/man/man1/%.1
21
man --html=cat $< > $@
22
# set max width for paragraphs
23
sed -i '/<style/,/<\/style/s/\(p\s* { \)margin/\1max-width: 65ch; margin/' $@
24
+ # add link rel=cannonical $@(F) takes
25
+ # target $@ (html_extra/man_pages/x.1.html)
26
+ # and returns file part (x.1.html)
27
+ sed -i '/<head>/,/<\/head>/s#^<style#<link rel="canonical" href="https://www.roundup-tracker.org/docs/man_pages/$(@F)">\n<style#' $@
28
#man2html $< > $@
29
30
admin_help.html: ../roundup/admin.py
0 commit comments