JuliaDocs / Documenter.jl

A documentation generator for Julia.
https://documenter.juliadocs.org
MIT License
809 stars 475 forks source link

Fallback Behavior for Versions #858

Open arnavs opened 5 years ago

arnavs commented 5 years ago

See https://github.com/JuliaLang/www.julialang.org/issues/204

mortenpi commented 5 years ago

It's a bit tricky to achieve, but could be doable by having Documenter maintain a sitemap of some sort in the root directory, similar to the version.js file.

odow commented 10 months ago

I'm doing a triage of open documenter issues and closing issues that are stale. If I've made a mistake, please re-open

Closing as stale. I understand the motivation, but it is tricky and has a lot of edge-cases. For example, there's no guarantee that the page exists on different versions, and even if it doesn't there's no guarantee that it links to the same content. So it seems much simpler just to go back to the home page.

mortenpi commented 10 months ago

Actually, let me reopen this. I think this might be doable with some JS, if we'd do a HEAD call to check if a page with the same URL exists under the other version (if it does, go there, if it doesn't, go to root like now). The version selector needs JS anyway.