metanorma-sample 1.0.10 → 1.3.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,57 @@
1
+ require "isodoc"
2
+ require_relative "metadata"
3
+ require "fileutils"
4
+
5
+ module IsoDoc
6
+ module Sample
7
+ module BaseConvert
8
+ #def convert1(docxml, filename, dir)
9
+ # FileUtils.cp html_doc_path('logo.jpg'), File.join(@localdir, "logo.jpg")
10
+ # @files_to_delete << File.join(@localdir, "logo.jpg")
11
+ # super
12
+ #end
13
+
14
+ def metadata_init(lang, script, labels)
15
+ @meta = Metadata.new(lang, script, labels)
16
+ end
17
+
18
+ def info(isoxml, out)
19
+ @meta.security isoxml, out
20
+ super
21
+ end
22
+
23
+ def annex_name(annex, name, div)
24
+ div.h1 **{ class: "Annex" } do |t|
25
+ t << "#{anchor(annex['id'], :label)} "
26
+ t.br
27
+ t.b do |b|
28
+ name&.children&.each { |c2| parse(c2, b) }
29
+ end
30
+ end
31
+ end
32
+
33
+ def i18n_init(lang, script)
34
+ super
35
+ @annex_lbl = "Appendix"
36
+ end
37
+
38
+ def fileloc(loc)
39
+ File.join(File.dirname(__FILE__), loc)
40
+ end
41
+
42
+ def cleanup(docxml)
43
+ super
44
+ term_cleanup(docxml)
45
+ end
46
+
47
+ def term_cleanup(docxml)
48
+ docxml.xpath("//p[@class = 'Terms']").each do |d|
49
+ h2 = d.at("./preceding-sibling::*[@class = 'TermNum'][1]")
50
+ h2.add_child("&nbsp;")
51
+ h2.add_child(d.remove)
52
+ end
53
+ docxml
54
+ end
55
+ end
56
+ end
57
+ end
@@ -1,5 +1,5 @@
1
- <div class="document-stage-band" id='{{ status | downcase | replace: " ", "-" }}-band'>
2
- <p class="document-stage">{{ status }}</p>
1
+ <div class="document-stage-band" id='{{ stage | downcase | replace: " ", "-" }}-band'>
2
+ <p class="document-stage">{{ stage }}</p>
3
3
  </div>
4
4
 
5
5
  <div class="document-type-band" id='{{ doctype | downcase | replace: " ", "-" }}-band'>
@@ -46,7 +46,7 @@
46
46
  </div>
47
47
 
48
48
  <div class="coverpage-stage-block" >
49
- <p><span class="coverpage-maturity" id="{{ status | replace: ' ', '-' | downcase }}">{{ status }}</span></p>
49
+ <p><span class="coverpage-maturity" id="{{ stage | replace: ' ', '-' | downcase }}">{{ stage }}</span></p>
50
50
  {% if security %}
51
51
  <p><span class="coverpage-maturity">Classification: {{ security }}</span></p>
52
52
  {% endif %}
@@ -75,6 +75,12 @@ time, mark, audio, video {
75
75
 
76
76
  code, pre, tt, kbd, samp {
77
77
  font-family: $monospacefont;
78
+ font-variant-ligatures: none;
79
+ }
80
+
81
+ code *, pre *, tt *, kbd *, samp * {
82
+ font-family: $monospacefont !important;
83
+ font-variant-ligatures: none;
78
84
  }
79
85
 
80
86
  h1, h2, h3, h4, h5, h6, .h2Annex {
@@ -207,12 +213,13 @@ table {
207
213
  }
208
214
  }
209
215
 
210
- @media screen {
211
- img {
212
- width: 100%;
213
- height: auto;
216
+ div.figure > img {
217
+ margin-left: auto;
218
+ margin-right: auto;
219
+ display: block;
220
+ max-width: 100%;
221
+ height: auto;
214
222
  }
215
- }
216
223
 
217
224
 
218
225
 
@@ -222,7 +229,7 @@ table {
222
229
  list-style: none;
223
230
  }
224
231
 
225
- #toc li {
232
+ #toc li a {
226
233
  padding: 5px 10px;
227
234
  }
228
235
 
@@ -233,6 +240,7 @@ table {
233
240
  }
234
241
 
235
242
  #toc a:hover {
243
+ box-shadow: none;
236
244
  color: white;
237
245
  }
238
246
 
@@ -513,21 +521,21 @@ p.document-stage {
513
521
 
514
522
  ul, ol {margin-left: 1.2em;}
515
523
 
516
- ul li {
524
+ ul > li {
517
525
  list-style: none;
518
526
  }
519
527
 
520
- ul li:before {
528
+ ul > li:before {
521
529
  content: "\2014";
522
530
  display: inline-block; width: 1em;
523
531
  margin-left: -1.2em;
524
532
  }
525
533
 
526
- ul li p:first-child {
534
+ ul > li p:first-child {
527
535
  display: inline;
528
536
  }
529
537
 
530
- ul li:first-child {
538
+ ul > li:first-child {
531
539
  margin-top: 1em;
532
540
  }
533
541
 
@@ -565,8 +573,12 @@ p.Biblio, p.NormRef {
565
573
  3.6 Source Code + figures
566
574
  */
567
575
 
568
- .figure, .Sourcecode {
576
+ .Sourcecode {
569
577
  font-family: $monospacefont;
578
+ font-variant-ligatures: none;
579
+ }
580
+
581
+ .figure, .Sourcecode, .pseudocode {
570
582
  background-color: #f7f7f7;
571
583
  font-size: 0.8em;
572
584
  line-height: 1.6em;
@@ -575,7 +587,7 @@ p.Biblio, p.NormRef {
575
587
  overflow: auto;
576
588
  }
577
589
 
578
- .FigureTitle {
590
+ .FigureTitle, .SourceTitle, .AdmonitionTitle {
579
591
  font-weight: 700;
580
592
  font-size: 1em;
581
593
  text-align: center;
@@ -596,6 +608,18 @@ p.Biblio, p.NormRef {
596
608
  }
597
609
  }
598
610
 
611
+ .Admonition {
612
+ background-color: #ffcccc;
613
+ color: #47430c;
614
+ padding: 1.2em;
615
+ margin: 1em 0 1em 0;
616
+
617
+ p {
618
+ margin: 0;
619
+ }
620
+ }
621
+
622
+
599
623
  /*
600
624
  3.8 Examples
601
625
  */
@@ -604,13 +628,18 @@ p.Biblio, p.NormRef {
604
628
  background-color: #e1eef1;
605
629
  padding: 1.2em;
606
630
  margin: 2em 0 1em 0;
631
+ padding-left: 2em;
607
632
  }
608
633
 
609
634
  .example .example-title {
610
635
  font-weight: 700;
611
636
  text-transform: uppercase;
612
- text-align: center;
613
637
  margin-top:0;
638
+ margin-left:-1.5em;
639
+ }
640
+
641
+ .example .Sourcecode, .example .pseudocode {
642
+ background: none;
614
643
  }
615
644
 
616
645
  /*
@@ -709,6 +738,7 @@ a.footnote-number {
709
738
 
710
739
  .contact-info p, .contact-info a {
711
740
  font-family: $monospacefont;
741
+ font-variant-ligatures: none;
712
742
  font-weight: 400;
713
743
  }
714
744
 
@@ -893,6 +923,7 @@ To top button
893
923
 
894
924
  #myBtn {
895
925
  font-family: $monospacefont;
926
+ font-variant-ligatures: none;
896
927
  display: none;
897
928
  position: fixed;
898
929
  bottom: 20px;
@@ -940,7 +971,7 @@ To top button
940
971
  margin-top: 1.2em;
941
972
  }
942
973
 
943
- .note, .figure, .Sourcecode, table {
974
+ .note, .figure, .Sourcecode, .pseudocode, table {
944
975
  page-break-inside: avoid;
945
976
  }
946
977
 
@@ -1026,6 +1057,16 @@ To top button
1026
1057
  padding: 0 5px 0 5px;
1027
1058
  }
1028
1059
 
1060
+ .Admonition {
1061
+ background-color: #ffcccc;
1062
+ color: #47430c;
1063
+ padding: 5px;
1064
+ margin: 2em 0 1em 0; }
1065
+
1066
+ .Admonition p {
1067
+ padding: 0 5px 0 5px;
1068
+ }
1069
+
1029
1070
  nav {
1030
1071
  line-height: 1;
1031
1072
  }
@@ -1,4 +1,20 @@
1
1
  p.Sourcecode, li.Sourcecode, div.Sourcecode, pre.Sourcecode, pre
2
+ {mso-style-unhide:no;
3
+ mso-style-qformat:yes;
4
+ mso-style-parent:"";
5
+ margin-top:6.0pt;
6
+ margin-right:0cm;
7
+ margin-bottom:6.0pt;
8
+ margin-left:0cm;
9
+ text-align:left;
10
+ mso-pagination:widow-orphan;
11
+ tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
12
+ font-size:10.0pt;
13
+ font-family:$monospacefont;
14
+ mso-fareast-font-family:Calibri;
15
+ mso-bidi-font-family:"Courier New";
16
+ mso-ansi-language:EN-GB;}
17
+ p.pseudocode, li.pseudocode, div.pseudocode
2
18
  {mso-style-unhide:no;
3
19
  mso-style-qformat:yes;
4
20
  mso-style-parent:"";
@@ -9,8 +25,8 @@ p.Sourcecode, li.Sourcecode, div.Sourcecode, pre.Sourcecode, pre
9
25
  text-align:left;
10
26
  mso-pagination:widow-orphan;
11
27
  tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt;
12
- font-size:10.0pt;
13
- font-family:$monospacefont;
28
+ font-size:10.5pt;
29
+ font-family:$bodyfont;
14
30
  mso-fareast-font-family:Calibri;
15
31
  mso-bidi-font-family:"Courier New";
16
32
  mso-ansi-language:EN-GB;}
@@ -51,6 +67,44 @@ p.FigureTitle
51
67
  mso-fareast-font-family:$bodyfont;
52
68
  mso-bidi-font-family:$bodyfont;
53
69
  mso-ansi-language:EN-GB;}
70
+ p.SourceTitle
71
+ {mso-style-unhide:no;
72
+ mso-style-qformat:yes;
73
+ mso-style-parent:"";
74
+ margin-top:0cm;
75
+ margin-right:0cm;
76
+ margin-bottom:6.0pt;
77
+ margin-left:0cm;
78
+ text-align:center;
79
+ line-height:12.0pt;
80
+ page-break-before:avoid;
81
+ mso-pagination:widow-orphan;
82
+ tab-stops:20.15pt;
83
+ font-size:11.0pt;
84
+ font-weight:bold;
85
+ font-family:$bodyfont;
86
+ mso-fareast-font-family:$bodyfont;
87
+ mso-bidi-font-family:$bodyfont;
88
+ mso-ansi-language:EN-GB;}
89
+ p.AdmonitionTitle
90
+ {mso-style-unhide:no;
91
+ mso-style-qformat:yes;
92
+ mso-style-parent:"";
93
+ margin-top:0cm;
94
+ margin-right:0cm;
95
+ margin-bottom:6.0pt;
96
+ margin-left:0cm;
97
+ text-align:center;
98
+ line-height:12.0pt;
99
+ page-break-after:avoid;
100
+ mso-pagination:widow-orphan;
101
+ tab-stops:20.15pt;
102
+ font-size:11.0pt;
103
+ font-weight:bold;
104
+ font-family:$bodyfont;
105
+ mso-fareast-font-family:$bodyfont;
106
+ mso-bidi-font-family:$bodyfont;
107
+ mso-ansi-language:EN-GB;}
54
108
  p.TableTitle
55
109
  {mso-style-unhide:no;
56
110
  mso-style-qformat:yes;
@@ -476,6 +530,9 @@ p.Formula, li.Formula, div.Formula
476
530
  mso-fareast-font-family:$bodyfont;
477
531
  mso-bidi-font-family:$bodyfont;
478
532
  mso-ansi-language:EN-GB;}
533
+ @page {
534
+ mso-facing-pages:yes;
535
+ }
479
536
  @page WordSection1
480
537
  {size:595.3pt 841.9pt;
481
538
  margin:39.7pt 53.85pt 1.0cm 53.85pt;
@@ -513,10 +570,6 @@ div.WordSection2
513
570
  mso-paper-source:0;}
514
571
  div.WordSection3
515
572
  {page:WordSection3;}
516
- ol
517
- {margin-bottom:0cm;}
518
- ul
519
- {margin-bottom:0cm;}
520
573
  table.MsoISOTable
521
574
  {mso-style-name:"Table ISO";
522
575
  mso-tstyle-rowband-size:0;
@@ -535,12 +588,8 @@ table.MsoISOTable
535
588
  mso-yfti-tbllook:480;
536
589
  mso-border-insideh:.75pt solid windowtext;
537
590
  mso-border-insidev:.75pt solid windowtext;
538
- mso-table-anchor-vertical:paragraph;
539
- mso-table-bspace:12.0pt;
540
591
  font-size:10.0pt;
541
592
  font-family:$bodyfont;}
542
- table.MsoISOTable tr
543
- {page-break-inside:avoid;}
544
593
  table.MsoISOTable th
545
594
  {border:solid windowtext 1pt;
546
595
  mso-border-alt:solid windowtext 1pt;
@@ -549,6 +598,8 @@ table.MsoISOTable td
549
598
  {border:solid windowtext 1pt;
550
599
  mso-border-alt:solid windowtext 1pt;
551
600
  padding:0cm 2.85pt 0cm 2.85pt;}
601
+ table.MsoISOTable p
602
+ {font-size:10.0pt; }
552
603
  table.MsoTableGrid
553
604
  {mso-style-name:"Table Grid";
554
605
  mso-tstyle-rowband-size:0;
@@ -563,24 +614,12 @@ table.MsoTableGrid
563
614
  mso-para-margin:0cm;
564
615
  mso-para-margin-bottom:.0001pt;
565
616
  mso-pagination:widow-orphan;
566
- mso-table-anchor-vertical:paragraph;
567
- mso-table-bspace:12.0pt;
568
617
  font-size:10.0pt;
569
618
  font-family:$bodyfont;}
570
- td { page-break-inside:avoid; }
571
- tr { page-break-after:avoid; }
572
- span.stem
573
- {font-family:"Cambria Math",serif;
574
- mso-ascii-font-family:"Cambria Math";
575
- font-style:
576
- italic;}
577
619
  div.formula
578
620
  {tab-stops:right 487.45pt;}
579
621
  body
580
622
  {tab-interval:36.0pt;}
581
- dt
582
- {page-break-inside:avoid;
583
- page-break-after:avoid}
584
623
  .coverpage_docnumber
585
624
  {text-align:center;
586
625
  font-size:14.0pt;
@@ -604,29 +643,46 @@ div.coverpage_warning
604
643
  {color:#485094;
605
644
  font-size:10.0pt;}
606
645
 
607
- a.TableFootnoteRef
646
+ a.TableFootnoteRef, span.TableFootnoteRef
608
647
  {mso-style-priority:99;
648
+ mso-style-parent:"Footnote Reference";
609
649
  vertical-align:super;}
610
650
 
611
651
  aside {
612
652
  font-size:10.0pt;
613
653
  }
654
+
655
+ .example-title {
656
+ font-weight: bold;
657
+ margin-left: -36.0pt;
658
+ }
659
+
660
+ p.example, li.example, td.example {
661
+ margin-right: 0pt;
662
+ margin-left: 0pt;
663
+ }
664
+
614
665
  div.example {
615
- margin-left:70.9pt;
616
- text-indent:-70.9pt;
666
+ margin-right: 36.0pt;
667
+ margin-left: 36.0pt;
668
+ margin-top: 0cm;
669
+ margin-bottom: 0cm;
617
670
  }
618
- p.example, li.example, div.example, td.example
619
- { margin:0in;
620
- margin-bottom:.0001pt;
671
+
672
+ p.example, li.example, div.example, td.example {
621
673
  mso-pagination:none;
622
674
  font-size:10.0pt;
623
675
  font-family:$bodyfont;}
624
676
 
625
- table.example {
626
- margin-bottom:12pt;
677
+ td.example p.MsoListParagraph {
678
+ font-size: 10.0pt;
627
679
  }
628
680
 
629
- td.example p.MsoListParagraph {
681
+ div.example p.MsoListParagraph {
682
+ font-size: 10.0pt;
683
+ }
684
+
685
+ div.Note p.MsoListParagraph {
630
686
  font-size: 10.0pt;
631
687
  }
632
688
 
@@ -1,7 +1,7 @@
1
1
  <script>
2
2
  //TOC generation
3
3
  $('#toc').toc({
4
- 'selectors': 'h1,h2:not(.TermNum)', //elements to use as headings
4
+ 'selectors': toclevel(), //elements to use as headings
5
5
  'container': 'main', //element to find all selectors in
6
6
  'smoothScrolling': true, //enable or disable smooth scrolling on click
7
7
  'prefix': 'toc', //prefix for anchor tags and class names
@@ -66,6 +66,7 @@ $('#toggle').on('click', function(){
66
66
  !function(A,e){"use strict";"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():(A.AnchorJS=e(),A.anchors=new A.AnchorJS)}(this,function(){"use strict";return function(A){function e(A){A.icon=A.hasOwnProperty("icon")?A.icon:"",A.visible=A.hasOwnProperty("visible")?A.visible:"hover",A.placement=A.hasOwnProperty("placement")?A.placement:"right",A.ariaLabel=A.hasOwnProperty("ariaLabel")?A.ariaLabel:"Anchor",A.class=A.hasOwnProperty("class")?A.class:"",A.truncate=A.hasOwnProperty("truncate")?Math.floor(A.truncate):64}function t(A){var e;if("string"==typeof A||A instanceof String)e=[].slice.call(document.querySelectorAll(A));else{if(!(Array.isArray(A)||A instanceof NodeList))throw new Error("The selector provided to AnchorJS was invalid.");e=[].slice.call(A)}return e}function i(){if(null===document.head.querySelector("style.anchorjs")){var A,e=document.createElement("style");e.className="anchorjs",e.appendChild(document.createTextNode("")),void 0===(A=document.head.querySelector('[rel="stylesheet"], style'))?document.head.appendChild(e):document.head.insertBefore(e,A),e.sheet.insertRule(" .anchorjs-link { opacity: 0; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }",e.sheet.cssRules.length),e.sheet.insertRule(" *:hover > .anchorjs-link, .anchorjs-link:focus { opacity: 1; }",e.sheet.cssRules.length),e.sheet.insertRule(" [data-anchorjs-icon]::after { content: attr(data-anchorjs-icon); }",e.sheet.cssRules.length),e.sheet.insertRule(' @font-face { font-family: "anchorjs-icons"; src: url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype"); }',e.sheet.cssRules.length)}}this.options=A||{},this.elements=[],e(this.options),this.isTouchDevice=function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)},this.add=function(A){var n,o,s,a,r,c,h,l,u,d,f,p=[];if(e(this.options),"touch"===(f=this.options.visible)&&(f=this.isTouchDevice()?"always":"hover"),A||(A="h2, h3, h4, h5, h6"),0===(n=t(A)).length)return this;for(i(),o=document.querySelectorAll("[id]"),s=[].map.call(o,function(A){return A.id}),r=0;r<n.length;r++)if(this.hasAnchorJSLink(n[r]))p.push(r);else{if(n[r].hasAttribute("id"))a=n[r].getAttribute("id");else if(n[r].hasAttribute("data-anchor-id"))a=n[r].getAttribute("data-anchor-id");else{u=l=this.urlify(n[r].textContent),h=0;do{void 0!==c&&(u=l+"-"+h),c=s.indexOf(u),h+=1}while(-1!==c);c=void 0,s.push(u),n[r].setAttribute("id",u),a=u}a.replace(/-/g," "),(d=document.createElement("a")).className="anchorjs-link "+this.options.class,d.href="#"+a,d.setAttribute("aria-label",this.options.ariaLabel),d.setAttribute("data-anchorjs-icon",this.options.icon),"always"===f&&(d.style.opacity="1"),""===this.options.icon&&(d.style.font="1em/1 anchorjs-icons","left"===this.options.placement&&(d.style.lineHeight="inherit")),"left"===this.options.placement?(d.style.position="absolute",d.style.marginLeft="-1em",d.style.paddingRight="0.5em",n[r].insertBefore(d,n[r].firstChild)):(d.style.paddingLeft="0.375em",n[r].appendChild(d))}for(r=0;r<p.length;r++)n.splice(p[r]-r,1);return this.elements=this.elements.concat(n),this},this.remove=function(A){for(var e,i,n=t(A),o=0;o<n.length;o++)(i=n[o].querySelector(".anchorjs-link"))&&(-1!==(e=this.elements.indexOf(n[o]))&&this.elements.splice(e,1),n[o].removeChild(i));return this},this.removeAll=function(){this.remove(this.elements)},this.urlify=function(A){var t=/[& +$,:;=?@"#{}|^~[`%!'<>\]\.\/\(\)\*\\]/g;return this.options.truncate||e(this.options),A.trim().replace(/\'/gi,"").replace(t,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(A){var e=A.firstChild&&(" "+A.firstChild.className+" ").indexOf(" anchorjs-link ")>-1,t=A.lastChild&&(" "+A.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return e||t||!1}}}); </script>
67
67
 
68
68
  <script>
69
+ /*
69
70
  $(document).ready(function() {
70
71
  $('[id^=toc]').each(function ()
71
72
  {
@@ -74,6 +75,7 @@ $('#toggle').on('click', function(){
74
75
  currentToc.wrap("<a href='" + url + "#" + currentToc.attr("id") + "' </a>");
75
76
  });
76
77
  });
78
+ */
77
79
  anchors.options = {
78
80
  placement: 'left'
79
81
  };