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

FIX: link shortening for gitlab #1012

Merged
merged 4 commits into from Oct 12, 2022
Merged

FIX: link shortening for gitlab #1012

merged 4 commits into from Oct 12, 2022

Conversation

12rambau
Copy link
Collaborator

the links in GitLab are using an extra "-" for issues in the url.

Fix #1011

@12rambau 12rambau marked this pull request as ready for review October 11, 2022 09:14
Copy link
Collaborator

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

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

Looks good - two quick comments to hopefully make it easier to quickly understand...I know they're not strictly part of this issue resolution but could be helpful

src/pydata_sphinx_theme/__init__.py Outdated Show resolved Hide resolved
src/pydata_sphinx_theme/__init__.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

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

Looks great to me - so that we cover each of these edge-cases, could we:

  • In the docs, show off all of the different ways that you could display the links. E.g.:

    - https://github.com/pydata/pydata-sphinx-theme/pull/1012
    - https://github.com/pydata/pydata-sphinx-theme
    - https://github.com/pydata/
    
  • In the tests, do the same so that we're testing each of the edge-cases and would uncover bugs like these?

Copy link
Collaborator

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

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

This looks great to me - thanks!

@choldgraf choldgraf merged commit e5e94ec into pydata:main Oct 12, 2022
@12rambau 12rambau deleted the git_link branch October 12, 2022 15:25
@jarrodmillman jarrodmillman added this to the 0.12 milestone Oct 17, 2022
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.

IndexError in parse_url since 0.11
3 participants