Fix image links in doc site (#7948)
This commit is contained in:
parent
7cf768bb7b
commit
d3ba9e4020
@ -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'])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user