Skip to content

Commit de23f0f

Browse files
committed
add clone me on github ribbon
1 parent 5cc1069 commit de23f0f

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

doc/_templates/layout.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{% extends "!layout.html" %}
2+
3+
{# Custom CSS overrides #}
4+
{# set bootswatch_css_custom = ['_static/my-styles.css'] #}
5+
6+
{# Add github banner (from: https://github.com/blog/273-github-ribbons). #}
7+
{% block header %}
8+
{{ super() }}
9+
<a href="https://github.com/openml/openml-python"
10+
class="visible-desktop hidden-xs"><img
11+
id="gh-banner"
12+
style="position: absolute; top: 50px; right: 0; border: 0;"
13+
src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"
14+
alt="Fork me on GitHub"></a>
15+
<script>
16+
// Adjust banner height.
17+
$(function () {
18+
var navHeight = $(".navbar .container").css("height");
19+
$("#gh-banner").css("top", navHeight);
20+
});
21+
</script>
22+
{% endblock %}
23+

0 commit comments

Comments
 (0)