[debian-edu-commits] [Git][debian-edu/debian-edu-doc][master] 2 commits: script: Cleanup the docbook document

Mike Gabriel (@sunweaver) gitlab at salsa.debian.org
Wed Sep 2 10:21:43 BST 2026



Mike Gabriel pushed to branch master at Debian Edu / debian-edu-doc


Commits:
0f9d9222 by Roland Clobus at 2026-07-21T12:35:24+02:00
script: Cleanup the docbook document

Remove the lines about missing <hr> support

- - - - -
5c95a69c by Roland Clobus at 2026-07-22T11:39:06+02:00
script: Keep some Wiki links external

When the Wiki link points outside the hierarchy tree, keep it as an
external link

- - - - -


1 changed file:

- documentation/scripts/get_manual


Changes:

=====================================
documentation/scripts/get_manual
=====================================
@@ -79,9 +79,10 @@ perl -pe "s%<remark>.*?</remark>%<!-- $& -->%g" |
 
 # Make wiki self links actually local
 perl -pe "s%<ulink url=\"$url/?(\w+)#\">(.*?)</ulink>%<link linkend=\"\1\">\2</link>%g" |
-perl -pe "s%<ulink url=\"$URL/?(\w+)#\">(.*?)</ulink>%<link linkend=\"\1\">\2</link>%g" |
 perl -pe "s%<ulink url=\"https://wiki.debian.org/$path1/(HowTo/)?(\w+)#\">(.*?)</ulink>%<link linkend=\"\2\">\3</link>%g" |
 perl -pe "s%<ulink url=\"https://wiki.debian.org/$path1/(HowTo/)?(\w+)#(.*?)\">(.*?)</ulink>%<link linkend=\"\2--\3\">\4</link>%g" |
+# Links pointing to Wiki pages outside the tree stay external
+perl -pe "s%<ulink url=\"$URL/?(\w+)#\">(.*?)</ulink>%<ulink url=\"$URL/\1\">\2</ulink>%g" |
 
 # introduce line breaks:
 sed "s%<title>%\n<title>%g" |
@@ -265,6 +266,9 @@ else
 	sed -i 's%<textobject><phrase>\(.*png\)</phrase></textobject>%%g' $stripped_xmlfile
 fi
 
+  # Remove remark about <hr> tags
+  sed -i 's/<!--rule (<hr>) is not applicable to DocBook-->//' $stripped_xmlfile
+
   # --remove FIXME: paragraphs
   sed -i '/^FIXME:/d' $stripped_xmlfile
   # --remove GPL; exclude the ITIL manual which doesn't contain it.



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-doc/-/compare/8948ecd60f50762ccb796fedae616fad4f0b4fd0...5c95a69c4ced645be23b77196ea16fcf5c62e2b8

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-doc/-/compare/8948ecd60f50762ccb796fedae616fad4f0b4fd0...5c95a69c4ced645be23b77196ea16fcf5c62e2b8
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20260902/1831d746/attachment-0001.htm>


More information about the debian-edu-commits mailing list