Hi!
For KernelFunctions.jl, we are generating examples via Literate.jl, pass them to Documenter.jl and we would like that each example has its own environment/Project.toml.
The problem of course is that when running makedocs it is not possible to use different environments. When activating one environment after another, the packages would stay loaded and this would create some clash.
Has anyone tried to solve this or even succeeded?
That’s what we had in mind, but it’s quite unclear how one should go about it.
Each “example” process should call makedocs specifically on the example.md generated by Literate and then there would be one common makedocs call to build the rest of the docs and combine it with the examples which have now been run?
I could not find anything on how to fine tune Documenter generation in the docs.
Thanks! That’s already one important step, but this does not solve the whole problem.
The output for the code with the Literate.markdown() command will be @example blocks right?
And these blocks will be effectively run by Documenter (via makedocs), but there will be the same problem of having only one process to run them all.