Skip to content
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

Closed
ghost opened this issue Mar 29, 2022 · 7 comments
Closed

How to download highlight.js in Windows #951

ghost opened this issue Mar 29, 2022 · 7 comments

Comments

@ghost
Copy link

ghost commented Mar 29, 2022

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

@tlienart
Copy link
Owner

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?

@tlienart
Copy link
Owner

Ah you may not have set your prepath correctly, can you check? see here: https://franklinjl.org/workflow/deploy/

@ghost
Copy link
Author

ghost commented Mar 29, 2022 via email

@tlienart
Copy link
Owner

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.

@ghost
Copy link
Author

ghost commented Mar 30, 2022 via email

@tlienart
Copy link
Owner

I'll close this as I think we fixed the issues on the repo and the website is live

@ghost
Copy link
Author

ghost commented Apr 12, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant