blob: 9716ea42bc28c669b54d576ca25d8493870f9f64 [file] [log] [blame]
Andrew Geissler4ed12e12020-06-05 18:00:41 -05001#
2# SPDX-License-Identifier: CC-BY-2.0-UK
3#
Brad Bishop316dfdd2018-06-25 12:45:53 -04004# Process poky-ref-manual and yocto-project-qs manual (<word>-<word>-<word> style)
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005# For example:
6# "ulink" href="http://www.yoctoproject.org/docs/1.3/poky-ref-manual/poky-ref-manual.html#faq"
7# -> "link" href="../poky-ref-manual/faq.html"
Brad Bishop316dfdd2018-06-25 12:45:53 -04008s@"ulink" href="http://www.yoctoproject.org/docs/[^/]*/([a-z]*-[a-z]*-[a-z]*)/[a-z]*-[a-z]*-[a-z]*.html#([^"]*)"/@"link" href="../1/2.html"@g
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009
10# Processes all other manuals (<word>-<word> style)
11# For example:
12# "ulink" href="http://www.yoctoproject.org/docs/1.3/kernel-manual/kernel-manual.html#faq"
13# -> "link" href="../kernel-manual/faq.html"
Brad Bishop316dfdd2018-06-25 12:45:53 -040014s@"ulink" href="http://www.yoctoproject.org/docs/[^/]*/([a-z]*-[a-z]*)/[a-z]*-[a-z]*.html#([^"]*)"@"link" href="../1/2.html"@g
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015
16# Process cases where just an external manual is referenced without an id anchor
17# For example:
18# "ulink" href="http://www.yoctoproject.org/docs/1.3/kernel-manual/kernel-manual.html
19# -> "link" href="../kernel-manual/index.html"
Brad Bishop316dfdd2018-06-25 12:45:53 -040020s@"ulink" href="http://www.yoctoproject.org/docs/[^/]*/([a-z]*-[a-z]*-[a-z]*)/[a-z]*-[a-z]*-[a-z]*.html"@"link" href="../1/index.html"@g
21s@"ulink" href="http://www.yoctoproject.org/docs/[^/]*/([a-z]*-[a-z]*)/[a-z]*-[a-z]*.html"@"link" href="../1/index.html"@g