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 "GitLab" to list of social icons #3750

Closed
4 tasks done
stritti opened this issue Apr 4, 2024 · 4 comments · Fixed by #4339
Closed
4 tasks done

Add "GitLab" to list of social icons #3750

stritti opened this issue Apr 4, 2024 · 4 comments · Fixed by #4339

Comments

@stritti
Copy link

stritti commented Apr 4, 2024

Is your feature request related to a problem? Please describe.

I would like to point to a repository at GitLab instead of GitHub.

Describe the solution you'd like

Add social icon for GitLab to the list to be selectable at themeConfic.socialLinks{}

Describe alternatives you've considered

No response

Additional context

No response

Validations

@brc-dd
Copy link
Member

brc-dd commented Apr 4, 2024

Specify the SVG manually from simple-icons. New icons won't be added to core.

import { defineConfig } from 'vitepress'

export default defineConfig({
  themeConfig: {
    socialLinks: [
      {
        icon: {
          svg: `<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitLab</title><path d="m23.6004 9.5927-.0337-.0862L20.3.9814a.851.851 0 0 0-.3362-.405.8748.8748 0 0 0-.9997.0539.8748.8748 0 0 0-.29.4399l-2.2055 6.748H7.5375l-2.2057-6.748a.8573.8573 0 0 0-.29-.4412.8748.8748 0 0 0-.9997-.0537.8585.8585 0 0 0-.3362.4049L.4332 9.5015l-.0325.0862a6.0657 6.0657 0 0 0 2.0119 7.0105l.0113.0087.03.0213 4.976 3.7264 2.462 1.8633 1.4995 1.1321a1.0085 1.0085 0 0 0 1.2197 0l1.4995-1.1321 2.4619-1.8633 5.006-3.7489.0125-.01a6.0682 6.0682 0 0 0 2.0094-7.003z"/></svg>`
        },
        link: 'https://gitlab.com'
      }
    ]
  }
})

@brc-dd brc-dd closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2024
@stritti
Copy link
Author

stritti commented Apr 4, 2024

Okay, thanks for alternative. Probably this is already documented and I have not seen this possibility.

@brc-dd
Copy link
Member

brc-dd commented Apr 4, 2024

@stritti
Copy link
Author

stritti commented Apr 4, 2024

Oh, yes sure. I was blind. Sorry.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 28, 2024
@brc-dd brc-dd reopened this Nov 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants