Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1040)

Unified Diff: doc/support/generate.sh

Issue 1397173002: doc: Use relative links in generated index.html when possible (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: doc/support/generate.sh
diff --git a/doc/support/generate.sh b/doc/support/generate.sh
index f5785c6447c72eefc41618e656bd0a2ef88e91fb..f85e4d3c4e39e6f6c90edfc6a09b3a8d810002f2 100755
--- a/doc/support/generate.sh
+++ b/doc/support/generate.sh
@@ -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"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698