Skip to content

Consider url scheme to detect and handle external URLs#57

Merged
manuzhang merged 15 commits intomanuzhang:mainfrom
kolibri91:feature/consider-url-scheme
Apr 11, 2023
Merged

Consider url scheme to detect and handle external URLs#57
manuzhang merged 15 commits intomanuzhang:mainfrom
kolibri91:feature/consider-url-scheme

Conversation

@kolibri91
Copy link
Copy Markdown
Contributor

This PR improves the plugin by doing two things:

  • External urls are detected via scheme
  • External urls are handled regarding their scheme

Further, I improved the logging by using the provided functionality of mkdocs.utils.log.

Unfortunately, I noticed there are several flake8 issues in the existing code after my changes.
They are not correctly recognized like I showed in #55.
I fixed them all in this branch, I would prefer if we could merge those changes pragmatic in that PR and avoid a extract and conflict resolution.

Closes #54
Closes #55

@manuzhang
Copy link
Copy Markdown
Owner

LGTM. Please fix styles issues in #55

@kolibri91 kolibri91 mentioned this pull request Apr 8, 2023
@kolibri91
Copy link
Copy Markdown
Contributor Author

kolibri91 commented Apr 9, 2023

@kolibri91
Copy link
Copy Markdown
Contributor Author

@manuzhang Did you consider to activate branch protection rule "up to date". This would ensure that the PRs contains latest changes.

@manuzhang
Copy link
Copy Markdown
Owner

It doesn't have to as long as there's no conflict.

@kolibri91
Copy link
Copy Markdown
Contributor Author

kolibri91 commented Apr 10, 2023

I noticed in my daily work two common issues with branches which are not up to date before you merge.

It can happen that the ci does not work correctly if main branch contains CI configuration updates.
That would be the case here. Fortunately, I noticed the issues during development of this branch.

Secondly, auto-merge can break styling.

In both cases, it would end in a broken main branch and that's always a bad sign.
Requesting that the PR's are up to date before you merge them would prevent you from that.

@manuzhang manuzhang merged commit 6515ee1 into manuzhang:main Apr 11, 2023
@kolibri91 kolibri91 deleted the feature/consider-url-scheme branch April 13, 2023 07:49
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.

mailto: links generate 404 errors

2 participants