diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2014-07-07 09:41:24 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-21 19:06:52 +0100 |
commit | 476778761389f971e4ade929b76ff53bf8b72de6 (patch) | |
tree | e757373e2dc64f52c6130d09bb7ec4661ca02a89 | |
parent | 1fc9548dc143fd48de5a4cad6d3f3d3a2cfc3170 (diff) | |
download | poky-476778761389f971e4ade929b76ff53bf8b72de6.tar.gz |
ref-manuala: Updates to support links to BB manual
Discovered that the sed file was processing the bitbake-user-manual
just like the others, which was wrong. the BB manual is not included
in the mega-manual so the links there need to be left alone. The fix
included specially creating substitution lines to handle all the YP
docs while excluding the BB manual.
(From yocto-docs rev: f2c99c6a66c3f67ab226f317dfae195294ddafea)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | documentation/tools/mega-manual.sed | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/documentation/tools/mega-manual.sed b/documentation/tools/mega-manual.sed index 69a5b825c7..c319d39c64 100644 --- a/documentation/tools/mega-manual.sed +++ b/documentation/tools/mega-manual.sed | |||
@@ -1,8 +1,25 @@ | |||
1 | # Processes ref-manual and yocto-project-qs manual (<word>-<word>-<word> style) | 1 | # Processes poky-ref-manual and yocto-project-qs manual (<word>-<word>-<word> style). |
2 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/[a-z]*-[a-z]*-[a-z]*\/[a-z]*-[a-z]*-[a-z]*.html#/\"link\" href=\"#/g | 2 | # This style is for manual folders like "yocto-project-qs" and "poky-ref-manual". |
3 | # This is the old way that did it. Can't do that now that we have "bitbake-user-manual" strings | ||
4 | # in the mega-manual. | ||
5 | # s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/[a-z]*-[a-z]*-[a-z]*\/[a-z]*-[a-z]*-[a-z]*.html#/\"link\" href=\"#/g | ||
6 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/yocto-project-qs\/yocto-project-qs.html#/\"link\" href=\"#/g | ||
7 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/poky-ref-manual\/poky-ref-manual.html#/\"link\" href=\"#/g | ||
3 | 8 | ||
4 | # Processes all other manuals (<word>-<word> style) | 9 | # Processes all other manuals (<word>-<word> style) except for the BitBake User Manual because |
5 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/[a-z]*-[a-z]*\/[a-z]*-[a-z]*.html#/\"link\" href=\"#/g | 10 | # it is not included in the mega-manual. |
11 | # This style is for manual folders that use two word, which is the standard now (e.g. "ref-manual"). | ||
12 | # This was the one-liner that worked before we introduced the BitBake User Manual, which is | ||
13 | # not in the mega-manual. | ||
14 | # s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/[a-z]*-[a-z]*\/[a-z]*-[a-z]*.html#/\"link\" href=\"#/g | ||
15 | |||
16 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/adt-manual\/adt-manual.html#/\"link\" href=\"#/g | ||
17 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/bsp-guide\/bsp-guide.html#/\"link\" href=\"#/g | ||
18 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/dev-manual\/dev-manual.html#/\"link\" href=\"#/g | ||
19 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/kernel-dev\/kernel-dev.html#/\"link\" href=\"#/g | ||
20 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/profile-manual\/profile-manual.html#/\"link\" href=\"#/g | ||
21 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/ref-manual\/ref-manual.html#/\"link\" href=\"#/g | ||
22 | s/\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/yocto-project-qs\/yocto-project-qs.html#/\"link\" href=\"#/g | ||
6 | 23 | ||
7 | # Process cases where just an external manual is referenced without an id anchor | 24 | # Process cases where just an external manual is referenced without an id anchor |
8 | s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/yocto-project-qs\/yocto-project-qs.html\" target=\"_top\">Yocto Project Quick Start<\/a>/Yocto Project Quick Start/g | 25 | s/<a class=\"ulink\" href=\"http:\/\/www.yoctoproject.org\/docs\/1.7\/yocto-project-qs\/yocto-project-qs.html\" target=\"_top\">Yocto Project Quick Start<\/a>/Yocto Project Quick Start/g |