From 1ac6c7b196101654bb9948f4e386f707d9916563 Mon Sep 17 00:00:00 2001 From: Hendrik Kleinwaechter Date: Tue, 11 Jul 2023 09:55:28 +0200 Subject: [PATCH] Fix build issue --- book/makefile | 2 +- website/modify_build.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/book/makefile b/book/makefile index aca79e4..95384ab 100644 --- a/book/makefile +++ b/book/makefile @@ -226,7 +226,7 @@ release_sans_serif: build_sans_serif_pdf build_sans_serif_ebook | make_release_d website: rm -rf $(WEBSITE_DIR) make4ht -c website.cfg -a debug -uf html5+tidy+common_domfilters+dvisvgm_hashes -d $(WEBSITE_DIR) book.tex - mv $(WEBSITE_DIR)/book.html $(WEBSITE_DIR)/index.html + cp $(WEBSITE_DIR)/book.html $(WEBSITE_DIR)/index.html sed -r -i -e 's||The Sourdough Framework|g' $(WEBSITE_DIR)/index.html # Debug Stuff from now on diff --git a/website/modify_build.rb b/website/modify_build.rb index 6f65a93..42d7dee 100644 --- a/website/modify_build.rb +++ b/website/modify_build.rb @@ -59,6 +59,8 @@ class ModifyBuild elements.each do |n| chapter_number_or_nothing = n.children[0].text.strip hyperlink_node = n.children[1] + next if hyperlink_node.nil? + # remove unneeded text and merge into single a tag n.children[0].remove link_text = hyperlink_node.content