It is quite common to find broken Julia package documentation links, like this one (see docs stable link in the page):
Why is this and is there a workaround?
It is quite common to find broken Julia package documentation links, like this one (see docs stable link in the page):
Why is this and is there a workaround?
I donât have an immediate fix or workaround, but hereâs the whyâŚ
Creating documentation requires running code. Code that might break. And hosting the generated website somewhere. Hosting that might go away. Both things require some maintenance.
In this case, its docs are pointing at JuliaHubâs doc generation service: JuliaHub
If you click the little â button, you can get information about what happened when it tried to build. Clicking the logs shows:
â Error: `using Tk did not succeed.`
â exception =
â LoadError: InitError: Tk.TclError("error initializing Tk: no display name and no \$DISPLAY environment variable")
â during initialization of module Tk
â in expression starting at /juliateam/.julia/packages/Tk/c8ZUf/src/Tk.jl:94
â @ DocumentationGenerator ~/.julia/packages/DocumentationGenerator/12evC/src/DocumentationGenerator.jl:33
In other words, Tk.jl doesnât like running in a âheadlessâ environment that is common to CI systems and doc building services.
Not applicable in this case but
a common reason docs are often broken is PkgTemplate.jl will insert doclinks for you
but setting up docs to be hosted on github pages requires manual work of pushing keys.
And itâs quite fiddly as you might mistakenly insert newlines etc (though DocumenterTools.jl tries as hard as possible to make it easy, and it definately makes it easier)
So the default state of docs links on new packages is broken.
Older packages had docs working on TravisCI that broke when TravisCI went away
Thank you for your in-depth responses.
Would it be a good idea to always create a backup pdf file? At least we would have something to chewâŚ