From 76e305393723a8e1b289e19641c059bc394c5195 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Sat, 7 Aug 2010 06:25:29 +0100 Subject: [PATCH] Build: fix 1167. I think it works. It doesn't seem to mess up the offline build, at least. I'm not 100% certain about the exact url, but it definitely changes the url, so I guess we'll just have to wait until 2.13.30 to see if it really works or not? --- python/auxiliar/postprocess_html.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/python/auxiliar/postprocess_html.py b/python/auxiliar/postprocess_html.py index f327e4e393..9f25418cb0 100644 --- a/python/auxiliar/postprocess_html.py +++ b/python/auxiliar/postprocess_html.py @@ -345,6 +345,16 @@ def process_html_files (package_name = '', s = s.replace ('%', '%%') s = hack_urls (s, prefix) s = add_header (s, prefix) + # make the "return to doc index" work with the online website. + if target == 'online': + if 'Documentation/contributor' in prefix: + s = s.replace ( + 'href=\"../..//Documentation/web/manuals.html\"', + 'href=\"../../../../website/development.html\"') + else: + s = s.replace ( + 'href=\"../..//Documentation/web/manuals.html\"', + 'href=\"../../../../website/manuals.html\"') ### add footer if footer_tag_re.search (s) == None: -- 2.39.2