metanorma-acme 0.3.7 → 1.0.0

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
  SHA256:
3
- metadata.gz: 4c024bf3606839917c63921cb709f5bbb246f1072aedaa04e69f88a1df73010e
4
- data.tar.gz: a6675d8784fa235b2e40da2b227e3e56b550544fa45526ed1ab65a77d2e5e351
3
+ metadata.gz: 5066726fbb6db933feb0ccb5416e8b072c286aaa323e285c27be4b58855fe2f1
4
+ data.tar.gz: 07cd34c4ab58ca5736cf9e40d60f10be590db240db830247e6c2ff8641fd93b3
5
5
  SHA512:
6
- metadata.gz: dede4269b2a92a60999e367c4263ac91b59c57ae55c9de58ddedc5aacb98c3eb4307fd7e04f49654ec94a124323462878c7d0bc0a3f4b5aea6d21dcc738b404d
7
- data.tar.gz: 1b1d3af83d4185ed170a63144ee122d6073159ad3853ba70e5349879b8ddc45257c6c59ad39a44d0170f2a48220c06354c592cc9ccb6f0d55cc9285c3a8d782c
6
+ metadata.gz: ddaff26c690525a0652e8939eb743d956808d895422e1597e8bdc966f7aa47dd2e062283bd6c0acc83784359da5778fc1db3781b72d424bd1b28b2c0ddd207ca
7
+ data.tar.gz: 68139adfdf84e50bc1dec984e2e6dee8fcbc2d3678bfab0d06753273d3bd121246b173b3e84c13ffabb526944b178e9b2b589f98681123d08a7da1b597e2dbdf
@@ -59,10 +59,10 @@ time, mark, audio, video {
59
59
 
60
60
 
61
61
  html, body, div, span, applet, object, iframe,
62
- p, blockquote, pre,
63
- a, abbr, acronym, address, big, cite, code,
64
- del, dfn, em, img, ins, kbd, q, s, samp,
65
- small, strike, strong, sub, sup, tt, var,
62
+ p, blockquote,
63
+ a, abbr, acronym, address, big, cite,
64
+ del, dfn, em, img, ins, q, s,
65
+ small, strike, strong, sub, sup, var,
66
66
  b, u, i, center,
67
67
  dl, dt, dd, ol, ul, li,
68
68
  fieldset, form, label, legend,
@@ -74,6 +74,10 @@ time, mark, audio, video {
74
74
  font-family: $bodyfont;
75
75
  }
76
76
 
77
+ code, pre, tt, kbd, samp {
78
+ font-family: $monospacefont;
79
+ }
80
+
77
81
  h1, h2, h3, h4, h5, h6, .h2Annex {
78
82
  font-family: $headerfont;
79
83
  }
@@ -146,7 +150,7 @@ table {
146
150
  */
147
151
 
148
152
 
149
- @media (min-width: 768px) {
153
+ @media screen and (min-width: 768px) {
150
154
  nav {
151
155
  position: fixed;
152
156
  top: 0;
@@ -197,7 +201,7 @@ table {
197
201
  }
198
202
  }
199
203
 
200
- @media (max-width: 768px) {
204
+ @media screen and (max-width: 768px) {
201
205
  #toc {
202
206
  padding: 0 1.5em 0 1.5em;
203
207
  overflow: visible;
@@ -0,0 +1,70 @@
1
+ <script>
2
+ //TOC generation
3
+ $('#toc').toc({
4
+ 'selectors': 'h1,h2:not(.TermNum)', //elements to use as headings
5
+ 'container': 'main', //element to find all selectors in
6
+ 'smoothScrolling': true, //enable or disable smooth scrolling on click
7
+ 'prefix': 'toc', //prefix for anchor tags and class names
8
+ 'onHighlight': function(el) {}, //called when a new section is highlighted
9
+ 'highlightOnScroll': false, //add class to heading that is currently in focus
10
+ 'highlightOffset': 100, //offset to trigger the next headline
11
+ 'anchorName': function(i, heading, prefix) { //custom function for anchor name
12
+ return prefix+i;
13
+ },
14
+ 'headerText': function(i, heading, $heading) { //custom function building the header-item text
15
+ return $heading.text();
16
+ },
17
+ 'itemClass': function(i, heading, $heading, prefix) { // custom function for item class
18
+ return $heading[0].tagName.toLowerCase();
19
+ }
20
+ });
21
+
22
+ </script>
23
+
24
+ <script>
25
+ //TOC toggle animation
26
+ $('#toggle').on('click', function(){
27
+ if( $('nav').is(':visible') ) {
28
+ $('nav').animate({ 'left': '-353px' }, 'slow', function(){
29
+ $('nav').hide();
30
+ });
31
+ $('.container').animate({ 'padding-left': '31px' }, 'slow');
32
+ }
33
+ else {
34
+ $('nav').show();
35
+ $('nav').animate({ 'left': '0px' }, 'slow');
36
+ $('.container').animate({ 'padding-left': '360px' }, 'slow');
37
+ }
38
+ });
39
+ </script>
40
+
41
+ <script>
42
+ // Scroll to top button
43
+ window.onscroll = function() {scrollFunction()};
44
+
45
+ function scrollFunction() {
46
+ if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
47
+ document.getElementById("myBtn").style.display = "block";
48
+ } else {
49
+ document.getElementById("myBtn").style.display = "none";
50
+ }
51
+ }
52
+
53
+ // When the user clicks on the button, scroll to the top of the document
54
+ function topFunction() {
55
+ document.body.scrollTop = 0;
56
+ document.documentElement.scrollTop = 0;
57
+ }
58
+ </script>
59
+
60
+ <script>
61
+ $(document).ready(function() {
62
+ $('[id^=toc]').each(function ()
63
+ {
64
+ var currentToc = $(this);
65
+ var url = window.location.href;
66
+ currentToc.wrap("<a href='" + url + "#" + currentToc.attr("id") + "' </a>");
67
+ });
68
+ });
69
+ </script>
70
+
@@ -10,7 +10,7 @@ module IsoDoc
10
10
  end
11
11
 
12
12
  def title(isoxml, _out)
13
- main = isoxml&.at(ns("//title[@language='en']"))&.text
13
+ main = isoxml&.at(ns("//bibdata/title[@language='en']"))&.text
14
14
  set(:doctitle, main)
15
15
  end
16
16
 
@@ -19,7 +19,7 @@ module IsoDoc
19
19
  end
20
20
 
21
21
  def author(isoxml, _out)
22
- tc = isoxml.at(ns("//editorialgroup/committee"))
22
+ tc = isoxml.at(ns("//bibdata/editorialgroup/committee"))
23
23
  set(:tc, tc.text) if tc
24
24
  end
25
25
 
@@ -28,7 +28,7 @@ module IsoDoc
28
28
  htmlstylesheet: html_doc_path("htmlstyle.scss"),
29
29
  htmlcoverpage: html_doc_path("html_acme_titlepage.html"),
30
30
  htmlintropage: html_doc_path("html_acme_intro.html"),
31
- scripts: html_doc_path("scripts.html"),
31
+ scripts_pdf: html_doc_path("scripts.pdf.html"),
32
32
  }
33
33
  end
34
34
 
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Acme
3
- VERSION = "0.3.7"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_dependency "ruby-jing"
31
31
 
32
32
  spec.add_dependency "metanorma-standoc", "~> 1.0.0"
33
- spec.add_dependency "isodoc", "~> 0.8.8"
33
+ spec.add_dependency "isodoc", "~> 0.9.0"
34
34
 
35
35
  spec.add_development_dependency "bundler", "~> 1.15"
36
36
  spec.add_development_dependency "byebug", "~> 9.1"
@@ -43,5 +43,5 @@ Gem::Specification.new do |spec|
43
43
  spec.add_development_dependency "simplecov", "~> 0.15"
44
44
  spec.add_development_dependency "timecop", "~> 0.9"
45
45
  spec.add_development_dependency "metanorma", "~> 0.2.5"
46
- spec.add_development_dependency "metanorma-cli", "~> 0.0.1"
46
+ spec.add_development_dependency "metanorma-cli", "~> 1.0.0"
47
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-acme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-01 00:00:00.000000000 Z
11
+ date: 2018-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.8.8
75
+ version: 0.9.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.8.8
82
+ version: 0.9.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -240,14 +240,14 @@ dependencies:
240
240
  requirements:
241
241
  - - "~>"
242
242
  - !ruby/object:Gem::Version
243
- version: 0.0.1
243
+ version: 1.0.0
244
244
  type: :development
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
248
  - - "~>"
249
249
  - !ruby/object:Gem::Version
250
- version: 0.0.1
250
+ version: 1.0.0
251
251
  description: |
252
252
  Metanorma for the (fictitious) Acme Corp.
253
253
 
@@ -283,6 +283,7 @@ files:
283
283
  - lib/isodoc/acme/html/htmlstyle.scss
284
284
  - lib/isodoc/acme/html/logo.jpg
285
285
  - lib/isodoc/acme/html/scripts.html
286
+ - lib/isodoc/acme/html/scripts.pdf.html
286
287
  - lib/isodoc/acme/html/word_acme_intro.html
287
288
  - lib/isodoc/acme/html/word_acme_titlepage.html
288
289
  - lib/isodoc/acme/html/wordstyle.scss