I’m using Documenter.jl to build my docs for a package. I have a new version of my package on a test branch and I want to build the docs locally. I try to dev the local version of the package (on the test branch) but every time I run julia --project=. make.jl it “updates” to the released version. Is there a local testing mode or something? I can’t seem to figure out how to do this from the Documenter.jl website.
(I try to keep a pretty vanilla setup and follow the structure and flow Documenter recommends, like how to set up a make.jl file.)
Documenter doesn’t do any package operations so sounds like your setup is a bit strange. What are you doing in make.jl? How are you deving the locally checked out version?
This is probably where I am misunderstanding Documenter. I am activating my docs environment and deving the local repository. I’m guessing this doesn’t really do anything.
julia> ]activate docs
julia> dev .
My make file is the following. (I am commenting out deploydocs() when trying these tests).
No reason to activate the docs dir if you have a Project.toml file similar to this one:
They point is, Documenter must appear in the [extras] section and in the test target.
And LiveServer and TestEnv should be installed in the global environment.
Just do:
using TestEnv; TestEnv.activate()
and
using LiveServer
servedocs()
LiveServer will call make.jl itself.
Also no need to mess with the LOAD_PATH and no reason to dev your package for writing the documentation (well, you need to have it checked out with git).
Just something for me to reproduce your problem, because what you are saying you are doing doesn’t match the behavior you are describing as far as I can tell.