diff --git a/docs/fix_links.py b/docs/fix_links.py index 6e2eaec485..7b6b01b995 100644 --- a/docs/fix_links.py +++ b/docs/fix_links.py @@ -36,6 +36,7 @@ def proc_items(items): s = s.replace('](README.md)', '](./)') s = s.replace('](/INSTALL.md', '](INSTALL.md') s = s.replace('](docs/', '](') + s = s.replace('](/docs/', '](/') s = URL_RE.sub(handle_url, s) item['Chapter']['content'] = ANCHOR_RE.sub(handle_anchor, s) proc_items(item['Chapter']['sub_items'])