-
Material for MkDocs currently supports GitHub for displaying stats such as stars, forks and latest release on the site... My question is, if this can be configured and/or extended to support other remote Git hosts such as GitLab, BitBucket, Codeberg, etc. Preferrably, support for any Gitea/Forgejo instance through matching configuration would be wonderful. If for whatever reason it isn't doable on your end directly, is there a way to achieve this using theme extension alone? Or would a plugin be necessary to achieve this? Thanks in advance for a reply. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Yes, this can be extended! We're already offering support for GitHub and GitLab, which are the most popular coding platforms. We're currently not planning to add support for other, lesser known platforms, because there are just not as many users that would justify the increased maintenance burden, but you can certainly fork the theme and add it on your fork! GitHub is here: And integration is here: |
Beta Was this translation helpful? Give feedback.
-
Would you be willing to look at a PR if I implement support? Tho, I consider to try and implement a general support for any forgejo/gitea instance, so that people can display stats from a repository of their own instance. |
Beta Was this translation helpful? Give feedback.
Yes, this can be extended! We're already offering support for GitHub and GitLab, which are the most popular coding platforms. We're currently not planning to add support for other, lesser known platforms, because there are just not as many users that would justify the increased maintenance burden, but you can certainly fork the theme and add it on your fork!
GitHub is here:
mkdocs-material/src/assets/javascripts/components/source/facts/github/index.ts
Lines 60 to 103 in c2e5558