-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 #838 from readthedocs/agj/fix-dl-styles
Address Sphinx 2 compatibility issues
- Loading branch information
Showing
15 changed files
with
245 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
language: python | ||
python: | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
matrix: | ||
include: | ||
- python: 2.7 | ||
env: TOXENV=docs | ||
- 3.7 | ||
install: | ||
- pip install tox-travis | ||
- pip install sphinx | ||
script: | ||
- tox | ||
|
||
branches: | ||
only: | ||
- master |
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,7 @@ | ||
// Add debug actions to flyout menu | ||
|
||
$(function () { | ||
$("[data-toggle='rst-debug-badge']").on("click", function () { | ||
$("[data-toggle='rst-versions']").toggleClass("rst-badge"); | ||
}); | ||
}) |
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,55 @@ | ||
{%- extends "!layout.html" %} | ||
|
||
{# | ||
|
||
This template exists as a way to implement a version menu without changing what | ||
the theme normally renders the menu on local builds and on builds on Read the | ||
Docs. This is for local testing purposes only. | ||
|
||
#} | ||
|
||
{% block footer %} | ||
{% if not READTHEDOCS %} | ||
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions"> | ||
<span class="rst-current-version" data-toggle="rst-current-version"> | ||
<span class="fa fa-book"> Read the Docs</span> | ||
v: latest | ||
<span class="fa fa-caret-down"></span> | ||
</span> | ||
<div class="rst-other-versions"> | ||
<dl> | ||
<dt>{{ _('Versions') }}</dt> | ||
{% if test_versions %} | ||
{% for version in test_versions %} | ||
<dd><a href="#">{{ version }}</a></dd> | ||
{% endfor %} | ||
{% else %} | ||
<dd><a href="#">latest</a></dd> | ||
<dd><a href="#">1.0</a></dd> | ||
<dd><a href="#">1.1</a></dd> | ||
{% endif %} | ||
</dl> | ||
<dl> | ||
<dt>{{ _('Downloads') }}</dt> | ||
<dd><a href="#">PDF</a></dd> | ||
<dd><a href="#">ePub</a></dd> | ||
<dd><a href="#">HTML</a></dd> | ||
</dl> | ||
<dl> | ||
{# Translators: The phrase "Read the Docs" is not translated #} | ||
<dt>{{ _('On Read the Docs') }}</dt> | ||
<dd> | ||
<a href="#">{{ _('Project Home') }}</a> | ||
</dd> | ||
<dd> | ||
<a href="#">{{ _('Builds') }}</a> | ||
</dd> | ||
</dl> | ||
<dl> | ||
<dt>Debug</dt> | ||
<dd><a href="#" data-toggle="rst-debug-badge">Swap badge position</a></dd> | ||
</dl> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% 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
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,2 +1,2 @@ | ||
sphinx | ||
sphinx>=3.0 | ||
sphinxcontrib-httpdomain |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.