-
Notifications
You must be signed in to change notification settings - Fork 17
Canonize all the things #59
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
Comments
Canonization experiment updatesFollowing up from: JuliaAstro/AstroAngles.jl#15 (comment) Ok, wasn't too bad. Here are the changes:
I then made a test change in the original docs and it seemed to reflect on the the MultiDocumenter site fine after re-running the doc build. Is my understanding correct that our cron job will help keep changes like this in JuliaAstro proper in sync automatically?
Are there any remaining bits to consider? |
Nvm about the redirects, it was causing MultiDocumenter to complain, so I undid it. I'm actually thinking of taking a page out of ArviZ.jl's book now and just turning off gh-pages so that the MultiDocumenter version is the only source for docs. I imagine that might help with SEO too, but wanted to check in about how folks feel about this first Following up on this, I've tagged people that seem to still be active in JuliaAstro and are maintaining their respective packages. If you've been tagged, could you respond with whether you are fine or not with us making this change, i.e., transitioning from Apologies if I missed someone, or if you are no longer the point person for maintenance! |
Howdy again all, just putting a gentle ping here about the above. I'll also be sure to add an item in our community call tomorrow if folks would like to discuss anything there |
I feel like I've seen you mention this in a few repos but I'm not clear on what the benefit of this change is. It would be nice to have a short (~paragraph) pitch that explains the pros and cons of this approach, both for current maintainers to review but also for the future to recall why the choice was made. |
Hey Chris, good idea! Copying an updated tl;dr here from slack: Would it make sense to disable our repo-specific gh-page doc deploys so that our main site would essentially serve as our "centralized source of truth"? I'm looking at SciML and ArviZ.jl for prior art. As a consequence:
I think these changes seem reasonable for the benefit of having a unified source for finding documentation under the JuliaAstro umbrella, but wanted to get other folks' feedback too before making any changes |
Thanks for the overview! It looks like arviz is also using a cron job to rebuild the documentation once per day (see here). Are JuliaAstro/AstroAngles.jl#15 and JuliaAstro/Spectra.jl#18 your example implementations for "client" packages? I personally find having ~instant docs updates on pushes to the main branch to be a very nice feature, particularly when diagnosing CI-specific docs issues (deploying push previews also helps with this for open PRs). To clarify, is your idea to stop building documentation on the "client" packages altogether and only build and deploy the docs on the MultiDocumenter site with the cron job? I wonder if there's a middle ground, where "stable" docs (for tagged and released versions) link to the JuliaAstro site, but we still build repo-specific docs on pushes to the main branch for the "dev" docs. In this case, we would still be building docs on each repo, but we would change the "stable" links in the readmes to direct to the main JuliaAstro docs. Arviz seems to still be building documentation and hosting gh-pages branches on their individual repos (for example, see here) so that the "dev" docs are still built and accessible (see here). I am hesitant to give up the automatic building of the "dev" docs entirely, but I have no substantive issue with changing the "stable" docs to link to the JuliaAstro hosted docs. |
Sweet! Yep, nail on the head. Thanks for taking the time to give your feedback, Chris. I hadn't considered the middle ground option and think it's a really good point. I'd be all for having the stable docs point to the JuliaAstro site while keeping the dev docs built on a per-repo basis for testing and such |
Mostly recording this here for future self: Following up from our community meeting, it seemed like the middle ground approach suggested by Chris was received positively. Below is a running list of my attempts and failures to try and make this happen, using Spectra.jl as our playground:
|
Okie doke, think I'm landing on a pretty decent approach here. @abhro @cgarling, following up on our discussion from yesterday, does this seem reasonable/minimally disruptive to you? Essentially, just the tagged releases for a given JuliaAstro package would show up in the sidebar on the JuliaAstro site, and a dedicated dev docs link would still exist as usual. Example:
This would be accomplished by just passing an explicit There is still the issue of having duplicate dev docs built on the JuliaAstro site (e.g., https://juliaastro.org/Spectra/dev/), but maybe that's not so bad if we don't explicitly point to it |
Maybe we can try it as some sort of command-line argument to docs/make.jl? We can pass in something like For having a duplicate of dev on the main juliaastro.org website, we can also probably add to the actions that just deletes the dev folders in all of the built docs. |
Thanks Abhro! Here's a go at the dev-only option. Since the dev and stable docs both exist in the Deleting the dev folder on the JuliaAstro/MultiDocumenter.jl side seems staightforward enough though:
I just did it manually here to try things out, and will start looking into automating this with an action next Update: Ok, should be up now. Can generalize this to all JuliaAstro packages next after updating their version selectors |
Hmm. I think I may have misunderstood how MultiDocumenter does its build process. I thought it ran an And then, for the Spectra.jl website itself, it would only have a single version in its own gh-pages branch for dev. But if MultiDocumenter only does a |
Ah, gotcha. Yea, my understanding is that |
MultiDocumenter only sees built HTML from gh-pages, it doesn't even have any (native) control over versioning. |
You can pre clone to a known path and edit the contents of the repo though, and just point MultiDocRef there for the clonedir. Then it shouldn't clone... |
Thanks for confirming, Anshul! It seems like just i) removing the dev docs, and is sufficient enough for our purposes then. I've moved the first step to the make file instead of a GitHub action now, and can start applying the second step to our other JuliaAstro packages if that sounds good to folks? |
Dope, will start making moves |
Uh oh!
There was an error while loading. Please reload this page.
Just opening this tracking issue for moving links and such under the JuliaAstro MultiDocumenter umbrella
Inspo: SciML/SciMLDocs#53
In progress
Complete
To discuss
(Canonize ERFA.jl#71)
The text was updated successfully, but these errors were encountered: