metanorma-vsd 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/asciidoctor/vsd/vsd.rng +1 -1
- data/lib/isodoc/vsd/html/scripts.pdf.html +72 -0
- data/lib/metanorma/vsd.rb +1 -29
- data/lib/metanorma/vsd/version.rb +1 -1
- data/metanorma-vsd.gemspec +1 -1
- data/metanorma.yml +19 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3de5699ef99b5c31adece2dbe247306dafd341bd5237630e80c08ffb33c80dbb
|
4
|
+
data.tar.gz: eca03f3d976de1a82672365bed41d1d3bc2ef8fcea0d58456d568d8a61b0f42e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d32ba9e34271df7f7657f54119a3df7fd45ec469d96d0f4206ee6d95bccfd7c6f2972917901cd4b0d50ff9745cc879577d72a227aec814ff4a495d6bb8ba9b0b
|
7
|
+
data.tar.gz: 3a72bd9ae2ed98e99e25c8b73d5b7d313764b96a8d1a77c984c8aec3e6db05ec67dec57d92fc84aae48f3cb982e8e22943ce8258405fa650749769d73d010fb3
|
data/lib/asciidoctor/vsd/vsd.rng
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
|
2
|
+
<grammar ns="https://www.metanorma.org/ns/vsd" xmlns="http://relaxng.org/ns/structure/1.0">
|
3
3
|
<!--
|
4
4
|
Currently we inherit from a namespaced grammar, isostandard. Until we inherit from isodoc,
|
5
5
|
we cannot have a new default namespace: we will end up with a grammar with two different
|
@@ -0,0 +1,72 @@
|
|
1
|
+
<script>
|
2
|
+
//TOC generation
|
3
|
+
$('#toc').toc({
|
4
|
+
'selectors': toclevel(), //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
|
+
/*
|
62
|
+
$(document).ready(function() {
|
63
|
+
$('[id^=toc]').each(function ()
|
64
|
+
{
|
65
|
+
var currentToc = $(this);
|
66
|
+
var url = window.location.href;
|
67
|
+
currentToc.wrap("<a href='" + url + "#" + currentToc.attr("id") + "' </a>");
|
68
|
+
});
|
69
|
+
});
|
70
|
+
*/
|
71
|
+
</script>
|
72
|
+
|
data/lib/metanorma/vsd.rb
CHANGED
@@ -4,38 +4,10 @@ require "metanorma/vsd/processor"
|
|
4
4
|
|
5
5
|
module Metanorma
|
6
6
|
module Vsd
|
7
|
-
ORGANIZATION_NAME_SHORT = 'Vita Green'.freeze
|
8
|
-
ORGANIZATION_NAME_LONG = 'Vita Green'.freeze
|
9
|
-
DOCUMENT_NAMESPACE = 'https://open.ribose.com/standards/vsd'.freeze
|
10
|
-
|
11
7
|
class Configuration < Metanorma::Acme::Configuration
|
12
8
|
def initialize(*args)
|
13
|
-
self.organization_name_short ||= ORGANIZATION_NAME_SHORT
|
14
|
-
self.organization_name_long ||= ORGANIZATION_NAME_LONG
|
15
|
-
self.document_namespace ||= DOCUMENT_NAMESPACE
|
16
|
-
html_configs ||= File.join(File.expand_path('config', __dir__), 'vsd_html.yml')
|
17
|
-
isodoc_vsd_html_folder ||= File.join(File.expand_path('../isodoc', __dir__),
|
18
|
-
'vsd',
|
19
|
-
'html')
|
20
|
-
self.wordstylesheet ||= File.join(isodoc_vsd_html_folder, 'wordstyle.scss')
|
21
|
-
self.standardstylesheet ||= File.join(isodoc_vsd_html_folder, 'vsd.scss')
|
22
|
-
self.header ||= File.join(isodoc_vsd_html_folder, 'header.html')
|
23
|
-
self.wordcoverpage ||= File.join(isodoc_vsd_html_folder,
|
24
|
-
'word_vsd_titlepage.html')
|
25
|
-
self.wordintropage ||= File.join(isodoc_vsd_html_folder,
|
26
|
-
'word_vsd_intro.html')
|
27
|
-
self.htmlstylesheet ||= File.join(isodoc_vsd_html_folder,
|
28
|
-
'htmlstyle.scss')
|
29
|
-
self.htmlcoverpage ||= File.join(isodoc_vsd_html_folder,
|
30
|
-
'html_vsd_titlepage.html')
|
31
|
-
self.htmlintropage ||= File.join(isodoc_vsd_html_folder,
|
32
|
-
'html_vsd_intro.html')
|
33
|
-
self.scripts ||= File.join(isodoc_vsd_html_folder, 'scripts.html')
|
34
|
-
self.logo_path ||= File.join(isodoc_vsd_html_folder, 'logo.png')
|
35
|
-
self.xml_root_tag ||= 'vsd-standard'
|
36
|
-
vsd_rng_folder ||= File.join(File.expand_path('asciidoctor', __dir__), 'vsd')
|
37
|
-
self.validate_rng_file ||= File.join(vsd_rng_folder, 'vsd.rng')
|
38
9
|
super
|
10
|
+
html_configs ||= File.join(File.expand_path('config', __dir__), 'vsd_html.yml')
|
39
11
|
end
|
40
12
|
end
|
41
13
|
|
data/metanorma-vsd.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
|
29
29
|
spec.add_dependency "htmlentities", "~> 4.3.4"
|
30
30
|
#spec.add_dependency "nokogiri"
|
31
|
-
spec.add_dependency "metanorma-
|
31
|
+
spec.add_dependency "metanorma-standoc", "~> 1.3.0"
|
32
32
|
spec.add_dependency "metanorma-acme", "~> 1.4.0"
|
33
33
|
spec.add_dependency "isodoc", "~> 1.0.0"
|
34
34
|
|
data/metanorma.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
organization_name_short: Vita Green
|
2
|
+
organization_name_long: Vita Green
|
3
|
+
document_namespace: https://www.metanorma.org/ns/vsd
|
4
|
+
xml_root_tag: 'vsd-standard'
|
5
|
+
logo_path: lib/isodoc/vsd/html/logo.png
|
6
|
+
validate_rng_file: lib/asciidoctor/vsd/vsd.rng
|
7
|
+
htmlcoverpage: lib/isodoc/vsd/html/html_vsd_titlepage.html
|
8
|
+
htmlintropage: lib/isodoc/vsd/html/html_vsd_intro.html
|
9
|
+
htmlstylesheet: lib/isodoc/vsd/html/htmlstyle.scss
|
10
|
+
scripts: lib/isodoc/vsd/html/scripts.html
|
11
|
+
scripts_pdf: lib/isodoc/vsd/html/scripts.pdf.html
|
12
|
+
standardstylesheet: lib/isodoc/vsd/html/vsd.scss
|
13
|
+
header: lib/isodoc/vsd/html/header.html
|
14
|
+
wordcoverpage: lib/isodoc/vsd/html/word_vsd_titlepage.html
|
15
|
+
wordintropage: lib/isodoc/vsd/html/word_vsd_intro.html
|
16
|
+
wordstylesheet: lib/isodoc/vsd/html/wordstyle.scss
|
17
|
+
published_stages:
|
18
|
+
- published
|
19
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-vsd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 4.3.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: metanorma-
|
28
|
+
name: metanorma-standoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
@@ -228,6 +228,7 @@ files:
|
|
228
228
|
- lib/isodoc/vsd/html/htmlstyle.scss
|
229
229
|
- lib/isodoc/vsd/html/logo.png
|
230
230
|
- lib/isodoc/vsd/html/scripts.html
|
231
|
+
- lib/isodoc/vsd/html/scripts.pdf.html
|
231
232
|
- lib/isodoc/vsd/html/vsd.scss
|
232
233
|
- lib/isodoc/vsd/html/word_vsd_intro.html
|
233
234
|
- lib/isodoc/vsd/html/word_vsd_titlepage.html
|
@@ -241,6 +242,7 @@ files:
|
|
241
242
|
- lib/metanorma/vsd/processor.rb
|
242
243
|
- lib/metanorma/vsd/version.rb
|
243
244
|
- metanorma-vsd.gemspec
|
245
|
+
- metanorma.yml
|
244
246
|
homepage: https://github.com/metanorma/metanorma-vsd
|
245
247
|
licenses:
|
246
248
|
- BSD-2-Clause
|