-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from pimoroni/sphinx-docs
Code QA & Test Fixes
- Loading branch information
Showing
13 changed files
with
589 additions
and
31 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.rst-content a, .rst-content a:focus { | ||
color:#13c0d7; | ||
} | ||
.rst-content a:visited, .rst-content a:active { | ||
color:#87319a; | ||
} | ||
.rst-content .highlighted { | ||
background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAJElEQVQIW2P8//9/PSMjYyMDEmAEsdElwILoEnBBZAkUQZgEABMWE4Kzp1KUAAAAAElFTkSuQmCC),rgba(246,167,4,0.2); | ||
margin:0 -6px; | ||
} | ||
.wy-side-nav-search { | ||
background:#333333; | ||
} | ||
.wy-nav-side { | ||
background:#444444; | ||
} | ||
.wy-menu-vertical a { | ||
color:#cccccc | ||
} | ||
.wy-menu-vertical p.caption { | ||
background: #333333; | ||
color: #6d6d6d; | ||
} | ||
.rst-content dl:not(.docutils) dt { | ||
background:#e7fafd; | ||
border-top:solid 3px #13c0d7; | ||
color:rgba(0,0,0,0.5); | ||
} | ||
.rst-content .viewcode-link, .rst-content .viewcode-back { | ||
color:#00b09b; | ||
} | ||
code.literal { | ||
color:#e63c2e; | ||
} | ||
|
||
|
||
.rst-content #at-a-glance { | ||
margin-bottom:24px; | ||
} | ||
.rst-content #at-a-glance blockquote { | ||
margin-left:0; | ||
} | ||
.rst-content #at-a-glance dl:not(.docutils) dt { | ||
border:none; | ||
background:#f0f0f0; | ||
} | ||
.rst-content #at-a-glance dl:not(.docutils) dd, | ||
.rst-content #at-a-glance dl:not(.docutils) dd dl:not(.docutils) dd { | ||
display:none; | ||
} | ||
.rst-content #at-a-glance dl:not(.docutils) { | ||
margin-bottom:0; | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{% extends "!layout.html" %} | ||
{% block extrahead %} | ||
<link rel="stylesheet" href="{{ pathto("_static/custom.css", True) }}" type="text/css"> | ||
{% endblock %} | ||
{% block footer %} | ||
<script type="text/javascript"> | ||
var menuItems = $('.wy-menu-vertical').find('a'); | ||
|
||
var scrollItems = menuItems.map(function(){ | ||
var item = $($(this).attr('href')); | ||
if (item.length) { return item; } | ||
}); | ||
|
||
$(window).on('scroll',function(){ | ||
var fromTop = $(this).scrollTop() | ||
|
||
var cur = scrollItems.map(function(){ | ||
if ($(this).offset().top < fromTop+30) return this; | ||
}); | ||
|
||
cur = cur[cur.length-1]; | ||
var id = cur && cur.length ? cur[0].id : ""; | ||
|
||
var target = $('#'+id); | ||
target.attr('id',''); | ||
window.location.hash = '#'+id; | ||
target.attr('id',id); | ||
|
||
menuItems | ||
.parent().removeClass("current") | ||
.end().filter("[href='#"+id+"']").parent().addClass("current"); | ||
}); | ||
|
||
$(window).on('hashchange',function(){ | ||
|
||
var hash = window.location.hash.replace('#',''); | ||
|
||
menuItems | ||
.parent().removeClass("current") | ||
.end().filter("[href='#"+hash+"']").parent().addClass("current"); | ||
}) | ||
</script> | ||
{% endblock %} |
Oops, something went wrong.