How to reuse parent Project.toml information

In the makedocs() call of docs/Project.toml, how do I use package information, say the authors, from its Project.toml?

MWE:

using MyPackage
using Documenter

makedocs(;
    modules = [MyPackage],
    authors = get_author_info(MyPackage),
    repo = "...",
)

I’m trying to see how to achieve the functionality of get_author_info() or something to that effect. I know that Pkg.jl has the project() and dependencies() functions, but I couldn’t really figure out how to get them to do this. (Also, they’re experimental, so I’m not sure how reliable they would be.)

Do you mean something like this in make.jl?

You can then reuse those variables in makedocs.

1 Like

Yes exactly, I was just hoping there was a neater way to do it lol. But I didn’t know about this one, and that’ll work too!