mirror of https://github.com/hyperledger/besu
Add Google analytics to doc site (#471)
* Fixes #440 add analytics and move scripts and css to header by overriding blocks in main * Fixes domain namenow that we have doc.pantheon.pegasys.tech Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>pull/2/head
parent
27c3ad5f78
commit
deaaf0328a
@ -0,0 +1,31 @@ |
||||
.feedback{ |
||||
padding: 1em; |
||||
text-align: center; |
||||
background-color: {{config.extra.support.footer_layout.background_color}}; |
||||
} |
||||
.feedback a { |
||||
color: {{config.extra.support.footer_layout.links_color}} !important; |
||||
} |
||||
.md-nav--secondary .md-nav__item .md-nav__item a.md-nav__link { |
||||
font-weight: normal; |
||||
font-size: inherit; |
||||
} |
||||
.md-nav--secondary a.md-nav__link { |
||||
font-weight: bolder; |
||||
<!--font-size: larger;--> |
||||
} |
||||
.rst-versions { |
||||
border-color: lightseagreen !important; |
||||
border-style: solid !important; |
||||
font-size: large; |
||||
} |
||||
|
||||
.rst-versions .rst-current-version { |
||||
background-color: #475c64 !important; |
||||
} |
||||
|
||||
.headerlink { |
||||
font-family: "Font Awesome 5 Free"; |
||||
font-weight: 900; |
||||
font-size: small; |
||||
} |
@ -0,0 +1,24 @@ |
||||
{% extends "base.html" %} |
||||
|
||||
{% block extrahead %} |
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/pantheon_custom.css' | url }}"> |
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" integrity="sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP" crossorigin="anonymous"> |
||||
<script |
||||
src="https://code.jquery.com/jquery-1.12.4.min.js" |
||||
integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" |
||||
crossorigin="anonymous"></script> |
||||
{% endblock %} |
||||
|
||||
{% block analytics %} |
||||
{% if config.google_analytics %} |
||||
<!-- Global site tag (gtag.js) - Google Analytics --> |
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config.google_analytics[0] }}"></script> |
||||
<script> |
||||
window.dataLayer = window.dataLayer || []; |
||||
function gtag(){dataLayer.push(arguments);} |
||||
gtag('js', new Date()); |
||||
|
||||
gtag('config', '{{ config.google_analytics[0] }}'); |
||||
</script> |
||||
{% endif %} |
||||
{% endblock %} |
Loading…
Reference in new issue