Fix build issue

This commit is contained in:
Hendrik Kleinwaechter
2023-07-11 09:55:28 +02:00
parent d5889a67a1
commit 1ac6c7b196
2 changed files with 3 additions and 1 deletions

View File

@@ -226,7 +226,7 @@ release_sans_serif: build_sans_serif_pdf build_sans_serif_ebook | make_release_d
website: website:
rm -rf $(WEBSITE_DIR) rm -rf $(WEBSITE_DIR)
make4ht -c website.cfg -a debug -uf html5+tidy+common_domfilters+dvisvgm_hashes -d $(WEBSITE_DIR) book.tex 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|<title></title>|<title>The Sourdough Framework</title>|g' $(WEBSITE_DIR)/index.html sed -r -i -e 's|<title></title>|<title>The Sourdough Framework</title>|g' $(WEBSITE_DIR)/index.html
# Debug Stuff from now on # Debug Stuff from now on

View File

@@ -59,6 +59,8 @@ class ModifyBuild
elements.each do |n| elements.each do |n|
chapter_number_or_nothing = n.children[0].text.strip chapter_number_or_nothing = n.children[0].text.strip
hyperlink_node = n.children[1] hyperlink_node = n.children[1]
next if hyperlink_node.nil?
# remove unneeded text and merge into single a tag # remove unneeded text and merge into single a tag
n.children[0].remove n.children[0].remove
link_text = hyperlink_node.content link_text = hyperlink_node.content