mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

[Yocto #13873] (From yocto-docs rev: b87c540a1a6c0dce4c6010b89d9831442e0e7f70) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
22 lines
1.2 KiB
Sed
22 lines
1.2 KiB
Sed
#
|
|
# SPDX-License-Identifier: CC-BY-2.0-UK
|
|
#
|
|
# Process poky-ref-manual and yocto-project-qs manual (<word>-<word>-<word> style)
|
|
# For example:
|
|
# "ulink" href="http://www.yoctoproject.org/docs/1.3/poky-ref-manual/poky-ref-manual.html#faq"
|
|
# -> "link" href="../poky-ref-manual/faq.html"
|
|
s@"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
|
|
|
|
# Processes all other manuals (<word>-<word> style)
|
|
# For example:
|
|
# "ulink" href="http://www.yoctoproject.org/docs/1.3/kernel-manual/kernel-manual.html#faq"
|
|
# -> "link" href="../kernel-manual/faq.html"
|
|
s@"ulink" href="http://www.yoctoproject.org/docs/[^/]*/([a-z]*-[a-z]*)/[a-z]*-[a-z]*.html#([^"]*)"@"link" href="../1/2.html"@g
|
|
|
|
# Process cases where just an external manual is referenced without an id anchor
|
|
# For example:
|
|
# "ulink" href="http://www.yoctoproject.org/docs/1.3/kernel-manual/kernel-manual.html
|
|
# -> "link" href="../kernel-manual/index.html"
|
|
s@"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
|
|
s@"ulink" href="http://www.yoctoproject.org/docs/[^/]*/([a-z]*-[a-z]*)/[a-z]*-[a-z]*.html"@"link" href="../1/index.html"@g
|