blob: 9716ea42bc28c669b54d576ca25d8493870f9f64 [file] [log] [blame]
Andrew Geissler4873add2020-11-02 18:44:49 -06001#
2# SPDX-License-Identifier: CC-BY-2.0-UK
3#
4# Process poky-ref-manual and yocto-project-qs manual (<word>-<word>-<word> style)
5# 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"
8s@"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
9
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"
14s@"ulink" href="http://www.yoctoproject.org/docs/[^/]*/([a-z]*-[a-z]*)/[a-z]*-[a-z]*.html#([^"]*)"@"link" href="../1/2.html"@g
15
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"
20s@"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