OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright 2015 The Crashpad Authors. All rights reserved. | 3 # Copyright 2015 The Crashpad Authors. All rights reserved. |
4 # | 4 # |
5 # Licensed under the Apache License, Version 2.0 (the "License"); | 5 # Licensed under the Apache License, Version 2.0 (the "License"); |
6 # you may not use this file except in compliance with the License. | 6 # you may not use this file except in compliance with the License. |
7 # You may obtain a copy of the License at | 7 # You may obtain a copy of the License at |
8 # | 8 # |
9 # http://www.apache.org/licenses/LICENSE-2.0 | 9 # http://www.apache.org/licenses/LICENSE-2.0 |
10 # | 10 # |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 for subdir in doc doxygen man ; do | 37 for subdir in doc doxygen man ; do |
38 output_subdir="${output_dir}/${subdir}" | 38 output_subdir="${output_dir}/${subdir}" |
39 maybe_mkdir "${output_subdir}" | 39 maybe_mkdir "${output_subdir}" |
40 rsync -Ilr --delete --exclude .git "out/doc/${subdir}/html/" \ | 40 rsync -Ilr --delete --exclude .git "out/doc/${subdir}/html/" \ |
41 "${output_subdir}/" | 41 "${output_subdir}/" |
42 done | 42 done |
43 | 43 |
44 # Move doc/index.html to index.html, adjusting relative paths to other files in | 44 # Move doc/index.html to index.html, adjusting relative paths to other files in |
45 # doc. | 45 # doc. |
46 base_url=https://crashpad-home.appspot.com/ | 46 base_url=https://crashpad.chromium.org/ |
47 ${sed_ext} -e 's%<a href="([^/]+)\.html">%<a href="doc/\1.html">%g' \ | 47 ${sed_ext} -e 's%<a href="([^/]+)\.html">%<a href="doc/\1.html">%g' \ |
48 -e 's%<a href="'"${base_url}"'">%<a href="index.html">%g' \ | 48 -e 's%<a href="'"${base_url}"'">%<a href="index.html">%g' \ |
49 -e 's%<a href="'"${base_url}"'%<a href="%g' \ | 49 -e 's%<a href="'"${base_url}"'%<a href="%g' \ |
50 < "${output_dir}/doc/index.html" > "${output_dir}/index.html" | 50 < "${output_dir}/doc/index.html" > "${output_dir}/index.html" |
51 rm "${output_dir}/doc/index.html" | 51 rm "${output_dir}/doc/index.html" |
52 | 52 |
53 # Ensure a favicon exists at the root since the browser will always request it. | 53 # Ensure a favicon exists at the root since the browser will always request it. |
54 cp doc/favicon.ico "${output_dir}/" | 54 cp doc/favicon.ico "${output_dir}/" |
55 | 55 |
56 # Create man/index.html | 56 # Create man/index.html |
(...skipping 13 matching lines...) Expand all Loading... |
70 cat >> index.html << __EOF__ | 70 cat >> index.html << __EOF__ |
71 <li> | 71 <li> |
72 <a href="${html_file}">${basename}</a> | 72 <a href="${html_file}">${basename}</a> |
73 </li> | 73 </li> |
74 __EOF__ | 74 __EOF__ |
75 done | 75 done |
76 | 76 |
77 cat >> index.html << __EOF__ | 77 cat >> index.html << __EOF__ |
78 </ul> | 78 </ul> |
79 __EOF__ | 79 __EOF__ |
OLD | NEW |