-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
gitlab theme integration not working #3500
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
Comments
I think the gitlab context variables are injected from the git url (check only urls containing gitlab.com). But I think that these context variables have to be allowed to be redefined, I'm not sure if readthedocs.org support this (custom gitlab installations). |
Hi @lazka !
That documentation is obsolete I'd say (there is a PR that fixes that at #3490 --not sure if it fixes, but it removes that section and explains it better where/how it's used) RTD autoinjects those variables when the repository is a GitHub.com, Bitbucket.com or Gitlab.com. At the moment, this integration is not supported for other domain. |
Thanks for having a look. So, afaics, it would be easy to fix by only replacing the user provided config if "display_gitlab" on the injection site is True (same with the others)? Is this something you'd take contributions for? If not, feel free to close this :) |
That sounds good to me. One of the other maintainers should also weigh in before you start work on this, though! I'll label this as needing a design decision to make that clear. |
Having more conditional operations around setting the Feel free to open a PR with your thoughts there, we can offer some more guidance on the technical implementation there. |
ok, thanks (related issue: readthedocs/sphinx_rtd_theme#536) |
We can close this in favor of #2971. After that you can use that together with |
Details
Expected Result
I've added a gitlab configuration to the conf.py as suggested in https://docs.readthedocs.io/en/latest/vcs.html#gitlab
Building locally everything works and the proper links to gitlab are shown on each page
Actual Result
As can be seen in the build log, it replaces all the configuration with "None"/False. No GitLab links are included on the pages.
The text was updated successfully, but these errors were encountered: