anatomy 0.2.4 → 0.2.5

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: ea287c4ca9d5cf1a661f527abdce69c03699641f
4
- data.tar.gz: e0ad0e3c7b9d51c696a2801d497d74c74d3dbe9e
3
+ metadata.gz: 46f98aa9588f133df3cd0cc9c552ee7699533c26
4
+ data.tar.gz: 18db6539cac1e920243501ed165b4da70fa5a717
5
5
  SHA512:
6
- metadata.gz: 51121a52a93c3231a8fb703e980046f9a30c36ab7da93f58594fb20f927c83983975cf4862068198b7e2dba05850991b3fd0d83d59b49095c03a4a53593daf50
7
- data.tar.gz: 537c70611b8f0e4b05b90ecb627f9779606aa1de9a69f6170b3ae1580590f8773a9edbd05612edc01de0b75279550d490b4753b4be367276e008e000831a7430
6
+ metadata.gz: ba430a1c024f4e448761d0eceee7361b79720cb30b60ceebc6ba8824aed34983370aaa505e377a73c02a28c9db73261e3fc7f4e4a8c557f184a8f4ef46ca7285
7
+ data.tar.gz: 0ad1fe02f86099fac2804d6dcdf79057b0555c027b615349bc28b400bbadafeea663a95f280fb9abb2f666f448de53ca0ee8492d5a2951c8d40edd3861a69c87
data/lib/anatomy/html.ay CHANGED
@@ -5,8 +5,11 @@ require("cgi")
5
5
 
6
6
  data(HTMLElement(@name, @attributes = #{}, @body = nil))
7
7
 
8
- fn(attr-to-pair(`.~name)): `(.class -> ~(Atomy Code StringLiteral new(name text to-s)))
9
- fn(attr-to-pair(`#~name)): `(.id -> ~(Atomy Code StringLiteral new(name text to-s)))
8
+ fn(word-name(word)):
9
+ Atomy Code StringLiteral new(word text to-s gsub("_", "-"))
10
+
11
+ fn(attr-to-pair(`.~name)): `(.class -> ~word-name(name))
12
+ fn(attr-to-pair(`#~name)): `(.id -> ~word-name(name))
10
13
  fn(attr-to-pair(`(~x = ~y))): `(.~x -> ~y)
11
14
 
12
15
  macro(<(~name)(~*attrs): ~*body):
@@ -347,7 +347,7 @@ def(template-for(part, out)):
347
347
 
348
348
  def(render-part(part, out = ".", depth = 1)):
349
349
  <div(.section, id = i"section_#{part tag name}"):
350
- <"h#{depth}"(.section_header):
350
+ <"h#{depth}"(.section-header):
351
351
  <a(name = part tag name) {}
352
352
  over(part title)
353
353
 
@@ -12,7 +12,7 @@ def(slides):
12
12
  def(title-slide(title)):
13
13
  data Block new(
14
14
  data Block new(title, .header(1))
15
- .class("slide title_only"))
15
+ .class("slide title-only"))
16
16
 
17
17
  def(title-slide(title, subtitle)):
18
18
  data Block new(
@@ -1,3 +1,3 @@
1
1
  module Anatomy
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
data/public/anatomy.css CHANGED
@@ -100,13 +100,13 @@ blockquote {
100
100
  margin-bottom: 2em;
101
101
  line-height: 1.4em;
102
102
  }
103
- #table_of_contents {
103
+ #table-of-contents {
104
104
  font-size: 1.1em;
105
105
  }
106
- #table_of_contents > li {
106
+ #table-of-contents > li {
107
107
  margin-bottom: 1em;
108
108
  }
109
- #table_of_contents > li > a {
109
+ #table-of-contents > li > a {
110
110
  font-weight: bold;
111
111
  }
112
112
  .toc p {
@@ -203,26 +203,26 @@ div.search:hover {
203
203
  padding: 5px;
204
204
  border: 2px solid #e0e0e0;
205
205
  }
206
- .search .search_results {
206
+ .search .search-results {
207
207
  margin: 0;
208
208
  border: 2px solid #e0e0e0;
209
209
  border-top: 0;
210
210
  display: none;
211
211
  background: #fff;
212
212
  }
213
- .search .search_results li {
213
+ .search .search-results li {
214
214
  list-style: none;
215
215
  padding: 5px;
216
216
  }
217
- .search .search_results .parent {
217
+ .search .search-results .parent {
218
218
  font-size: 12px;
219
219
  font-style: italic;
220
220
  color: #505050;
221
221
  }
222
- .search .search_results .parent a {
222
+ .search .search-results .parent a {
223
223
  color: #202020;
224
224
  }
225
- .search .search_results .tag {
225
+ .search .search-results .tag {
226
226
  font-style: italic;
227
227
  color: #505050;
228
228
  }
@@ -290,7 +290,7 @@ table th, table td {
290
290
  padding: 0 .5em;
291
291
  }
292
292
 
293
- .margin_note {
293
+ .margin-note {
294
294
  width: 13em;
295
295
  float: right;
296
296
  margin-top: -1.5em;
@@ -321,7 +321,7 @@ table th, table td {
321
321
  color: #d0d0d0;
322
322
  }
323
323
 
324
- .error_output {
324
+ .error-output {
325
325
  display: block;
326
326
  font-style: italic;
327
327
  background: #fee;
@@ -336,15 +336,15 @@ table th, table td {
336
336
  z-index: 1;
337
337
  background: rgba(255, 255, 255, .5);
338
338
  }
339
- .annotated_source {
339
+ .annotated-source {
340
340
  width: 100%;
341
341
  }
342
- .annotated_source thead h1 {
342
+ .annotated-source thead h1 {
343
343
  line-height: 1em;
344
344
  margin: 1.2em 0 .39em 0;
345
345
  font-weight: bold;
346
346
  }
347
- .annotated_source .prose {
347
+ .annotated-source .prose {
348
348
  background: #fff;
349
349
  width: 30em;
350
350
  max-width: 30em;
@@ -354,14 +354,14 @@ table th, table td {
354
354
  vertical-align: top;
355
355
  text-align: left;
356
356
  }
357
- .annotated_source .prose code,
358
- .annotated_source .prose pre {
357
+ .annotated-source .prose code,
358
+ .annotated-source .prose pre {
359
359
  background: #f8f8ff;
360
360
  border: .1em solid #dedede;
361
361
  padding: 0 0.2em;
362
362
  overflow-x: auto;
363
363
  }
364
- .annotated_source .code {
364
+ .annotated-source .code {
365
365
  background: #f5f5ff;
366
366
  border-left: .1em solid #e5e5e5;
367
367
  padding: 1.1em 2em 0em 1.5em;
@@ -384,7 +384,7 @@ table th, table td {
384
384
  .slides > .search {
385
385
  display: none;
386
386
  }
387
- .slides #content .section > .section_header {
387
+ .slides #content .section > .section-header {
388
388
  display: none;
389
389
  }
390
390
  .slides #content .section > p {
@@ -440,14 +440,14 @@ table th, table td {
440
440
  padding-bottom: .5em;
441
441
  }
442
442
  .slide.title,
443
- .slide.title_only {
443
+ .slide.title-only {
444
444
  display: table;
445
445
  width: 1024px;
446
446
  height: 768px;
447
447
  padding: 0;
448
448
  }
449
449
  .slide.title .body,
450
- .slide.title_only h1 {
450
+ .slide.title-only h1 {
451
451
  display: table-cell;
452
452
  vertical-align: middle;
453
453
  }
@@ -463,7 +463,7 @@ table th, table td {
463
463
  text-align: center;
464
464
  padding-bottom: 1em;
465
465
  }
466
- .slide.title_only h1 {
466
+ .slide.title-only h1 {
467
467
  text-align: center;
468
468
  font-size: 5em;
469
469
  }
data/public/main.js CHANGED
@@ -108,10 +108,10 @@ function bindTouch() {
108
108
 
109
109
  function bindSearch() {
110
110
  $("#search").keyup(function(){
111
- $(".search_results").empty();
111
+ $(".search-results").empty();
112
112
 
113
113
  if (!$("#search").val().length) {
114
- $(".search_results").hide();
114
+ $(".search-results").hide();
115
115
  return;
116
116
  }
117
117
 
@@ -131,15 +131,15 @@ function bindSearch() {
131
131
  matches.push(url);
132
132
 
133
133
  if (k == q)
134
- $(".search_results").prepend(item);
134
+ $(".search-results").prepend(item);
135
135
  else
136
- $(".search_results").append(item);
136
+ $(".search-results").append(item);
137
137
  });
138
138
 
139
139
  if (matches.length == 0)
140
- $(".search_results").hide();
140
+ $(".search-results").hide();
141
141
  else
142
- $(".search_results").show();
142
+ $(".search-results").show();
143
143
  });
144
144
  }
145
145
 
metadata CHANGED
@@ -1,21 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anatomy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Suraci
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-15 00:00:00.000000000 Z
11
+ date: 2016-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- version_requirements: !ruby/object:Gem::Requirement
15
- requirements:
16
- - - "~>"
17
- - !ruby/object:Gem::Version
18
- version: 0.6.3
19
14
  name: atomy
20
15
  type: :runtime
21
16
  requirement: !ruby/object:Gem::Requirement
@@ -24,12 +19,12 @@ dependencies:
24
19
  - !ruby/object:Gem::Version
25
20
  version: 0.6.3
26
21
  prerelease: false
27
- - !ruby/object:Gem::Dependency
28
22
  version_requirements: !ruby/object:Gem::Requirement
29
23
  requirements:
30
24
  - - "~>"
31
25
  - !ruby/object:Gem::Version
32
- version: 0.2.0
26
+ version: 0.6.3
27
+ - !ruby/object:Gem::Dependency
33
28
  name: broomhlda
34
29
  type: :runtime
35
30
  requirement: !ruby/object:Gem::Requirement
@@ -38,12 +33,12 @@ dependencies:
38
33
  - !ruby/object:Gem::Version
39
34
  version: 0.2.0
40
35
  prerelease: false
41
- - !ruby/object:Gem::Dependency
42
36
  version_requirements: !ruby/object:Gem::Requirement
43
37
  requirements:
44
38
  - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: '1.8'
40
+ version: 0.2.0
41
+ - !ruby/object:Gem::Dependency
47
42
  name: json_pure
48
43
  type: :runtime
49
44
  requirement: !ruby/object:Gem::Requirement
@@ -52,12 +47,12 @@ dependencies:
52
47
  - !ruby/object:Gem::Version
53
48
  version: '1.8'
54
49
  prerelease: false
55
- - !ruby/object:Gem::Dependency
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
51
  requirements:
58
52
  - - "~>"
59
53
  - !ruby/object:Gem::Version
60
- version: '10.4'
54
+ version: '1.8'
55
+ - !ruby/object:Gem::Dependency
61
56
  name: rake
62
57
  type: :development
63
58
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +61,11 @@ dependencies:
66
61
  - !ruby/object:Gem::Version
67
62
  version: '10.4'
68
63
  prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.4'
69
69
  description: "\n A document authoring system inspired by Scribble.\n "
70
70
  email:
71
71
  - suraci.alex@gmail.com