metanorma-rsd 1.0.2 → 1.0.3

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: 1036a938ae664662682ee079f804f9b669215822aff63569e3809c3f3f0d73e0
4
- data.tar.gz: 59a894e40c025eb337d0fd181623c820438df7459bea77f02457167818485c82
3
+ metadata.gz: ff4d0d723db0536c62ec6a8914666da2297495091dd02a53e6830203921f8570
4
+ data.tar.gz: b66f2a5e4f09351100ad77bbce3378962481424ed3a4f0ca260627812945d34f
5
5
  SHA512:
6
- metadata.gz: e912ad04fa89b10a6b393a44306eff16fbf95846a8ed60fc16b771f5c54689705c43045e70e3c892a12f512a7c74a43353aa5f5cf7f81a2e89869b8901c991e3
7
- data.tar.gz: 0a7a1db65b0aa1d1d81dabe3c67b558bee260b4bcf296d5869ba392673b57412d9166ea50fcfe80f63a433a804fa13800a4266079d626b30e7c1e3ae492e615e
6
+ metadata.gz: e5dcbc852de6d8a17e626b8297574e0dcb389091fbe4cddf81b5ef08a54f1e2de3ba38618400f86ede5b310eaef6009b5d839d797073d12a0352ccd948ab520a
7
+ data.tar.gz: fe44fcfbb548ae1293b426b3b52e7f5393c494283fd70a25861f3d6f6e70edcfa39a451cba2ad14a2e2ee5a1311644ea79fa629aa956b2d0314f140a5c4abe33
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module Rsd
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
@@ -57,12 +57,11 @@ time, mark, audio, video {
57
57
  vertical-align: baseline;
58
58
  }
59
59
 
60
-
61
60
  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,
61
+ p, blockquote,
62
+ a, abbr, acronym, address, big, cite,
63
+ del, dfn, em, img, ins, q, s,
64
+ small, strike, strong, sub, sup, var,
66
65
  b, u, i, center,
67
66
  dl, dt, dd, ol, ul, li,
68
67
  fieldset, form, label, legend,
@@ -74,6 +73,10 @@ time, mark, audio, video {
74
73
  font-family: $bodyfont;
75
74
  }
76
75
 
76
+ code, pre, tt, kbd, samp {
77
+ font-family: $monospacefont;
78
+ }
79
+
77
80
  h1, h2, h3, h4, h5, h6, .h2Annex {
78
81
  font-family: $headerfont;
79
82
  }
@@ -146,7 +149,7 @@ table {
146
149
  */
147
150
 
148
151
 
149
- @media (min-width: 768px) {
152
+ @media screen and (min-width: 768px) {
150
153
  nav {
151
154
  position: fixed;
152
155
  top: 0;
@@ -197,7 +200,7 @@ table {
197
200
  }
198
201
  }
199
202
 
200
- @media (max-width: 768px) {
203
+ @media screen and (max-width: 768px) {
201
204
  #toc {
202
205
  padding: 0 1.5em 0 1.5em;
203
206
  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_rsd_titlepage.html"),
30
30
  htmlintropage: html_doc_path("html_rsd_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
 
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "htmlentities", "~> 4.3.4"
32
32
  spec.add_dependency "nokogiri"
33
33
  spec.add_dependency "metanorma-standoc", "~> 1.0.0"
34
- spec.add_dependency "isodoc", "~> 0.8.8"
34
+ spec.add_dependency "isodoc", "~> 0.9.0"
35
35
 
36
36
  spec.add_development_dependency "bundler", "~> 1.15"
37
37
  spec.add_development_dependency "byebug", "~> 9.1"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-rsd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
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
@@ -272,6 +272,7 @@ files:
272
272
  - lib/isodoc/rsd/html/logo.svg
273
273
  - lib/isodoc/rsd/html/rsd.scss
274
274
  - lib/isodoc/rsd/html/scripts.html
275
+ - lib/isodoc/rsd/html/scripts.pdf.html
275
276
  - lib/isodoc/rsd/html/word_rsd_intro.html
276
277
  - lib/isodoc/rsd/html/word_rsd_titlepage.html
277
278
  - lib/isodoc/rsd/html/wordstyle.scss