-
Notifications
You must be signed in to change notification settings - Fork 1
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
Check for english specific doc links #225
Conversation
It is a common error to see links like "https://hatch-jupyter-builder.readthedocs.io/en/latest", which point to the English version of the docs, rather than the generic link which uses the browser language https://hatch-jupyter-builder.readthedocs.io. Signed-off-by: Mark Anderson <manderson@anaconda.com>
Signed-off-by: Mark Anderson <manderson@anaconda.com>
Signed-off-by: Mark Anderson <manderson@anaconda.com>
@@ -488,6 +488,22 @@ def test_missing_documentation_bad(base_yaml): | |||
assert len(messages) == 1 and "doc_url or doc_source_url" in messages[0].title | |||
|
|||
|
|||
def test_documentation_specifies_language(base_yaml): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test that also makes sure there are no messages when the link is generic to test for false positives?
I'm good with this, barring Marco's comments are resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Marco Esters <mesters@anaconda.com>
Co-authored-by: Marco Esters <mesters@anaconda.com>
Co-authored-by: Marco Esters <mesters@anaconda.com>
Co-authored-by: Marco Esters <mesters@anaconda.com>
Check for english specific doc links
It is a common error to see links like "https://hatch-jupyter-builder.readthedocs.io/en/latest", which point to the English version of the docs, rather than the generic link which uses the browser language https://hatch-jupyter-builder.readthedocs.io.