-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* comment out notes in JS code blocks (prevents build errors and improves syntax highlighting) * remove custom RTD theme and replace with template override with docs tabs * update project title * update python requirements * add docs JS file for opening external links in new tab and update file structure to match lookit-docs
- Loading branch information
1 parent
778a3cb
commit 7d0fb7e
Showing
9 changed files
with
259 additions
and
169 deletions.
There are no files selected for viewing
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,3 @@ | ||
$(document).ready(function () { | ||
$('a[href^="http://"], a[href^="https://"]').not('a[class*=internal]').attr('target', '_blank'); | ||
}); |
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,59 @@ | ||
{%- extends "!layout.html" %} | ||
|
||
{% block sidebartitle %} | ||
|
||
{# From the sphinx-rtd-theme layout: https://github.com/simonw/sphinx_rtd_theme/blob/master/sphinx_rtd_theme/layout.html #} | ||
|
||
{% if logo and theme_logo_only %} | ||
<a href="{{ theme_logo_url or pathto(master_doc) }}"> | ||
{% else %} | ||
<a href="{{ theme_logo_url or pathto(master_doc) }}" class="icon icon-home"> {{ project }} | ||
{% endif %} | ||
|
||
{% if logo %} | ||
{# Not strictly valid HTML, but it's the only way to display/scale | ||
it properly, without weird scripting or heaps of work | ||
#} | ||
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/> | ||
{% endif %} | ||
</a> | ||
|
||
{% if theme_display_version %} | ||
{%- set nav_version = version %} | ||
{% if READTHEDOCS and current_version %} | ||
{%- set nav_version = current_version %} | ||
{% endif %} | ||
{% if nav_version %} | ||
<div class="version"> | ||
{{ nav_version }} | ||
</div> | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% include "searchbox.html" %} | ||
|
||
{# From Kim's forked RTD theme: https://github.com/kimberscott/sphinx-rtd-theme-frameplayer #} | ||
<div id="toggle-tab-container" style="position: relative;"> | ||
<nav id="toggle-lookit-frameplayer"> | ||
<ul> | ||
<li><a href="https://lookit.readthedocs.io" class="icon icon-home"> CHS </a></li> | ||
<li id="selected"> | ||
{% if logo and theme_logo_only %} | ||
<a href="{{ pathto(master_doc) }}"> | ||
{% else %} | ||
<a href="{{ pathto(master_doc) }}" class="fa fa-puzzle-piece"> Lookit EFP | ||
{% endif %} | ||
{% if logo %} | ||
{# Not strictly valid HTML, but it's the only way to display/scale | ||
it properly, without weird scripting or heaps of work | ||
#} | ||
<img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/> | ||
{% endif %} | ||
</a> | ||
</li> | ||
<li><a href="https://lookit.readthedocs.io/projects/chs-jspsych/" class="fa fa-puzzle-piece"> jsPsych </a></li> | ||
</ul> | ||
</nav> | ||
</div> | ||
|
||
{% endblock %} |
Submodule sphinx_rtd_theme
deleted from
0ed829
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
Oops, something went wrong.