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:
Mark Mentovai 2015-10-09 15:50:38 -04:00
parent fd40ebbc72
commit 2bee026ca1

View File

@ -43,7 +43,10 @@ done
# Move doc/index.html to index.html, adjusting relative paths to other files in
# doc.
base_url=https://crashpad-home.appspot.com/
${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"
rm "${output_dir}/doc/index.html"