diff --git a/book/cover/cover.tex b/book/cover/cover.tex index 2137420..db0ad81 100644 --- a/book/cover/cover.tex +++ b/book/cover/cover.tex @@ -24,7 +24,6 @@ {\noindent The full source code for the book is available at \\ \url{https://github.com/hendricius/the-sourdough-framework/} under MIT license. Do not hesitate to report mistakes or sug\-gestions for -improvements. A hardcover version of the book, featuring a much nicer -design, is also available. More information here: +improvements. A hardcover version of the book is also available. More information here: \url{https://www.breadco.de/hardcover-book}}\\[\baselineskip] } diff --git a/website/_bundle_install_done b/website/_bundle_install_done new file mode 100644 index 0000000..e69de29 diff --git a/website/assets/cover-page.jpg b/website/assets/cover-page.jpg new file mode 100644 index 0000000..f39c29b Binary files /dev/null and b/website/assets/cover-page.jpg differ diff --git a/website/modify_build.rb b/website/modify_build.rb index cd5b5f3..6cc6ad9 100644 --- a/website/modify_build.rb +++ b/website/modify_build.rb @@ -166,20 +166,6 @@ class ModifyBuild doc.to_html end - # The cover page should have some additional content and allow the user to - # click the book cover in order to start reading. - def fix_cover_page(text) - doc = build_doc(text) - body = doc.css("body")[0] - content = doc.css("body > .titlepage")[0] - menu = doc.css("body > .menu")[0] - cover = content.css(".center")[0] - cover_html = cover.to_html - cover.inner_html = "#{cover_html}" - body.inner_html = "#{menu} #{content}" - doc.to_html - end - # By default the menu is not made for mobile devices. This adds mobile # capabilities to the menu def fix_menu(text) @@ -213,11 +199,17 @@ class ModifyBuild def fix_cover_page(text) doc = build_doc(text) body = doc.css("body")[0] - content = doc.css("body > .titlepage")[0] - menu = doc.css("body > .menu")[0] - cover = content.css(".center")[0] - cover_html = cover.to_html - cover.inner_html = "#{cover_html}" + version = doc.css("body i")[0].text + content = doc.css("body > .main-content")[0] + menu = doc.css("body > nav")[0] + content = %Q{ +
+ + +

#{version}

+
+
+ } body.inner_html = "#{menu} #{content}" doc.to_html end