Use MultiDocumenter.jl#43
Conversation
| push_preview = true, | ||
| branch = "master", | ||
| devbranch = "source" | ||
| devbranch = "multidocumenter", |
There was a problem hiding this comment.
Should this be changed back to devbranch = "source" before merging?
There was a problem hiding this comment.
You read my mind. Wasn't sure how that would play with PR doc previews, but totally happy to switch it back if it looks good to you!
|
Wow @icweaver , this is amazing! Thank you for setting this up! |
| docs = [ | ||
| # We also add JuliaAstro's own generated pages | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(@__DIR__, "build"), | ||
| path = "docs", | ||
| name = "JuliaAstro", | ||
| fix_canonical_url = false, | ||
| ), | ||
| MultiDocumenter.DropdownNav( | ||
| "Time, Coordinates, & Units", | ||
| [ | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "AstroAngles"), | ||
| path = "AstroAngles", | ||
| name = "AstroAngles", | ||
| giturl = "https://github.com/JuliaAstro/AstroAngles.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "AstroTime"), | ||
| path = "AstroTime", | ||
| name = "AstroTime", | ||
| giturl = "https://github.com/JuliaAstro/AstroTime.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "ERFA"), | ||
| path = "ERFA", | ||
| name = "ERFA", | ||
| giturl = "https://github.com/JuliaAstro/ERFA.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "SkyCoords"), | ||
| path = "SkyCoords", | ||
| name = "SkyCoords", | ||
| giturl = "https://github.com/JuliaAstro/SkyCoords.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "UnitfulAstro"), | ||
| path = "UnitfulAstro", | ||
| name = "UnitfulAstro", | ||
| giturl = "https://github.com/JuliaAstro/UnitfulAstro.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "WCS"), | ||
| path = "WCS", | ||
| name = "WCS", | ||
| giturl = "https://github.com/JuliaAstro/WCS.jl.git", | ||
| ), | ||
| ] | ||
| ), | ||
| MultiDocumenter.DropdownNav( | ||
| "Images", | ||
| [ | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "AstroImages"), | ||
| path = "AstroImages", | ||
| name = "AstroImages", | ||
| giturl = "https://github.com/JuliaAstro/AstroImages.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "SAOImagesDS9"), | ||
| path = "SAOImagesDS9", | ||
| name = "SAOImagesDS9", | ||
| giturl = "https://github.com/JuliaAstro/SAOImageDS9.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "Photometry"), | ||
| path = "Photometry", | ||
| name = "Photometry", | ||
| giturl = "https://github.com/juliaastro/Photometry.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "PSFModels"), | ||
| path = "PSFModels", | ||
| name = "PSFModels", | ||
| giturl = "https://github.com/juliaastro/PSFModels.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "LACosmic"), | ||
| path = "LACosmic", | ||
| name = "LACosmic", | ||
| giturl = "https://github.com/juliaastro/LACosmic.jl.git", | ||
| ), | ||
| ] | ||
| ), | ||
| MultiDocumenter.DropdownNav( | ||
| "Data I/O", | ||
| [ | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "AstroImages"), | ||
| path = "AstroImages", | ||
| name = "AstroImages", | ||
| giturl = "https://github.com/JuliaAstro/AstroImages.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "FITSIO"), | ||
| path = "FITSIO", | ||
| name = "FITSIO", | ||
| giturl = "https://github.com/JuliaAstro/FITSIO.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "CFITSIO"), | ||
| path = "CFITSIO", | ||
| name = "CFITSIO", | ||
| giturl = "https://github.com/JuliaAstro/CFITSIO.jl.git", | ||
| ), | ||
| MultiDocumenter.Link( | ||
| "mweastwood/CasaCore", | ||
| "http://mweastwood.info/CasaCore.jl/stable/", | ||
| ), | ||
| MultiDocumenter.Link( | ||
| "emmt/OIFITS", | ||
| "https://github.com/emmt/OIFITS.jl", | ||
| ), | ||
| MultiDocumenter.Link( | ||
| "aplavin/VLBIData", | ||
| "https://github.com/JuliaAPlavin/VLBIData.jl", | ||
| ), | ||
| MultiDocumenter.Link( | ||
| "aplavin/Difmap", | ||
| "https://github.com/JuliaAPlavin/Difmap.jl", | ||
| ), | ||
| ] | ||
| ), | ||
| MultiDocumenter.DropdownNav( | ||
| "Cosmology", | ||
| [ | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "Cosmology"), | ||
| path = "Cosmology", | ||
| name = "Cosmology", | ||
| giturl = "https://github.com/JuliaAstro/Cosmology.jl.git", | ||
| ), | ||
| ] | ||
| ), | ||
| MultiDocumenter.DropdownNav( | ||
| "Orbits & Ephemerides", | ||
| [ | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "Transits"), | ||
| path = "Transits", | ||
| name = "Transits", | ||
| giturl = "https://github.com/JuliaAstro/Transits.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "sefffal/PlanetOrbits"), | ||
| path = "sefffal/PlanetOrbits", | ||
| name = "sefffal/PlanetOrbits", | ||
| giturl = "https://github.com/sefffal/PlanetOrbits.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "EarthOrientation"), | ||
| path = "EarthOrientation", | ||
| name = "EarthOrientation", | ||
| giturl = "https://github.com/JuliaAstro/EarthOrientation.jl.git", | ||
| ), | ||
| MultiDocumenter.Link( | ||
| "JPLEphemeris", | ||
| "https://github.com/JuliaAstro/JPLEphemeris.jl", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "AstroLib"), | ||
| path = "AstroLib", | ||
| name = "AstroLib", | ||
| giturl = "https://github.com/JuliaAstro/AstroLib.jl.git", | ||
| ), | ||
| ] | ||
| ), | ||
| MultiDocumenter.DropdownNav( | ||
| "Numerical Utilities", | ||
| [ | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "BoxLeastSquares"), | ||
| path = "BoxLeastSquares", | ||
| name = "BoxLeastSquares", | ||
| giturl = "https://github.com/JuliaAstro/BoxLeastSquares.jl.git", | ||
| ), | ||
| MultiDocumenter.MultiDocRef( | ||
| upstream = joinpath(clonedir, "LombScargle"), | ||
| path = "LombScargle", | ||
| name = "LombScargle", | ||
| giturl = "https://github.com/JuliaAstro/LombScargle.jl.git", | ||
| ), | ||
| ] | ||
| ), | ||
| MultiDocumenter.DropdownNav( | ||
| "Statistics", | ||
| [ | ||
| MultiDocumenter.Link( | ||
| "sefffal/PairPlots", | ||
| "https://sefffal.github.io/PairPlots.jl/dev", | ||
| ), | ||
| ] | ||
| ), | ||
| ] |
There was a problem hiding this comment.
This bit is all manual and gross for now just to stand things up, and can be replaced by something like #44 if we end up wanting to go the "single source of truth" route discussed there
Yes, I think that would be the final option to go with, but I'm not sure about #44 subsuming this PR. The ecosystem layout doesn't exactly much the current categorization, and at least from my perspective, the current one is easier to use. But that's a small change to make, so it's not too big of an issue. The other part is, I'm not sure why the ecosystem page was hidden in the first place, so it's probably worth it to wait and hear from someone who oversaw the previous layout transition 👍 |
|
Thanks, sounds good! Maybe @sefffal has some thoughts? |
This PR tries to get MultiDocumenter in the mix next. This is inspired from this old convo
Depends on #40
It seems to be building locally alright for me (pics below), but I am lost when it comes to CI stuff. Any help is appreciated!
Demo
Preview link
https://juliaastro.org/previews/PR43/
Doesn't seem to be reflecting changes yet, I am positive that I must be holding it wrongIt's working now, thanks @abhro!Unified search
Topbar links to external package docs
Future PR(s)?
docsindocs/make.jlwithpages.jl. Currently doing this manually (WIP here: Simplified MultiDocumenter.jl #44)