diff --git a/scripts/deploy-ebook-to-www b/scripts/deploy-ebook-to-www index d555312d..622d0833 100755 --- a/scripts/deploy-ebook-to-www +++ b/scripts/deploy-ebook-to-www @@ -281,6 +281,9 @@ do # Recompose the epub into a single file, but put it outside of the epub src for now so we don't stomp on it with the following sections. # We do this first because the tweaks below shouldn't apply to the single-page file se recompose-epub --xhtml --output "${workDir}"/single-page.xhtml --extra-css-file="${webRoot}/www/css/web.css" "${workDir}" + + # Adjust sponsored links in the colophon + sed --in-place 's|

(.+?)" "${workDir}"/src/epub/content.opf | sed --regexp-extended "s/<[^>]+?>//g") find "${workDir}"/src/epub \( -type d -name .git -prune \) -o -type f -name "*.xhtml" -print0 | xargs -0 sed --in-place --regexp-extended "s||<title>${workTitle} - |g" + # Adjust sponsored links in the colophon + sed --in-place 's|<p><a href="http|<p><a rel="nofollow" href="http|g' "${workDir}"/src/epub/text/colophon.xhtml + # Done adding compatibility! if [ "${recompose}" = "true" ]; then