From: Adrian C. <Adr...@em...> - 2014-09-10 13:36:15
|
I'm using the zimwriterfs tool (built from the repositories) to generate a ZIM file from a folder of HTML files. The script seems to work perfectly, with the exception that paths to non-HTML files (images, CSS files and JavaScript files) are messed up. I've reduced the sources to the minimum, to try to reproduce the issue loading CSS files. So I have the following tree: - source-folder/ - index.html - css/ - main.css - media/ - icon.png index.html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Help</title> <link rel="stylesheet" type="text/css" href="css/main.css"></link> </head> <body> <p>Text.</p> </body> </html> main.css: p { font-weight: bold; } Then I run: ./kiwix-other/zimwriterfs/zimwriterfs --welcome=index.html --favicon=media/icon.png --language=en --title=Help --description=Description --creator=Creator --publisher=Punlisher source-folder help-$(date +"%s").zim The paragraph of the only page of the resulting ZIM file does not use bold font. If I put the CSS in the page itself it does work. Any ideas of what I am doing wrong? CONFIDENTIALITY NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. |