-
Notifications
You must be signed in to change notification settings - Fork 115
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
How to download highlight.js in Windows #951
Comments
Hello, I can see your site at the address you pointed, is there something that doesn't work? The message about highlight can be ignored, if Franklin doesn't find it, it will use a fallback mechanism (instead of pre-rendering the code into HTML, the highlight JavaScript library is loaded on the browser to do the same thing) To answer your question, NodeJS.jl is the portable way of installing the lib, did you encounter an issue running the installation that way (calling the NodeJS command) or is it just that Franklin complains it can't find it? |
Ah you may not have set your prepath correctly, can you check? see here: https://franklinjl.org/workflow/deploy/ |
I'm about to board a plane, so not the most convenient time for a chat. It would be useful if you told me what failed (what error). Also if you were able to get the website to work locally (when you call In the latter case, can you try setting up a new sandbox site If it's just when you deploy your website that things don't work, I believe your There's no need for highlight.js nor mathjax, this is independent of the platform you're on. |
Dear Thibaut Lienart,
Thanks for providing me with your explanations. The maths is now working without using mathjax.
When I deploy by using serve() it works and the website is beautiful. But when I deploy to github than it does not deploy properly as you could see:
https://manaakiwhenua.github.io/SoilWater_ToolBox/HyPix/HyPix_Output
My GitHub repository is as follow:
https://github.com/manaakiwhenua/SoilWater_ToolBox
Below is the Config.md file:
<!--
Add here global page variables to use throughout your website.
-->
+++
author = "Joseph Pollacco, Jesus-0Fernandez"
mintoclevel = 2
# Add here files or directories that should be ignored by Franklin, otherwise
# these files might be copied and, if markdown, processed by Franklin which
# you might not want. Indicate directories by ending the name with a `/`.
# Base files such as LICENSE.md and README.md are ignored by default.
ignore = ["node_modules/"]
# RSS (the website_{title, descr, url} must be defined to get RSS)
generate_rss = true
website_title = "SoilWater ToolBox"
website_descr = "SoilWater_ToolBox"
website_url = https://manaakiwhenua.github.io/SoilWater_ToolBox/
prepath = "SoilWater_ToolBox"
+++
<!--
Add here global latex commands to use throughout your pages.
-->
\newcommand{\R}{\mathbb R}
\newcommand{\scal}[1]{\langle #1 \rangle}
Many thanks for all the help you may provide,
Joseph
From: Thibaut Lienart ***@***.***>
Sent: Tuesday, 29 March 2022 5:35 PM
To: tlienart/Franklin.jl ***@***.***>
Cc: Joseph Pollacco ***@***.***>; Author ***@***.***>
Subject: Re: [tlienart/Franklin.jl] How to download highlight.js in Windows (Issue #951)
I'm about to board a plane, so not the most convenient time for a chat.
It would be useful if you told me what failed (what error). Also if you were able to get the website to work locally (when you call serve) or not.
In the latter case, can you try setting up a new sandbox site newsite("testSite") in a separate folder, call serve() without having modified anything, and tell me whether the math and code show properly in your browser? (It should)
If it's just when you deploy your website that things don't work, I believe your prepath is not set correctly, eg if you want your landing page to be (...).io/SoilWater.jl/ you need to specify the prepath in config.md to prepath = "SoilWater.jl", if you do not do that, your paths to the CSS and JavaScript will be incorrect when you deploy and the math and code (and styling) wont work.
There's no need for highlight.js nor mathjax, this is independent of the platform you're on.
-
Reply to this email directly, view it on GitHub<https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.jparrowsec.cn%2Ftlienart%2FFranklin.jl%2Fissues%2F951%23issuecomment-1081392503&data=04%7C01%7Cpollaccoj%40landcareresearch.co.nz%7Cebc99c13c8844058eddd08da113d7aa4%7C43050530b3c74cd2a11cb826b2604b5b%7C0%7C0%7C637841252999147173%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=kFnOZ0wMCBjORlT51fYsYFuCJ5iRFXztT7aG2k84RV8%3D&reserved=0>, or unsubscribe<https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.jparrowsec.cn%2Fnotifications%2Funsubscribe-auth%2FACVGEEFNEUNBIJTR3LZK4B3VCKB65ANCNFSM5R5CCMQA&data=04%7C01%7Cpollaccoj%40landcareresearch.co.nz%7Cebc99c13c8844058eddd08da113d7aa4%7C43050530b3c74cd2a11cb826b2604b5b%7C0%7C0%7C637841252999147173%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=DGcCD9eEXkR6kw0hl8deEvB%2FUdDEp374JFtjKdf4uwY%3D&reserved=0>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
…________________________________
Please consider the environment before printing this email
Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails.
The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
|
I'll close this as I think we fixed the issues on the repo and the website is live |
Dear Thibaut,
A great thanks for your help the website is working well will need now to complete it.
Have a good easter,
Joseph
From: Thibaut Lienart ***@***.***>
Sent: Tuesday, 12 April 2022 6:59 PM
To: tlienart/Franklin.jl ***@***.***>
Cc: Joseph Pollacco ***@***.***>; Author ***@***.***>
Subject: Re: [tlienart/Franklin.jl] How to download highlight.js in Windows (Issue #951)
I'll close this as I think we fixed the issues on the repo and the website is live
-
Reply to this email directly, view it on GitHub<https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.jparrowsec.cn%2Ftlienart%2FFranklin.jl%2Fissues%2F951%23issuecomment-1096200040&data=04%7C01%7Cpollaccoj%40landcareresearch.co.nz%7C5824aa9e60ee4d326c6a08da1c51f979%7C43050530b3c74cd2a11cb826b2604b5b%7C0%7C0%7C637853435653835851%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=wTF6L9GbUYCvd%2BeFcfZ6udVS8dpNaMV%2BMKzIKudr0FM%3D&reserved=0>, or unsubscribe<https://aus01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.jparrowsec.cn%2Fnotifications%2Funsubscribe-auth%2FACVGEEFQWXNDZ36F2OBAE7LVEUNMRANCNFSM5R5CCMQA&data=04%7C01%7Cpollaccoj%40landcareresearch.co.nz%7C5824aa9e60ee4d326c6a08da1c51f979%7C43050530b3c74cd2a11cb826b2604b5b%7C0%7C0%7C637853435653992096%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=75mFPFY6uLP92GGdwmPKl3IcWxwSOoq9%2BaXXA4K%2BiPQ%3D&reserved=0>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
…________________________________
Please consider the environment before printing this email
Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails.
The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
|
Hi,
I am trying to deploy my docs in my SoilWater-ToolBox
I migrated from GitHub pages to Franklin.jl . I think that one of the problems is that I have not installed highlight.js
The problem is that the example you give seems to only work on Linux and not on Windows. Would you kindly let me know how to download highlight.js in Windows?
julia> using NodeJS julia> run(
sudo $(npm_cmd()) install highlight.js)
Many thanks for any help you may provide,
Joseph
The text was updated successfully, but these errors were encountered: