mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-26 21:03:58 -06:00
Website improvements for book (#137)
This commit is contained in:
committed by
GitHub
parent
f2ac5a37f7
commit
b5491096b0
@@ -4,5 +4,15 @@ local removeWidth = function(s) return s:gsub('width="%d+"', '') end
|
||||
local removeMaxWidth = function(s) return s:gsub(' max-width: %d+px;', '') end
|
||||
local removeFixedSettings = function(s) return removeMaxWidth(removeWidth(removeHeight(s))) end
|
||||
local process = filter{removeFixedSettings}
|
||||
local domfilter = require "make4ht-domfilter"
|
||||
|
||||
|
||||
filter_settings "collapsetoc" {
|
||||
toc_query = "nav.TOC"
|
||||
}
|
||||
|
||||
local domprocess = domfilter{"collapsetoc"}
|
||||
Make:latexmk {}
|
||||
-- Make:htlatex {}
|
||||
Make:match("html$",process)
|
||||
Make:match("html$",domprocess)
|
||||
|
||||
Reference in New Issue
Block a user