-
Notifications
You must be signed in to change notification settings - Fork 25
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
Infinite loop with Literate #101
Comments
Hello Kevin! Your link doesn't work for me but this is fairly easy to debug, basically LiveServer by default looks at stuff and, if it sees changes, triggers. Now if the trigger generates files that LiveServer is watching, it will re-trigger whence the infinite loop. This typically happens when your To avoid this, you just need to see what is being generated with a pass (here a pass of In this case you just need to (1) get the generated stuff to be generated in a folder (2) skip that folder with the Hope that makes sense, otherwise consider adding me to your repo and I'll have a look. |
Whoops - sorry. I merged and deleted that branch 🤦 . Here's the link to the merge commit (and I updated it above). Thanks, that works! I modified the folder structure to simplify where outputs go. Took a bit of fiddling, because I read the docs for
And tried Also, the |
hahaha! well I'm glad you figured it out :) |
I have a package where I'm trying to generate some pages with Literate.jl, while most pages use regular markdown (link to branch), but when I run
servedocs()
, it keeps looping to rebuild even without changing any of the files.This was mentioned in #86 and #68 (comment) but is supposed to be fixed as of #85 (and I'm on v0.3.6).
Here's what I have in
make.jl
to build the markdown with Literate:This runs correctly with
julia --project=docs docs/make.jl
and deploys correctly with github actions. If I comment out these lines, it works fine with LiveServer. Otherwise:I'm sure I'm doing this wrong, but I can't figure out what it is
The text was updated successfully, but these errors were encountered: