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

“Old documentation” banner shown for pre-release docs #1726

Closed
sostock opened this issue Nov 2, 2021 · 1 comment
Closed

“Old documentation” banner shown for pre-release docs #1726

sostock opened this issue Nov 2, 2021 · 1 comment

Comments

@sostock
Copy link

sostock commented Nov 2, 2021

For example, the docs for Julia 1.7-rc2 and 1.8-DEV show the “This is an old version of the documentation. Go to the newest version.” banner with a link to the 1.6 docs, even though these versions are newer than 1.6.

The banner is added for all version numbers that are not equal to the newest version, even if they are newer:

// Current version is newest version, so no need to add a warning.
if (window.DOCUMENTER_NEWEST === window.DOCUMENTER_CURRENT_VERSION) {
return
};

@fredrikekre
Copy link
Member

The warning is changed to

div.innerHTML = 'This documentation is not for the latest version. <br> <a href="' + href + '">Go to the latest documentation</a>.';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants