From 72ca92224db9360f24d4e9c8f2d68137123f1ee0 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 27 Aug 2020 15:16:03 -0700 Subject: [PATCH] doc: wikiparser: Add note about some incorrect links Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- doc/scripts/wikiparser.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/scripts/wikiparser.py b/doc/scripts/wikiparser.py index fa630efb0..c15c71134 100644 --- a/doc/scripts/wikiparser.py +++ b/doc/scripts/wikiparser.py @@ -557,7 +557,13 @@ def map_local_files(path): def resolve_url(url, context): - """Expand a URL into a full path.""" + """Expand a URL into a full path. + + XXX: Links inside the included pages are resolved properly. However, + without the original path of a page, links in page can't always be resolved + correctly. Preserve the original path information. + + """ if re.match(r'https?://', url) or url.startswith('mailto:') or \ url.startswith('irc://'): return url