-
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
Support Pluto notebooks in Franklin #813
Comments
@tlienart Lets discuss this integration a bit more |
My question here is, |
This is not the right path in that there will be a mismatch between local and remote. Let's say however that you already have a local workflow that generates HTML files from Pluto notebooks. Let's say that such a file is at path
the Note: I'm not going to discuss this much more, I know this is a wanted feature and am willing to work on it. It's not entirely trivial and will take me a while to do well. |
@VarLad take a look at the source code for https://github.com/mitmath/18S191, if you have any questions, ask me on zulip |
I created an example repo with just basic Franklin and one Pluto notebook, and then converted the notebook to HTML using
https://github.com/StatisticalMice/franklin-pluto-demo The 'Penguins' menu item shows the Pluto notebook in HTML, but without Franklin. The 'Penguins 2' menu item tries to use the |
Right, so what you can try for experimentation is to modify the
Then in the layout you'd have blocks like
And in configmd you need to add the default So basically that will do the same as usual in all cases except in the pluto case. Once that works you can start fiddling with what gets included or not to get the appropriate layout |
I tried experimentation as mentioned by you @tlienart for adding pluto notebook. But it was turning out to be a hassle. In head.html I used
I have earlier used this method to add cytoscape.js functionality in a site. But I simply was not able to get it. Easier way to do that is just to add the html in the github repo and just point a link to that. But that is a cheap way to do this. Best and quickest way right now that I implemented was using PlutoStaticHTML.jl and add mathjax using |
So I had a quick go at this for my personal website and while not perfect yet it is quite nice. Using JuliaPluto/PlutoSliderServer.jl#127 + a github action like: I generate from:
and then franklin just copies those files over. I then use the generated json to generate a talks page https://github.com/vchuravy/vchuravy.github.io/blob/c6e13351c86f5d1717d3c864d7cda92b022d9186/utils.jl#L143 x-ref: #813 What I would love be able to do is:
|
Following a discussion with Fons, here are the short notes:
.jl
files that can be recognised as Pluto files (is_pluto_notebook
) and if they are, be treated as such (provided Pluto is loaded, we can use Requires for this check)The text was updated successfully, but these errors were encountered: