mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-14 15:11:11 -06:00
Fix build issue
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user