From 023a84a726e12750e6c706054433b8ebb708f258 Mon Sep 17 00:00:00 2001 From: Andrew Scholer Date: Tue, 31 Dec 2024 08:42:27 -0800 Subject: [PATCH] EPUB: add css.map file to the manifest --- pretext/pretext.py | 6 ++++-- xsl/pretext-epub.xsl | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pretext/pretext.py b/pretext/pretext.py index ed4c736e5..b7026cf2d 100755 --- a/pretext/pretext.py +++ b/pretext/pretext.py @@ -3137,10 +3137,12 @@ def epub(xml_source, pub_file, out_file, dest_dir, math_format, stringparams): # All styles are baked into one of these two files if math_format == "kindle": css = os.path.join(get_ptx_xsl_path(), "..", "css", "dist", "kindle.css") - shutil.copy2(css, css_dir) + css_map = os.path.join(get_ptx_xsl_path(), "..", "css", "dist", "kindle.css.map") if math_format == "svg": css = os.path.join(get_ptx_xsl_path(), "..", "css", "dist", "epub.css") - shutil.copy2(css, css_dir) + css_map = os.path.join(get_ptx_xsl_path(), "..", "css", "dist", "epub.css.map") + shutil.copy2(css, css_dir) + shutil.copy2(css_map, css_dir) # EPUB Cover File diff --git a/xsl/pretext-epub.xsl b/xsl/pretext-epub.xsl index 8fb250940..b5f91849b 100644 --- a/xsl/pretext-epub.xsl +++ b/xsl/pretext-epub.xsl @@ -442,9 +442,11 @@ + +