Skip to content
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

Fallback Behavior for Versions #858

Open
arnavs opened this issue Oct 12, 2018 · 3 comments
Open

Fallback Behavior for Versions #858

arnavs opened this issue Oct 12, 2018 · 3 comments
Labels
Format: HTML Related to the default HTML output help wanted Type: Enhancement

Comments

@arnavs
Copy link

arnavs commented Oct 12, 2018

See JuliaLang/www.julialang.org#204

@mortenpi
Copy link
Member

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
Copy link
Collaborator

odow commented Oct 31, 2023

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.

@odow odow closed this as completed Oct 31, 2023
@mortenpi mortenpi reopened this Nov 1, 2023
@mortenpi mortenpi added help wanted Format: HTML Related to the default HTML output labels Nov 1, 2023
@mortenpi
Copy link
Member

mortenpi commented Nov 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Format: HTML Related to the default HTML output help wanted Type: Enhancement
Projects
None yet
Development

No branches or pull requests

3 participants