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 fallback git link for non-provider repos #3435

Merged
merged 2 commits into from Oct 25, 2023
Merged

Add fallback git link for non-provider repos #3435

merged 2 commits into from Oct 25, 2023

Conversation

sumebrius
Copy link
Contributor

If a repo was defined for the readthedocs theme, but the repo wasn't a predefined provider (GitHub, Bitbucket, or GitLab), no repo link would be rendered.

This adds a fallback generic git repo link.

Fixes #3259

@oprypin
Copy link
Contributor

oprypin commented Oct 20, 2023

Hmm the logo literally just says "git".. which may be controversial seeing as it doesn't even have to be a git repo.
Usually the logo "fa-git-alt" is a better fit but seems it's not present in our old version of font-awesome

@sumebrius
Copy link
Contributor Author

Yeah, the font-awesome 4.7 set is a little more limited than I was expecting.

code-fork might be a more VCS-agnostic choice?

@oprypin
Copy link
Contributor

oprypin commented Oct 20, 2023

Yeah that would be great 👍

@sumebrius
Copy link
Contributor Author

Done!

Copy link
Member

@ultrabug ultrabug left a comment

Choose a reason for hiding this comment

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

Thanks!

@oprypin oprypin merged commit 49d02e4 into mkdocs:master Oct 25, 2023
15 checks passed
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.

Repo Link missing in readthedocs theme if custom repo_name used
3 participants