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

Add latest flag to docs_config.js #42

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

pdavies
Copy link
Contributor

@pdavies pdavies commented Aug 6, 2024

Hello there!

It's a common problem to find old docs surfacing at the top of search results - see for example https://x.com/jskalc/status/1816920900660236370. Maybe there are tricks that would improve the search rankings, but as a starting point, I thought it would be useful to warn users when they are looking at old versions, which some languages' docs systems already do.

The main PR for that is elixir-lang/ex_doc#1918 - but it needs the docs host, i.e. hexdocs, to flag the latest version in docs_config.js. This PR does that.

@ericmj ericmj merged commit 2d7c252 into hexpm:main Oct 3, 2024
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

Successfully merging this pull request may close these issues.

2 participants