-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update RTD theme and add jsPsych tab (#439)
* remove forked rtd theme * customize the layout template sidebartitle block with the tabbed nav html from sphinx-rtd-theme-frameplayer repo * remove tab margin-right to get them to fit inside the nav menu * update requirements * change project title from Lookit to CHS/Lookit
- Loading branch information
1 parent
e773305
commit ec30244
Showing
6 changed files
with
90 additions
and
15 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Submodule _themes
deleted from
06894f
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 |
---|---|---|
@@ -1,22 +1,42 @@ | ||
alabaster==0.7.12 | ||
attrs==23.1.0 | ||
Babel==2.9.1 | ||
certifi==2024.7.4 | ||
chardet==4.0.0 | ||
charset-normalizer==3.3.2 | ||
commonmark==0.8.1 | ||
docutils==0.17.1 | ||
docutils==0.20.1 | ||
future==0.18.2 | ||
idna==3.7 | ||
imagesize==1.2.0 | ||
Jinja2==2.11.3 | ||
MarkupSafe==1.1.1 | ||
packaging==20.9 | ||
Pygments==2.9.0 | ||
imagesize==1.4.1 | ||
importlib-resources==6.1.1 | ||
importlib_metadata==8.5.0 | ||
Jinja2==3.1.4 | ||
jsonschema==4.20.0 | ||
jsonschema-specifications==2023.11.1 | ||
MarkupSafe==2.1.5 | ||
packaging==24.2 | ||
pip-review==1.3.0 | ||
pkgutil_resolve_name==1.3.10 | ||
Pygments==2.18.0 | ||
pyparsing==2.4.7 | ||
pytz==2021.1 | ||
recommonmark==0.5.0 | ||
referencing==0.31.0 | ||
requests==2.32.2 | ||
rpds-py==0.13.1 | ||
six==1.16.0 | ||
snowballstemmer==2.1.0 | ||
Sphinx==1.8.5 | ||
sphinxcontrib-serializinghtml==1.1.4 | ||
Sphinx==7.1.2 | ||
sphinx-rtd-theme==3.0.1 | ||
sphinxcontrib-applehelp==1.0.4 | ||
sphinxcontrib-devhelp==1.0.2 | ||
sphinxcontrib-htmlhelp==2.0.1 | ||
sphinxcontrib-jquery==4.1 | ||
sphinxcontrib-jsmath==1.0.1 | ||
sphinxcontrib-qthelp==1.0.3 | ||
sphinxcontrib-serializinghtml==1.1.5 | ||
sphinxcontrib-websupport==1.2.4 | ||
sphobjinv==2.3.1 | ||
urllib3==1.26.19 | ||
zipp==3.20.2 |
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,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 id="selected"> | ||
{% if logo and theme_logo_only %} | ||
<a href="{{ pathto(master_doc) }}"> | ||
{% else %} | ||
<a href="{{ pathto(master_doc) }}" class="icon icon-home"> CHS | ||
{% 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/frameplayer/" class="fa fa-puzzle-piece"> Lookit EFP </a></li> | ||
<li><a href="https://lookit.readthedocs.io/projects/chs-jspsych/" class="fa fa-puzzle-piece"> jsPsych </a></li> | ||
</ul> | ||
</nav> | ||
</div> | ||
|
||
{% endblock %} |
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