JuliaDocs / DocumentationGenerator.jl

MIT License
21 stars 7 forks source link

Documenter docs failed for Sunny 0.5.5 #208

Closed vdayanand closed 12 months ago

vdayanand commented 1 year ago
ERROR: LoadError: 
ArgumentError: Unable to automatically determine remote for main repo.
> `repo` is not set, and makedocs is not in a Git repository.
Configure `repo` and/or `remotes` appropriately, or set `remotes = nothing` to disable remote source
links altogether (e.g. if not working in a Git repository).
  repo: nothing
Stacktrace:
  [1] interpret_repo_and_remotes(; root::String, repo::String, remotes::Dict{Any, Any})
    @ Documenter ~/.julia/packages/Documenter/9kOxY/src/documents.jl:644
  [2] interpret_repo_and_remotes
    @ ~/.julia/packages/Documenter/9kOxY/src/documents.jl:485 [inlined]
  [3] Documenter.Document(; root::String, source::String, build::String, workdir::Symbol, format::Documenter.HTMLWriter.HTML, clean::Bool, doctest::Bool, linkcheck::Bool, linkcheck_ignore::Vector{Any}, linkcheck_timeout::Int64, checkdocs::Symbol, doctestfilters::Vector{Regex}, warnonly::Vector{Symbol}, modules::Vector{Module}, pages::Vector{Any}, pagesonly::Bool, expandfirst::Vector{String}, plugins::Vector{Documenter.Plugin}, repo::String, remotes::Dict{Any, Any}, sitename::String, authors::String, version::String, highlightsig::Bool, draft::Bool, others::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Documenter ~/.julia/packages/Documenter/9kOxY/src/documents.jl:415
  [4] #makedocs#77
    @ ~/.julia/packages/Documenter/9kOxY/src/makedocs.jl:242 [inlined]
  [5] top-level scope
    @ none:1
  [6] eval
    @ ./boot.jl:370 [inlined]
  [7] eval
    @ ./Base.jl:68 [inlined]
  [8] (::Main.anonymous.var"#3#4"{Expr})()
    @ Main.anonymous ~/.julia/dev/DocumentationGenerator/src/rundocumenter.jl:52
  [9] cd(f::Main.anonymous.var"#3#4"{Expr}, dir::String)
    @ Base.Filesystem ./file.jl:112
 [10] main(args::Vector{String})
    @ Main.anonymous ~/.julia/dev/DocumentationGenerator/src/rundocumenter.jl:49
 [11] top-level scope
    @ ~/.julia/dev/DocumentationGenerator/src/rundocumenter.jl:56
in expression starting at /Users/vdayanand/.julia/dev/DocumentationGenerator/src/rundocumenter.jl:1
┌ Error: Failed to evaluate specified make.jl-file.
│   exception =
│    failed process: Process(`/Applications/Julia-1.9.app/Contents/Resources/julia/bin/julia --project=/Users/vdayanand/.julia/packages/Sunny/pnbBZ/docs --compiled-modules=no --pkgimages=no -O0 /Users/vdayanand/.julia/dev/DocumentationGenerator/src/rundocumenter.jl /Users/vdayanand/.julia/packages/Sunny/pnbBZ/ /Users/vdayanand/.julia/packages/Sunny/pnbBZ/docs/make.jl`, ProcessExited(1)) [1]
mortenpi commented 1 year ago

This looks like it's due to the new link logic in Documenter 1.0. I think we need to figure out how to "fix up" repo and remotes when we rewrite the make.j. Usually it would automatically determine the repo if the package is checked out as a Git repo, but I guess that is not the case for us here.

pfitzseb commented 1 year ago

Yes, we're Pkg.adding packages, so they're not in a git repo. We can probably just set repo manually though? After all, that info is available in the registry.