-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building for monorepo doesn't fully work? #186
Comments
I had never tested on a monorepo with multiple documentation builds so I probably missed something in the deployment pipeline. There are a couple of issues here.
|
because we call |
So, https://poisotlab.github.io/SpeciesDistributionToolkit.jl/SDeMo/dev/ works fine. The stable version, https://poisotlab.github.io/SpeciesDistributionToolkit.jl/SDeMo/stable/, does not. The docs are indeed in the The reason why the assets don't work is that they are loaded from the wrong folder: <script type="module" src="[/SpeciesDistributionToolkit.jl/SDeMo/assets/app.CVqJZCVh.js](view-source:https://poisotlab.github.io/SpeciesDistributionToolkit.jl/SDeMo/assets/app.CVqJZCVh.js)"></script> Note that the |
This bit also tripped me up, because when using regular Documenter, it worked:
|
I think you can pass a deploy config in a kwarg to both MarkdownVitepress and deploy docs for now, but I'll patch the constructor so you can pass deploydocs kwargs in too |
Thanks! Can you clarify what you mean by "a deploy config"? I'm kinda lost as to what precisely that is. |
One additional info: when correcting the path manually, the website is broken because of 404 detection. See e.g. https://poisotlab.github.io/SpeciesDistributionToolkit.jl/SDeMo/v0.0.6/models I fixed the path, and it works, but the page flashes briefly before the 404 page shows up -- this is the case for any page that isn't the index. |
I am migrating the docs for PoisotLab/SpeciesDistributionToolkit.jl to DocumenterVitepress - it's working for the main package, and I can build and preview the versions for PR for all packages nested under it, but the version of the documentation that are generated from a tag do not work.
Specifically, the site for a tagged version is pushed to
PkgName/vXXX/final_site
ongh-pages
:Here is the part of
docs/make.jl
that should publish the website for a sub-package to its own folder:https://github.com/PoisotLab/SpeciesDistributionToolkit.jl/blob/main/SDeMo/docs/make.jl#L39-L45
Again, this works for the
/dev/
version, and for the/previews/PRXXX/
versions, but the tagged one specifically do not work.The fact that it goes into
final_site
is something I can easily fix by manually checking outgh-pages
, but the other issue is that the path to the assets is wrong -- and so I need to manually modify (/sed
) my way through the generated HTML to fix the path.Is this something in the documentation that I am missing?
The text was updated successfully, but these errors were encountered: