Skip to content

Commit 8878bee

Browse files
committed
Replace the header image with a new SVG logo
1 parent 3d8b008 commit 8878bee

File tree

7 files changed

+33
-7
lines changed

7 files changed

+33
-7
lines changed

doc/_themes/sphinx13/layout.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010

1111
{% block header %}
1212
<div class="pageheader">
13-
<a href="{{ pathto('index') }}">
14-
<img src="{{ pathto('_static/sphinxheader.png', 1) }}" alt="SPHINX" />
15-
</a>
13+
<a href="{{ pathto('index') }}">
14+
<img src="{{ pathto('_static/sphinx-logo.svg', resource=True) }}" alt="logo" />
15+
</a>
16+
<h1>Sphinx</h1>
1617
</div>
1718
{% endblock %}
1819

Lines changed: 4 additions & 0 deletions
Loading

doc/_themes/sphinx13/static/sphinx13.css

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,29 @@ body {
1515
}
1616

1717
.pageheader {
18+
display: flex;
19+
column-gap: 1em;
20+
align-items: center;
21+
width: 100%;
1822
background-color: var(--colour-sphinx-blue);
19-
padding: 10px 15px;
23+
padding: 10px 20px;
24+
}
25+
26+
.pageheader a {
27+
width: 5%;
28+
}
29+
30+
.pageheader img {
31+
filter: invert(1) drop-shadow(1px 1px 2px black);
32+
}
33+
34+
.pageheader h1{
35+
color: white;
36+
margin: 0;
37+
font-weight: 600;
38+
font-size: 3.5rem;
39+
line-height: 1;
40+
font-variant: small-caps;
2041
}
2142

2243
div.document {
-11.4 KB
Binary file not shown.

tests/roots/test-roles-download/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ test-roles-download
44
* :download:`dummy.dat`
55
* :download:`another/dummy.dat`
66
* :download:`not_found.dat`
7-
* :download:`Sphinx logo <http://www.sphinx-doc.org/en/master/_static/sphinxheader.png>`
7+
* :download:`Sphinx logo <http://www.sphinx-doc.org/en/master/_static/sphinx-logo.svg>`

tests/test_build_epub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def test_html_download_role(app, status, warning):
362362
assert ('<li><p><code class="xref download docutils literal notranslate">'
363363
'<span class="pre">Sphinx</span> <span class="pre">logo</span></code>'
364364
'<span class="link-target"> [http://www.sphinx-doc.org/en/master'
365-
'/_static/sphinxheader.png]</span></p></li>' in content)
365+
'/_static/sphinx-logo.svg]</span></p></li>' in content)
366366

367367

368368
@pytest.mark.sphinx('epub', testroot='toctree-duplicated')

tests/test_build_html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def test_html_download_role(app, status, warning):
500500
assert ('<li><p><code class="xref download docutils literal notranslate">'
501501
'<span class="pre">not_found.dat</span></code></p></li>' in content)
502502
assert ('<li><p><a class="reference download external" download="" '
503-
'href="http://www.sphinx-doc.org/en/master/_static/sphinxheader.png">'
503+
'href="http://www.sphinx-doc.org/en/master/_static/sphinx-logo.svg">'
504504
'<code class="xref download docutils literal notranslate">'
505505
'<span class="pre">Sphinx</span> <span class="pre">logo</span>'
506506
'</code></a></p></li>' in content)

0 commit comments

Comments
 (0)