Skip to content

Commit c7cc46f

Browse files
committed
ghc: patch readthedocs layout to work with our sphinx
1 parent d4e66cc commit c7cc46f

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Adapted from changes to sphinx_rtd_theme (which is vendored in ghc):
2+
commit d34b71bb0977b4265ceff07955e974cfa73a2405
3+
From: Manuel Kaufmann <humitos@gmail.com>
4+
Date: Tue, 29 Aug 2023 11:43:41 +0200
5+
Subject: [PATCH] Use `css_tag` helper to inject CSS files (#1519)
6+
7+
* Use `css_tag` helper to inject CSS files
8+
9+
* Typo
10+
---
11+
sphinx_rtd_theme/layout.html | 8 ++------
12+
1 file changed, 2 insertions(+), 6 deletions(-)
13+
14+
diff --git a/docs/users_guide/rtd-theme/layout.html b/docs/users_guide/rtd-theme/layout.html
15+
index a83bdd29e..f3de11ad0 100644
16+
--- a/docs/users_guide/rtd-theme/layout.html
17+
+++ b/docs/users_guide/rtd-theme/layout.html
18+
@@ -29,11 +29,7 @@
19+
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
20+
{%- endif %}
21+
- {%- for css in css_files %}
22+
+ {%- for css_file in css_files %}
23+
- {%- if css|attr("rel") %}
24+
- <link rel="{{ css.rel }}" href="{{ pathto(css.filename, 1) }}" type="text/css"{% if css.title is not none %} title="{{ css.title }}"{% endif %} />
25+
- {%- else %}
26+
- <link rel="stylesheet" href="{{ pathto(css, 1) }}" type="text/css" />
27+
- {%- endif %}
28+
+ {{ css_tag(css_file) }}
29+
{%- endfor %}
30+
31+
{%- for cssfile in extra_css_files %}

srcpkgs/ghc/template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
pkgname=ghc
33
# Keep this synchronized with http://www.stackage.org/lts
44
version=9.8.4
5-
revision=1
5+
revision=2
66
build_helper="haskell"
77
_configure_args="--prefix=/usr"
88
_hadrian_args="--prefix=/usr"

0 commit comments

Comments
 (0)