Skip to content

Commit

Permalink
try new config
Browse files Browse the repository at this point in the history
  • Loading branch information
smrgit committed Dec 27, 2015
1 parent 2c16a9e commit bb28ffd
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
47 changes: 47 additions & 0 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/* NOTE: Add/update the date suffix to this file's filename if you want to
* ensure folks pull in the most recent version instead of what is in their
* browser cache. Then modify _templates/page.html to point to the updated
* files.
*/

/* http://stackoverflow.com/questions/2454577/sphinx-restructuredtext-show-hide-code-snippets */
.toggle .header {
display: block;
clear: both;
}

.toggle .container {
border-top: 0px;
margin-top: 0px;
padding-top: 0px;
/*background-color: red;*/
padding-bottom: 24px;
}

.toggle .header:after {
content: " ▼";
}

.toggle .header.open:after {
content: " ▲";
}

/* For http://sphinx-doc.org/config.html#confval-rst_epilog */
.isbcgcfooter p {
font-size: small;
font-style: italic;
}

.visible-only-on-github {
display: none;
}

/*
* By default tables add horizontal scrollbars instead of wrapping.
* It is hard to conceive of when you would want this.
* Issue discussed and workaround provided here:
* https://github.com/snide/sphinx_rtd_theme/issues/117
*/
.wy-table-responsive table td, .wy-table-responsive table th {
white-space: normal !important;
}
14 changes: 14 additions & 0 deletions docs/source/_static/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Open all links in another window.
$(document).ready(function() {
$("a[href^='http']").attr('target','_blank');
});

// implement collapsible containers for content.
jQuery($(document).ready(function() {
$(".toggle > *").hide();
$(".toggle .header").show();
$(".toggle .header").click(function() {
$(this).parent().children().not(".header").toggle(400);
$(this).parent().children(".header").toggleClass("open");
})
}));
5 changes: 5 additions & 0 deletions docs/source/_templates/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "!page.html" %}

{% set css_files = css_files + ["_static/custom.css"] %}

{% set script_files = script_files + ["_static/custom.js"] %}

0 comments on commit bb28ffd

Please sign in to comment.