mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-26 23:01:05 +08:00
doc: Use relative links in generated index.html when possible
BUG=crashpad:67 Review URL: https://codereview.chromium.org/1397173002 .
This commit is contained in:
parent
fd40ebbc72
commit
2bee026ca1
@ -43,7 +43,10 @@ done
|
|||||||
|
|
||||||
# Move doc/index.html to index.html, adjusting relative paths to other files in
|
# Move doc/index.html to index.html, adjusting relative paths to other files in
|
||||||
# doc.
|
# doc.
|
||||||
|
base_url=https://crashpad-home.appspot.com/
|
||||||
${sed_ext} -e 's%<a href="([^/]+)\.html">%<a href="doc/\1.html">%g' \
|
${sed_ext} -e 's%<a href="([^/]+)\.html">%<a href="doc/\1.html">%g' \
|
||||||
|
-e 's%<a href="'"${base_url}"'">%<a href="index.html">%g' \
|
||||||
|
-e 's%<a href="'"${base_url}"'%<a href="%g' \
|
||||||
< "${output_dir}/doc/index.html" > "${output_dir}/index.html"
|
< "${output_dir}/doc/index.html" > "${output_dir}/index.html"
|
||||||
rm "${output_dir}/doc/index.html"
|
rm "${output_dir}/doc/index.html"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user