asciidoctor-accelerated-mobile-pages 0.1.4.pre → 0.1.5.pre
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c1ad9a3e86529a17b0455cdc75da1a1253adfcb
|
4
|
+
data.tar.gz: 9634a5c4ea94d4425c5ebc73d56fbc7148fe7403
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1db9f5119b8afcaadb7f25ce7bd2b48c559e5c0af64455f7f0f2ebb4a1dc0cbe48aba6c4c17a466a1e018dcbd0246c447b369c5878ffb1ba071f270b077274c6
|
7
|
+
data.tar.gz: f2881302030404b75389c993fb37ba39580358083906528f566ff158c3fd5ca05117c19bed1c2ff995f474a6398f3dd1b3e9d3130afbb50d8e9faa33e6c3b4f9
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-accelerated-mobile-pages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fritz Lee
|
@@ -79,7 +79,6 @@ files:
|
|
79
79
|
- lib/asciidoctor-accelerated-mobile-pages.rb
|
80
80
|
- lib/asciidoctor-accelerated-mobile-pages/converter.rb
|
81
81
|
- lib/asciidoctor-accelerated-mobile-pages/version.rb
|
82
|
-
- templates/erb/document.html.erb
|
83
82
|
- templates/slim/block_image.html.slim
|
84
83
|
- templates/slim/document.html.slim
|
85
84
|
- templates/slim/inline_image.html.slim
|
@@ -1,149 +0,0 @@
|
|
1
|
-
<%#encoding:UTF-8%><!DOCTYPE html>
|
2
|
-
<html<%= (attr? :nolang) ? nil : %( lang="#{attr :lang, 'en'}") %> amp>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=<%= attr :encoding %>">
|
5
|
-
<meta name="generator" content="Asciidoctor <%= attr 'asciidoctor-version' %>">
|
6
|
-
[:description, :keywords, :author, :copyright].each do |key|
|
7
|
-
if attr? key %>
|
8
|
-
<meta name="<%= key %>" content="<%= attr key %>"><%
|
9
|
-
end
|
10
|
-
end %>
|
11
|
-
<script async src="https://cdn.ampproject.org/v0.js"></script>
|
12
|
-
<title><%= doctitle(:sanitize => true) || (attr 'untitled-label') %></title><%
|
13
|
-
if Asciidoctor::DEFAULT_STYLESHEET_KEYS.include?(attr :stylesheet)
|
14
|
-
if @safe >= Asciidoctor::SafeMode::SECURE || (attr? :linkcss) %>
|
15
|
-
<link rel="canonical" href="http://example.ampproject.org/article-metadata.html" />
|
16
|
-
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
|
17
|
-
<script type="application/ld+json">
|
18
|
-
{
|
19
|
-
"@context": "http://schema.org",
|
20
|
-
"@type": "NewsArticle",
|
21
|
-
"headline": "Open-source framework for publishing content",
|
22
|
-
"datePublished": "2015-10-07T12:02:41Z",
|
23
|
-
"image": [
|
24
|
-
"logo.jpg"
|
25
|
-
]
|
26
|
-
}
|
27
|
-
</script>
|
28
|
-
<style amp-boilerplate>
|
29
|
-
body{
|
30
|
-
-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;
|
31
|
-
-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;
|
32
|
-
-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;
|
33
|
-
animation:-amp-start 8s steps(1,end) 0s 1 normal both
|
34
|
-
}
|
35
|
-
@-webkit-keyframes -amp-start{
|
36
|
-
from{visibility:hidden}to{visibility:visible}
|
37
|
-
}
|
38
|
-
@-moz-keyframes -amp-start{
|
39
|
-
from{visibility:hidden}to{visibility:visible}
|
40
|
-
}
|
41
|
-
@-ms-keyframes -amp-start{
|
42
|
-
from{visibility:hidden}to{visibility:visible}
|
43
|
-
}
|
44
|
-
@-o-keyframes -amp-start{
|
45
|
-
from{visibility:hidden}to{visibility:visible}
|
46
|
-
}
|
47
|
-
@keyframes -amp-start{
|
48
|
-
from{visibility:hidden}to{visibility:visible}
|
49
|
-
}
|
50
|
-
</style>
|
51
|
-
<noscript>
|
52
|
-
<style amp-boilerplate>
|
53
|
-
body{
|
54
|
-
-webkit-animation:none;
|
55
|
-
-moz-animation:none;
|
56
|
-
-ms-animation:none;
|
57
|
-
animation:none
|
58
|
-
}
|
59
|
-
</style>
|
60
|
-
</noscript>
|
61
|
-
<%= (docinfo_content = docinfo).empty? ? nil : %(
|
62
|
-
#{docinfo_content}) %>
|
63
|
-
</head>
|
64
|
-
<body><%
|
65
|
-
unless noheader %>
|
66
|
-
<div id="header"><%
|
67
|
-
if doctype == 'manpage' %>
|
68
|
-
<h1><%= doctitle %> Manual Page</h1><%
|
69
|
-
if (attr? :toc) && (attr? 'toc-placement', 'auto') %>
|
70
|
-
<div id="toc" class="<%= attr 'toc-class', 'toc' %>">
|
71
|
-
<div id="toctitle"><%= attr 'toc-title' %></div>
|
72
|
-
<%= converter.convert self, 'outline' %>
|
73
|
-
</div><%
|
74
|
-
end %>
|
75
|
-
<h2><%= attr 'manname-title' %></h2>
|
76
|
-
<div class="sectionbody">
|
77
|
-
<p><%= %(#{attr :manname} - #{attr :manpurpose}) %></p>
|
78
|
-
</div><%
|
79
|
-
else
|
80
|
-
if has_header?
|
81
|
-
unless notitle %>
|
82
|
-
<h1><%= @header.title %></h1><%
|
83
|
-
end
|
84
|
-
if (attr? :author) || (attr? :revnumber) || (attr? :revdate) || (attr? :revremark) %>
|
85
|
-
<div class="details"><%
|
86
|
-
if attr? :author %>
|
87
|
-
<span id="author" class="author"><%= attr :author %></span><br><%
|
88
|
-
if attr? :email %>
|
89
|
-
<span id="email" class="email"><%= sub_macros(attr :email) %></span><br><%
|
90
|
-
end
|
91
|
-
if (authorcount = (attr :authorcount).to_i) > 1
|
92
|
-
(2..authorcount).each do |idx| %>
|
93
|
-
<span id="author<%= idx %>" class="author"><%= attr %(author_#{idx}) %></span><br><%
|
94
|
-
if attr? %(email_#{idx}) %>
|
95
|
-
<span id="email<%= idx %>" class="email"><%= sub_macros(attr %(email_#{idx})) %></span><br><%
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
100
|
-
if attr? :revnumber %>
|
101
|
-
<span id="revnumber"><%= ((attr 'version-label') || '').downcase %> <%= attr :revnumber %><%= attr?(:revdate) ? ',' : '' %></span><%
|
102
|
-
end
|
103
|
-
if attr? :revdate %>
|
104
|
-
<span id="revdate"><%= attr :revdate %></span><%
|
105
|
-
end
|
106
|
-
if attr? :revremark %>
|
107
|
-
<br>
|
108
|
-
<span id="revremark"><%= attr :revremark %></span><%
|
109
|
-
end %>
|
110
|
-
</div><%
|
111
|
-
end
|
112
|
-
end
|
113
|
-
if (attr? :toc) && (attr? 'toc-placement', 'auto') %>
|
114
|
-
<div id="toc" class="<%= attr 'toc-class', 'toc' %>">
|
115
|
-
<div id="toctitle"><%= attr 'toc-title' %></div>
|
116
|
-
<%= converter.convert self, 'outline' %>
|
117
|
-
</div><%
|
118
|
-
end
|
119
|
-
end %>
|
120
|
-
</div><%
|
121
|
-
end %>
|
122
|
-
<div id="content">
|
123
|
-
<%= content %>
|
124
|
-
</div><%
|
125
|
-
unless !footnotes? || attr?(:nofootnotes) %>
|
126
|
-
<div id="footnotes">
|
127
|
-
<hr><%
|
128
|
-
footnotes.each do |fn| %>
|
129
|
-
<div class="footnote" id="_footnote_<%= fn.index %>">
|
130
|
-
<a href="#_footnoteref_<%= fn.index %>"><%= fn.index %></a>. <%= fn.text %>
|
131
|
-
</div><%
|
132
|
-
end %>
|
133
|
-
</div><%
|
134
|
-
end %><%
|
135
|
-
unless nofooter %>
|
136
|
-
<div id="footer">
|
137
|
-
<div id="footer-text"><%
|
138
|
-
if attr? :revnumber %>
|
139
|
-
<%= %(#{attr 'version-label'} #{attr :revnumber}) %><br><%
|
140
|
-
end
|
141
|
-
if attr? 'last-update-label' %>
|
142
|
-
<%= %(#{attr 'last-update-label'} #{attr :docdatetime}) %><%
|
143
|
-
end %><%= (docinfo_content = (docinfo :footer)).empty? ? nil : %(
|
144
|
-
#{docinfo_content}) %>
|
145
|
-
</div>
|
146
|
-
</div><%
|
147
|
-
end %>
|
148
|
-
</body>
|
149
|
-
</html>
|