Skip to content

Commit

Permalink
Serve static content from docs.python.org. (#65)
Browse files Browse the repository at this point in the history
Except for the collapsible sidebar, which requires a change in Sphinx itself.

Also changed hover color for header links.
  • Loading branch information
Lisa Roach authored and zware committed Nov 2, 2016
1 parent 4c9dad2 commit 9578fb7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 66 deletions.
2 changes: 1 addition & 1 deletion tools/pydoctheme/static/pydoctheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ div.related a {
}

div.related a:hover {
color: #0095C4;
color: #eee;
}

div.related:first-child {
Expand Down
62 changes: 0 additions & 62 deletions tools/static/copybutton.js

This file was deleted.

Binary file removed tools/static/py.png
Binary file not shown.
6 changes: 3 additions & 3 deletions tools/templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "!layout.html" %}
{% block rootrellink %}
<li><img src="{{ pathto('_static/py.png', 1) }}" alt=""
<li><img src="{{ pathto('https://docs.python.org/3/_static/py.png', 1) }}" alt=""
style="vertical-align: middle; margin-top: -1px"/></li>
<li><a href="https://www.python.org/">Python</a>{{ reldelim1 }}</li>
<li>
Expand Down Expand Up @@ -30,8 +30,8 @@
{%- endif %}
{% endblock %}
{% block extrahead %}
<link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" />
{% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
<link rel="shortcut icon" type="image/png" href="{{ pathto('https://docs.python.org/3/_static/py.png', 1) }}" />
{% if not embedded %}<script type="text/javascript" src="{{ pathto('https://docs.python.org/3/_static/copybutton.js', 1) }}"></script>{% endif %}

{{ super() }}
{% endblock %}
Expand Down

0 comments on commit 9578fb7

Please sign in to comment.