asciidoctor-html 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/asciidoctor/html/template.rb +26 -26
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b35aff66a6ce555ea9270af89b57fa89dc493b80d3fc22440ebf578c2f065c54
|
4
|
+
data.tar.gz: 6e23c60aeed0415d1343c72c77665f1ccbd2d138d4455e981520c738c5af323e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10e3d7774bc4e42a93d7e7eb93bec7883831b4102c1bbd21e897345397cf46b4c1a2e0e09c7c0c9ae89d77a2f39ce3c577256692895a9c1155830b0bb7ac814f
|
7
|
+
data.tar.gz: 70eedeaecafe1e83a15703d963feb2058d8a5003db985c44306eec0a2f481bcc95ef6bc0e7d0b470361ae83b546f01b1e6a2e7f983615b103e3e7e73ce1824f5
|
data/CHANGELOG.md
CHANGED
@@ -111,32 +111,30 @@ module Asciidoctor
|
|
111
111
|
|
112
112
|
def self.head(title, description, authors, langs)
|
113
113
|
<<~HTML
|
114
|
-
<
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
crossorigin="anonymous"></script>
|
139
|
-
</head>
|
114
|
+
<meta charset="utf-8">
|
115
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
116
|
+
#{%(<meta name="description" content="#{description}">) if description}
|
117
|
+
#{%(<meta name="author" content="#{authors}">) if authors}
|
118
|
+
<title>#{title}</title>
|
119
|
+
<link rel="apple-touch-icon" sizes="180x180" href="#{FAVICON_PATH}/apple-touch-icon.png">
|
120
|
+
<link rel="icon" type="image/png" sizes="32x32" href="#{FAVICON_PATH}/favicon-32x32.png">
|
121
|
+
<link rel="icon" type="image/png" sizes="16x16" href="#{FAVICON_PATH}/favicon-16x16.png">
|
122
|
+
<link rel="manifest" href="#{FAVICON_PATH}/site.webmanifest" crossorigin="anonymous">
|
123
|
+
<link rel="stylesheet" href="#{CSS_PATH}/styles.css">
|
124
|
+
<link rel="stylesheet" href="#{Highlightjs::CDN_PATH}/styles/tomorrow-night-blue.min.css">
|
125
|
+
<script defer src="#{Highlightjs::CDN_PATH}/highlight.min.js"></script>
|
126
|
+
#{highlightjs langs}
|
127
|
+
<script>
|
128
|
+
MathJax = {
|
129
|
+
tex: {
|
130
|
+
inlineMath: {'[+]': [['$', '$']]}
|
131
|
+
}
|
132
|
+
};
|
133
|
+
</script>
|
134
|
+
<script defer src="https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js"></script>
|
135
|
+
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/js/bootstrap.bundle.min.js"
|
136
|
+
integrity="sha384-j1CDi7MgGQ12Z7Qab0qlWQ/Qqz24Gc6BM0thvEMVjHnfYGF0rmFCozFSxQBxwHKO"
|
137
|
+
crossorigin="anonymous"></script>
|
140
138
|
HTML
|
141
139
|
end
|
142
140
|
|
@@ -155,8 +153,10 @@ module Asciidoctor
|
|
155
153
|
<<~HTML
|
156
154
|
<!DOCTYPE html>
|
157
155
|
<html lang="en">
|
156
|
+
<head>
|
158
157
|
#{head opts[:title], opts[:description], opts[:authors], opts[:langs]}
|
159
158
|
#{opts[:at_head_end]}
|
159
|
+
</head>
|
160
160
|
<body>
|
161
161
|
#{sidebar(nav_items) if nav}
|
162
162
|
<div id="page" class="page">
|