File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,9 @@ $doctype 5
105
105
$forall Author { name = name' } <- authors md
106
106
<meta name="author" content="#{name'}">
107
107
<link rel="stylesheet" href="#{root}style.css">
108
+ <link rel="stylesheet" href="#{hljsCss}">
109
+ <script src="#{hljsJs}"></script>
110
+ <script>hljs.initHighlightingOnLoad();</script>
108
111
<body>
109
112
#{preEscapedToMarkup $ docsHeader $ target pkg}
110
113
<nav>
@@ -161,6 +164,16 @@ $doctype 5
161
164
documentSortKey (" " , _) = (False , 0 , " " )
162
165
documentSortKey (fp@ (fp1 : _), _) =
163
166
(isUpper fp1, length (filter (== pathSeparator) fp), fp)
167
+ hljsCss :: T. Text
168
+ hljsCss = T. concat
169
+ [ " https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0"
170
+ , " /styles/github.min.css"
171
+ ]
172
+ hljsJs :: T. Text
173
+ hljsJs = T. concat
174
+ [ " https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/"
175
+ , " highlight.min.js"
176
+ ]
164
177
165
178
typeExpression :: BoundModule Docs -> TE. TypeExpression -> Html
166
179
typeExpression _ expr = [shamlet |#{typeExpr expr}|]
@@ -490,7 +503,7 @@ strong code
490
503
pre
491
504
padding: 16px 10px
492
505
background-color: #{gray1}
493
- code
506
+ code, code.hljs
494
507
background: none
495
508
div
496
509
border-top: 1px solid #{gray3}
You can’t perform that action at this time.
0 commit comments