isodoc 2.12.8 → 2.12.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/isodoc/base_style/scripts.html +27 -14
- data/lib/isodoc/presentation_xml_convert.rb +2 -1
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/xref/xref_gen_seq.rb +1 -29
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07e9e5bf21e51fd8f43a9a7173a75fef2b5763953c2ea308b3d0860ed1fedb66
|
4
|
+
data.tar.gz: 8a8195a4271689359e8149bf037d05f440d7ca0a3363242c68616f053c9bd177
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58941c30a9af219ae12a7154009286107fec41b38615a757a87ba974a23c9cedda4b0fbe7af2b1a674993ef77ba565bab378a1a4a30c19f929c70d7fd66e6f97
|
7
|
+
data.tar.gz: cfbaae3c97005709624a8bb4f1e6015fd834dd98805223e20ec3b8e3560daaaa702d6e533e8c7a02e452dc0b9dab7c4b0d232ba9c34c849ff59f8a05d9ed5245
|
@@ -6,21 +6,34 @@
|
|
6
6
|
</script>
|
7
7
|
|
8
8
|
<script>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
//TOC toggle animation
|
10
|
+
(function() {
|
11
|
+
const jqNav = $('nav');
|
12
|
+
const jqBody = $('body');
|
13
|
+
const jqToggle = $('#toggle');
|
14
|
+
const animationSpeed = 'slow';
|
15
|
+
|
16
|
+
jqToggle.on('click', function() {
|
17
|
+
const isNavVisible = jqNav.is(':visible');
|
18
|
+
const fullNavWidth = jqNav.outerWidth();
|
19
|
+
const navLeft = isNavVisible ? '-' + fullNavWidth + 'px' : '0px';
|
20
|
+
const bodyMarginLeft = isNavVisible ? '0px' : fullNavWidth + 'px';
|
21
|
+
|
22
|
+
// Stop current animations
|
23
|
+
jqNav.stop(true, true);
|
24
|
+
jqBody.stop(true, true);
|
25
|
+
|
26
|
+
if(!isNavVisible) {
|
27
|
+
jqNav.show();
|
28
|
+
}
|
29
|
+
jqNav.animate({'left': navLeft}, animationSpeed, function() {
|
30
|
+
if(isNavVisible) {jqNav.hide()}
|
14
31
|
});
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
$('body').animate({ 'padding-left': '360px' }, 'slow');
|
21
|
-
}
|
22
|
-
});
|
23
|
-
</script>
|
32
|
+
jqBody.animate({'marginLeft': bodyMarginLeft}, animationSpeed);
|
33
|
+
|
34
|
+
});
|
35
|
+
})();
|
36
|
+
</script>
|
24
37
|
|
25
38
|
<script>
|
26
39
|
// Scroll to top button
|
@@ -39,7 +39,7 @@ module IsoDoc
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def conversions(docxml)
|
42
|
-
semantic_xml_insert(docxml)
|
42
|
+
#semantic_xml_insert(docxml)
|
43
43
|
metadata docxml
|
44
44
|
bibdata docxml
|
45
45
|
@xrefs.parse docxml
|
@@ -119,6 +119,7 @@ module IsoDoc
|
|
119
119
|
termcleanup docxml
|
120
120
|
end
|
121
121
|
|
122
|
+
# KILL
|
122
123
|
def semantic_xml_insert(xml)
|
123
124
|
@semantic_xml_insert or return
|
124
125
|
embed = embedable_semantic_xml(xml)
|
data/lib/isodoc/version.rb
CHANGED
@@ -184,7 +184,7 @@ container: false)
|
|
184
184
|
@anchors[elem["id"]][:semx] = @anchors[elem.parent["id"]][:semx] + x
|
185
185
|
@anchors[elem["id"]][:label] =
|
186
186
|
"<span class='fmt-element-name'>#{label}</span> #{@anchors[elem["id"]][:semx]}"
|
187
|
-
@anchors[elem["id"]][:xref] =
|
187
|
+
@anchors[elem["id"]][:xref] = "<span class='fmt-element-name'>#{label}</span> #{@anchors[elem["id"]][:semx]}"
|
188
188
|
end
|
189
189
|
model.permission_parts(elem, id, label, klass).each do |n|
|
190
190
|
@anchors[n[:id]] = anchor_struct(n[:number], n[:elem], n[:label],
|
@@ -309,34 +309,6 @@ container: false)
|
|
309
309
|
end
|
310
310
|
end
|
311
311
|
end
|
312
|
-
|
313
|
-
# TODO remove
|
314
|
-
def hierarchical_permission_children(block, lbl)
|
315
|
-
c = ReqCounter.new
|
316
|
-
block.xpath(ns(REQ_CHILDREN)).noblank.each do |t|
|
317
|
-
m = @reqt_models.model(t["model"])
|
318
|
-
klass, label = reqt2class_nested_label(t, m)
|
319
|
-
id = "#{lbl}#{subreqt_separator}#{c.increment(label, t).print}"
|
320
|
-
sequential_permission_body(c.print, lbl, t, label, klass, m)
|
321
|
-
hierarchical_permission_children(t, id)
|
322
|
-
end
|
323
|
-
end
|
324
|
-
|
325
|
-
# TODO remove
|
326
|
-
def hierarchical_permission_body(id, parent_id, elem, label, klass, model)
|
327
|
-
@anchors[elem["id"]] = model.postprocess_anchor_struct(
|
328
|
-
elem, anchor_struct(id, elem,
|
329
|
-
label, klass, { unnumb: elem["unnumbered"], container: false })
|
330
|
-
)
|
331
|
-
x = "#{subreqt_separator(markup: true)}#{semx(elem, id)}"
|
332
|
-
@anchors[elem["id"]][:label] = "#{semx(elem.parent, parent_id)}#{x}"
|
333
|
-
@anchors[elem["id"]][:xref] = @anchors[elem.parent["id"]][:xref] + x
|
334
|
-
model.permission_parts(elem, id, label, klass).each do |n|
|
335
|
-
# we don't have an n["id"], so we allow n[:id] in anchor_struct
|
336
|
-
@anchors[n[:id]] = anchor_struct(n[:number], n, n[:label],
|
337
|
-
n[:klass], { unnumb: false, container: false })
|
338
|
-
end
|
339
|
-
end
|
340
312
|
end
|
341
313
|
end
|
342
314
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.12.
|
4
|
+
version: 2.12.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|