Skip to content

Commit 938aa3d

Browse files
authored
Allow for a gitlab social media button (#289)
Alongside the existing github option.
1 parent 82f9799 commit 938aa3d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/user_guide/configuring.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ following configuration:
2929
3030
html_theme_options = {
3131
"github_url": "https://github.com/<your-org>/<your-repo>",
32+
"gitlab_url": "https://gitlab.com/<your-org>/<your-repo>",
3233
"twitter_url": "https://twitter.com/<your-handle>",
3334
}
3435

pydata_sphinx_theme/docs-navbar.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
</a>
4141
</li>
4242
{% endif %}
43+
{% if theme_gitlab_url | length > 2 %}
44+
<li class="nav-item">
45+
<a class="nav-link" href="{{ theme_gitlab_url }}" target="_blank" rel="noopener">
46+
<span><i class="fab fa-gitlab-square"></i></span>
47+
</a>
48+
</li>
49+
{% endif %}
4350
{% if theme_twitter_url | length > 2 %}
4451
<li class="nav-item">
4552
<a class="nav-link" href="{{ theme_twitter_url }}" target="_blank" rel="noopener">

0 commit comments

Comments
 (0)