asciidoctor-csand 0.2.5 → 0.2.6
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/README.adoc +2 -6
- data/lib/asciidoctor-csand.rb +1 -1
- data/lib/asciidoctor/csand/converter.rb +28 -26
- data/lib/asciidoctor/csand/csand.rng +28 -22
- data/lib/asciidoctor/csand/isostandard.rng +1 -1
- data/lib/asciidoctor/csand/version.rb +1 -1
- data/lib/{asciidoctor → isodoc}/csand/csandconvert.rb +54 -22
- data/lib/{asciidoctor → isodoc}/csand/html/dots-w@2x.png +0 -0
- data/lib/{asciidoctor → isodoc}/csand/html/dots@2x.png +0 -0
- data/lib/{asciidoctor/csand/html/html_rsd_intro.html → isodoc/csand/html/html_csand_intro.html} +0 -0
- data/lib/{asciidoctor/csand/html/html_rsd_titlepage.html → isodoc/csand/html/html_csand_titlepage.html} +0 -0
- data/lib/{asciidoctor → isodoc}/csand/html/htmlstyle.scss +169 -27
- data/lib/isodoc/csand/html/scripts.html +82 -0
- metadata +9 -11
- data/lib/asciidoctor/csand/html/header.html +0 -184
- data/lib/asciidoctor/csand/html/rsd.scss +0 -541
- data/lib/asciidoctor/csand/html/scripts.html +0 -68
@@ -1,68 +0,0 @@
|
|
1
|
-
<script>//TOC generation
|
2
|
-
$('#toc').toc({
|
3
|
-
'selectors': 'h1,h2:not(.TermNum)', //elements to use as headings
|
4
|
-
'container': 'main', //element to find all selectors in
|
5
|
-
'smoothScrolling': true, //enable or disable smooth scrolling on click
|
6
|
-
'prefix': 'toc', //prefix for anchor tags and class names
|
7
|
-
'onHighlight': function(el) {}, //called when a new section is highlighted
|
8
|
-
'highlightOnScroll': true, //add class to heading that is currently in focus
|
9
|
-
'highlightOffset': 100, //offset to trigger the next headline
|
10
|
-
'anchorName': function(i, heading, prefix) { //custom function for anchor name
|
11
|
-
return prefix+i;
|
12
|
-
},
|
13
|
-
'headerText': function(i, heading, $heading) { //custom function building the header-item text
|
14
|
-
return $heading.text();
|
15
|
-
},
|
16
|
-
'itemClass': function(i, heading, $heading, prefix) { // custom function for item class
|
17
|
-
return $heading[0].tagName.toLowerCase();
|
18
|
-
}
|
19
|
-
});
|
20
|
-
|
21
|
-
</script>
|
22
|
-
|
23
|
-
<script>
|
24
|
-
//TOC toggle animation
|
25
|
-
$('#toggle').on('click', function(){
|
26
|
-
if( $('nav').is(':visible') ) {
|
27
|
-
$('nav').animate({ 'left': '-353px' }, 'slow', function(){
|
28
|
-
$('nav').hide();
|
29
|
-
});
|
30
|
-
$('.container').animate({ 'padding-left': '31px' }, 'slow');
|
31
|
-
}
|
32
|
-
else {
|
33
|
-
$('nav').show();
|
34
|
-
$('nav').animate({ 'left': '0px' }, 'slow');
|
35
|
-
$('.container').animate({ 'padding-left': '360px' }, 'slow');
|
36
|
-
}
|
37
|
-
});
|
38
|
-
</script>
|
39
|
-
|
40
|
-
<script>
|
41
|
-
// Scroll to top button
|
42
|
-
window.onscroll = function() {scrollFunction()};
|
43
|
-
|
44
|
-
function scrollFunction() {
|
45
|
-
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
|
46
|
-
document.getElementById("myBtn").style.display = "block";
|
47
|
-
} else {
|
48
|
-
document.getElementById("myBtn").style.display = "none";
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
// When the user clicks on the button, scroll to the top of the document
|
53
|
-
function topFunction() {
|
54
|
-
document.body.scrollTop = 0;
|
55
|
-
document.documentElement.scrollTop = 0;
|
56
|
-
}
|
57
|
-
</script>
|
58
|
-
|
59
|
-
<script>
|
60
|
-
$(document).ready(function() {
|
61
|
-
$('[id^=toc]').each(function ()
|
62
|
-
{
|
63
|
-
var currentToc = $(this);
|
64
|
-
var url = window.location.href;
|
65
|
-
currentToc.wrap("<a href='" + url + "#" + currentToc.attr("id") + "' </a>");
|
66
|
-
});
|
67
|
-
});
|
68
|
-
</script>
|