-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug in localinstall.sh leads to css files note found #86
Comments
Some previewers use fonts from bootstrap (glyphicons) which have to be installed locally, too. |
Thanks for the fix. I've added it to the develop branch. If you'd like to propose changes/make a PR for the glyphicons, please do. |
Hi Jim,
Although I am not sure if the licensing of glyphicons allows for a local download of the icons. This is maybe something that should be sorted before using the patch. If you confirm that there are no legal issues arising I can create a PR. |
Thanks. While I'm not a lawyer, I think it's OK as we're using the subset that is part of bootstrap which is available for free - e.g. according to https://www.w3schools.com/bootstrap/bootstrap_ref_comp_glyphs.asp . |
When I use the localinstall.sh script to full install the previewers locally on our servers the css files are located in the folder css but the path in the html files is set to lib (line 28). This leads to the css files not being found and some/most previewers not displaying the content correctly.
Possible fix is:
@@ -25,7 +25,7 @@
cat urls_js.txt
echo Downloading local copies of remote CSS files:
-sed -n 's/.<link.href="(http[^"])"./\1/p' .html | sort -u | sed -n 's/^(./)(.)/sed -i \x27s,\0,lib/\2,\x27 .html/p' > replace_css.sh
+sed -n 's/.<link.href="(http[^"])"./\1/p' .html | sort -u | sed -n 's/^(./)(.)/sed -i \x27s,\0,css/\2,\x27 .html/p' > replace_css.sh
sed -n 's/.<link.href="(http[^"])"./\1/p' *.html | sort -u > urls_css.txt
source replace_css.sh
cat urls_css.txt
@@ -67,4 +67,4 @@
The text was updated successfully, but these errors were encountered: