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

Check for english specific doc links #225

Merged
merged 8 commits into from
Jul 14, 2023
Merged

Conversation

markan
Copy link
Collaborator

@markan markan commented May 2, 2023

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.

markan added 3 commits May 1, 2023 15:57
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>
@markan
Copy link
Collaborator Author

markan commented May 2, 2023

See Issue #223 Submitted by @cbouss

anaconda_linter/lint/check_completeness.py Outdated Show resolved Hide resolved
anaconda_linter/lint/check_completeness.py Outdated Show resolved Hide resolved
tests/test_completeness.py Outdated Show resolved Hide resolved
anaconda_linter/lint/check_completeness.py Outdated Show resolved Hide resolved
@@ -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):
Copy link
Collaborator

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?

Signed-off-by: Mark Anderson <manderson@anaconda.com>
@schuylermartin45
Copy link
Collaborator

I'm good with this, barring Marco's comments are resolved.

@schuylermartin45 schuylermartin45 self-requested a review May 19, 2023 17:40
Copy link
Contributor

@varlackc varlackc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

markan and others added 4 commits July 11, 2023 17:00
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>
@markan markan requested a review from marcoesters July 12, 2023 00:25
@cbouss cbouss merged commit 2c7e5e3 into main Jul 14, 2023
@cbouss cbouss deleted the markan/add_doc_language_check branch July 14, 2023 19:54
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.

5 participants