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
Docs: Link to Edit (Contribute) gives 404 on "configuration-files-new" #17965
Comments
Thanks for the report, actually we auto-generate these links (since #16213), and the logic seems to be pointing to the eslint/docs/src/_data/sites/en.yml Lines 116 to 118 in bde5105
eslint/docs/src/_includes/layouts/doc.html Lines 99 to 108 in bde5105
So if you see docs for |
I'm unsure if this is a bug or a limitation for our docs. We can provide edit links only for branches that exist, however for published releases we maintain tags which don't support editing files. I'd like to know other team members' opinions on how to treat this case. cc @eslint/website-team |
I think that should be a limit. Maybe we shouldn't show the edit button on released versions. |
My assumption is that the purpose of the Edit Button is to make it easy to fork, edit markdown on Github, and PR to promote contributions. It is an invitation to help correct, clarify, and contribute. Curious in practice for eslint if that happens, does the "Edit Button" lead to useful contributions?
In theory, assuming the docs are complete on release and don't need further input seems short-sighted. But if the edit button is not productive for generating contributions, then as maintainers I could see limiting that. |
This is just a quirk of the release that we should find a way to fix. This is the first major release we've had with the new docs site and there are all kinds of little inconsistencies we've found. The docs for v8 are contained in the So basically, what we should have is... When we are in prerelease
When we are not in prerelease
(I'm also realizing this is super confusing and we probably need to revisit this approach after v9 is finalized.) |
I'll give this a shot. |
Docs page(s)
https://eslint.org/docs/latest/use/configure/configuration-files-new
What documentation issue do you want to solve?
The "Edit File" button links to
404
What do you think is the correct solution?
Instead of linking to
https://github.com/eslint/eslint/edit/main/docs/src/use/configure/configuration-files-new.md
I believe it should link to:
https://github.com/eslint/eslint/edit/main/docs/src/use/configure/configuration-files.md
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: