Skip to content

Commit ca5ef79

Browse files
committed
add github buttons
1 parent 5e08634 commit ca5ef79

1 file changed

Lines changed: 38 additions & 2 deletions

File tree

custom_theme/base.html

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,40 @@
4040
{% if copyright %}
4141
<div class="footer">
4242
<div class="container">
43-
<p class="text-muted">{{copyright}}</p>
43+
<p class="text-muted">{{copyright}}
44+
<!-- Place this tag where you want the button to
45+
render. -->
46+
47+
<!-- Place this tag where you want the button to render. -->
48+
<a class="github-button" href="https://github.com/VISIONAI/VMXdocs"
49+
data-icon="octicon-star" data-style="mega"
50+
data-count-href="/VISIONAI/VMXdocs/stargazers"
51+
data-count-api="/repos/VISIONAI/VMXdocs#stargazers_count"
52+
data-count-aria-label="# stargazers on GitHub" aria-label="Star
53+
VISIONAI/VMXdocs
54+
on
55+
GitHub">Star</a>
56+
57+
<!-- Place this tag where you want the button to render. -->
58+
<a class="github-button"
59+
href="https://github.com/VISIONAI/VMXdocs/fork"
60+
data-icon="octicon-git-branch" data-style="mega"
61+
data-count-href="/VISIONAI/VMXdocs/network"
62+
data-count-api="/repos/VISIONAI/VMXdocs#forks_count"
63+
data-count-aria-label="# forks on GitHub" aria-label="Fork
64+
VISIONAI/VMXdocs
65+
on GitHub">Fork</a>
66+
<!-- Place this tag where you want the button to render. -->
67+
<a class="github-button"
68+
href="https://github.com/VISIONAI/VMXdocs/issues"
69+
data-icon="octicon-issue-opened" data-style="mega"
70+
data-count-api="/repos/VISIONAI/VMXdocs#open_issues_count"
71+
data-count-aria-label="# issues on GitHub" aria-label="Issue
72+
VISIONAI/VMXdocs
73+
on
74+
GitHub">Issue</a>
75+
76+
</p>
4477
</div>
4578
</div>
4679
{% endif %}
@@ -49,8 +82,11 @@
4982
<script src="{{ base_url }}/js/bootstrap-3.0.3.min.js"></script>
5083
<script src="{{ base_url }}/js/prettify-1.0.min.js"></script>
5184
<script src="{{ base_url }}/js/base.js"></script>
52-
85+
<!-- Place this tag right after the last button or just before your --
86+
-- close body tag. -->
87+
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
5388
<script>
89+
5490
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
5591
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
5692
Date();a=s.createElement(o),

0 commit comments

Comments
 (0)