How do I publish documenter.jl-generated docs to a subdirectory of a custom subddomain?

My github organization is hoping to serve docs for two Julia packages on a subdomain, docs.circuitscape.org. If you visit that page, you’ll see that currently it just shows the docs for one package, Omniscape.jl, but we want to place the Omniscape.jl docs at docs.circuitscape.org/Omniscape.jl. The folder structure would be:

├── docs.circuitscape.org
│   ├── Omniscape.jl
│       ├── dev
│       └── stable
│   └── Circuitscape.jl
│       ├── dev
│       └── stable

Can we tell Documenter.jl to create the docs in a subdirectory, e.g. Omniscape.jl/? Or might this require creating a third repository for docs.circuitscape.org, then we can somehow set Documenter.jl in each of the package repositories to push the docs to the third repo in Omniscape.jl and Circuitscape.jl folders? Thanks!!

Figured this out by following @mortenpi’s suggestion. We now have a circuitscape.github.io repo in the Circuitscape org with a CNAME file.

Each repo can then have its own path in the URL. This works now:
https://docs.circuitscape.org/Omniscape.jl/dev/

2 Likes