diff options
author | Kenneth Reitz <me@kennethreitz.org> | 2018-09-10 06:26:52 -0400 |
---|---|---|
committer | Kenneth Reitz <me@kennethreitz.org> | 2018-09-10 06:26:52 -0400 |
commit | f4818b2010ce0846e9ddc85f439b80303a395494 (patch) | |
tree | 1a3582f3968d519faf36bbd706a5541de8d410a8 /docs/_templates | |
parent | 33b41c7880a02166d12915ca9c4cfc13de2d9fb7 (diff) | |
download | python-requests-f4818b2010ce0846e9ddc85f439b80303a395494.tar.gz |
updates to docs
Diffstat (limited to 'docs/_templates')
-rw-r--r-- | docs/_templates/hacks.html | 12 | ||||
-rw-r--r-- | docs/_templates/sidebarintro.html | 39 | ||||
-rw-r--r-- | docs/_templates/sidebarlogo.html | 39 |
3 files changed, 90 insertions, 0 deletions
diff --git a/docs/_templates/hacks.html b/docs/_templates/hacks.html index b04b1afa..8e55c435 100644 --- a/docs/_templates/hacks.html +++ b/docs/_templates/hacks.html @@ -1,5 +1,17 @@ <!-- Alabaster (krTheme++) Hacks --> +<script src="{{ pathto('_static/', 1) }}/native.js"></script> +<script src="https://codepen.io/sayzlim/pen/geOONP.js" type="text/javascript"></script> + +<script> + _native.init("CK7D62JU", { + targetClass: 'native-js', + display: 'flex', + visibleClass: 'native-show' + }); +</script> + + <!-- CSS Adjustments (I'm very picky.) --> <style type="text/css"> diff --git a/docs/_templates/sidebarintro.html b/docs/_templates/sidebarintro.html index bdb1c024..412c919e 100644 --- a/docs/_templates/sidebarintro.html +++ b/docs/_templates/sidebarintro.html @@ -69,3 +69,42 @@ <li><a href="http://it.python-requests.org/">Italian</a></li> <li><a href="http://es.python-requests.org/">Spanish</a></li> </ul> + +<div class="native-js"> + <div class="native-sponsor">Sponsored by #native_company# — Learn More</div> + <a href="#native_link#" class="native-flex"> + <style> + .native-js { + background: linear-gradient(-30deg, #native_bg_color#E5, #native_bg_color#E5 45%, #native_bg_color# 45%) #fff; + } + + .native-details, + .native-sponsor, + .native-bsa { + color: #native_color# !important; + } + + .native-details:hover { + color: #native_color_hover# !important; + } + + .native-cta { + color: #native_cta_color#; + background-color: #native_cta_bg_color#; + } + + .native-cta:hover { + color: #native_cta_color_hover; + background-color: #native_cta_bg_color_hover#; + } + </style> + <div class="native-main"> + <img class="native-img" src="#native_logo#"> + <div class="native-details"> + <span class="native-company">#native_title#</span> + <span class="native-desc">#native_desc#</span> + </div> + </div> + <span class="native-cta">#native_cta#</span> + </a> +</div> diff --git a/docs/_templates/sidebarlogo.html b/docs/_templates/sidebarlogo.html index 1b7afbd8..3ae08fa2 100644 --- a/docs/_templates/sidebarlogo.html +++ b/docs/_templates/sidebarlogo.html @@ -63,3 +63,42 @@ <li><a href="http://it.python-requests.org/">Italian</a></li> <li><a href="http://es.python-requests.org/">Spanish</a></li> </ul> + +<div class="native-js"> + <div class="native-sponsor">Sponsored by #native_company# — Learn More</div> + <a href="#native_link#" class="native-flex"> + <style> + .native-js { + background: linear-gradient(-30deg, #native_bg_color#E5, #native_bg_color#E5 45%, #native_bg_color# 45%) #fff; + } + + .native-details, + .native-sponsor, + .native-bsa { + color: #native_color# !important; + } + + .native-details:hover { + color: #native_color_hover# !important; + } + + .native-cta { + color: #native_cta_color#; + background-color: #native_cta_bg_color#; + } + + .native-cta:hover { + color: #native_cta_color_hover; + background-color: #native_cta_bg_color_hover#; + } + </style> + <div class="native-main"> + <img class="native-img" src="#native_logo#"> + <div class="native-details"> + <span class="native-company">#native_title#</span> + <span class="native-desc">#native_desc#</span> + </div> + </div> + <span class="native-cta">#native_cta#</span> + </a> +</div> |