You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the ShortLinkTransform class is hardcoded to work for URLs in the github.com or gitlab.com domains. It would be nice if it would also work with non-gitlab.com domained GitLab repositories, if you have specified a gitlab_url in the Sphinx conf.pyhtml_context dictionary, e.g.
where I've created a new locally scoped class that add the required URL into the supported_platform class attribute from the ShortenLinkTransform class. This is not particularly elegant, and there's probably a better way, but if this is considered useful I can open a PR with the changes (and some added documentation).
The text was updated successfully, but these errors were encountered:
Currently, the
ShortLinkTransform
class is hardcoded to work for URLs in the github.com or gitlab.com domains. It would be nice if it would also work with non-gitlab.com domained GitLab repositories, if you have specified agitlab_url
in the Sphinxconf.py
html_context
dictionary, e.g.I've created my own hacked version of the pydata-sphinx-theme, by editing the
setup()
function to contain:where I've created a new locally scoped class that add the required URL into the
supported_platform
class attribute from theShortenLinkTransform
class. This is not particularly elegant, and there's probably a better way, but if this is considered useful I can open a PR with the changes (and some added documentation).The text was updated successfully, but these errors were encountered: