Skip to content

Commit 6c23024

Browse files
authored
Merge pull request #448 from rtfd/fix-pygments
Fix #166: Add missing pygments css link
2 parents d746572 + 7df96c0 commit 6c23024

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

sphinx_rtd_theme/layout.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
{% if not READTHEDOCS %}
4343
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
4444
{% endif %}
45-
45+
46+
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
47+
4648
{% for cssfile in css_files %}
4749
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
4850
{% endfor %}

sphinx_rtd_theme/theme.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[theme]
22
inherit = basic
33
stylesheet = css/theme.css
4+
pygments_style = default
45

56
[options]
67
typekit_id = hiw1hhg

0 commit comments

Comments
 (0)