diff --git a/docs/404.html b/docs/404.html index 184d7db..240352d 100644 --- a/docs/404.html +++ b/docs/404.html @@ -79,7 +79,7 @@ metagam - 0.1.2 + 0.2.0 @@ -153,7 +153,7 @@

Contents

-

Site built with pkgdown 1.5.1.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/CODE_OF_CONDUCT.html b/docs/CODE_OF_CONDUCT.html index 07704b1..4053a2d 100644 --- a/docs/CODE_OF_CONDUCT.html +++ b/docs/CODE_OF_CONDUCT.html @@ -79,7 +79,7 @@ metagam - 0.1.2 + 0.2.0 @@ -161,7 +161,7 @@

Contents

-

Site built with pkgdown 1.5.1.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/articles/dominance.html b/docs/articles/dominance.html index 78ed340..eadc4ab 100644 --- a/docs/articles/dominance.html +++ b/docs/articles/dominance.html @@ -38,7 +38,7 @@ metagam - 0.1.2 + 0.2.0 @@ -86,7 +86,8 @@ -
+ +
-

Site built with pkgdown 1.5.1.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/articles/dominance_files/anchor-sections-1.0/anchor-sections.css b/docs/articles/dominance_files/anchor-sections-1.0/anchor-sections.css new file mode 100644 index 0000000..07aee5f --- /dev/null +++ b/docs/articles/dominance_files/anchor-sections-1.0/anchor-sections.css @@ -0,0 +1,4 @@ +/* Styles for section anchors */ +a.anchor-section {margin-left: 10px; visibility: hidden; color: inherit;} +a.anchor-section::before {content: '#';} +.hasAnchor:hover a.anchor-section {visibility: visible;} diff --git a/docs/articles/dominance_files/anchor-sections-1.0/anchor-sections.js b/docs/articles/dominance_files/anchor-sections-1.0/anchor-sections.js new file mode 100644 index 0000000..570f99a --- /dev/null +++ b/docs/articles/dominance_files/anchor-sections-1.0/anchor-sections.js @@ -0,0 +1,33 @@ +// Anchor sections v1.0 written by Atsushi Yasumoto on Oct 3rd, 2020. +document.addEventListener('DOMContentLoaded', function() { + // Do nothing if AnchorJS is used + if (typeof window.anchors === 'object' && anchors.hasOwnProperty('hasAnchorJSLink')) { + return; + } + + const h = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); + + // Do nothing if sections are already anchored + if (Array.from(h).some(x => x.classList.contains('hasAnchor'))) { + return null; + } + + // Use section id when pandoc runs with --section-divs + const section_id = function(x) { + return ((x.classList.contains('section') || (x.tagName === 'SECTION')) + ? x.id : ''); + }; + + // Add anchors + h.forEach(function(x) { + const id = x.id || section_id(x.parentElement); + if (id === '') { + return null; + } + let anchor = document.createElement('a'); + anchor.href = '#' + id; + anchor.classList = ['anchor-section']; + x.classList.add('hasAnchor'); + x.appendChild(anchor); + }); +}); diff --git a/docs/articles/dominance_files/figure-html/unnamed-chunk-6-1.png b/docs/articles/dominance_files/figure-html/unnamed-chunk-6-1.png index 07fa43f..ab8d6a6 100644 Binary files a/docs/articles/dominance_files/figure-html/unnamed-chunk-6-1.png and b/docs/articles/dominance_files/figure-html/unnamed-chunk-6-1.png differ diff --git a/docs/articles/dominance_files/header-attrs-2.5/header-attrs.js b/docs/articles/dominance_files/header-attrs-2.5/header-attrs.js new file mode 100644 index 0000000..dd57d92 --- /dev/null +++ b/docs/articles/dominance_files/header-attrs-2.5/header-attrs.js @@ -0,0 +1,12 @@ +// Pandoc 2.9 adds attributes on both header and div. We remove the former (to +// be compatible with the behavior of Pandoc < 2.8). +document.addEventListener('DOMContentLoaded', function(e) { + var hs = document.querySelectorAll("div.section[class*='level'] > :first-child"); + var i, h, a; + for (i = 0; i < hs.length; i++) { + h = hs[i]; + if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6 + a = h.attributes; + while (a.length > 0) h.removeAttribute(a[0].name); + } +}); diff --git a/docs/articles/heterogeneity.html b/docs/articles/heterogeneity.html index bc22fbf..3d8f66d 100644 --- a/docs/articles/heterogeneity.html +++ b/docs/articles/heterogeneity.html @@ -38,7 +38,7 @@ metagam - 0.1.2 + 0.2.0
@@ -86,7 +86,8 @@ -
+ +
@@ -158,7 +158,7 @@

All vignettes

-

Site built with pkgdown 1.5.1.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/articles/introduction.html b/docs/articles/introduction.html index c8c1d2a..bbc6d70 100644 --- a/docs/articles/introduction.html +++ b/docs/articles/introduction.html @@ -38,7 +38,7 @@ metagam - 0.1.2 + 0.2.0
@@ -86,7 +86,8 @@ -
+ +
@@ -214,7 +225,7 @@

-

Site built with pkgdown 1.5.1.

+

Site built with pkgdown 1.6.1.

diff --git a/docs/articles/introduction_files/anchor-sections-1.0/anchor-sections.css b/docs/articles/introduction_files/anchor-sections-1.0/anchor-sections.css new file mode 100644 index 0000000..07aee5f --- /dev/null +++ b/docs/articles/introduction_files/anchor-sections-1.0/anchor-sections.css @@ -0,0 +1,4 @@ +/* Styles for section anchors */ +a.anchor-section {margin-left: 10px; visibility: hidden; color: inherit;} +a.anchor-section::before {content: '#';} +.hasAnchor:hover a.anchor-section {visibility: visible;} diff --git a/docs/articles/introduction_files/anchor-sections-1.0/anchor-sections.js b/docs/articles/introduction_files/anchor-sections-1.0/anchor-sections.js new file mode 100644 index 0000000..570f99a --- /dev/null +++ b/docs/articles/introduction_files/anchor-sections-1.0/anchor-sections.js @@ -0,0 +1,33 @@ +// Anchor sections v1.0 written by Atsushi Yasumoto on Oct 3rd, 2020. +document.addEventListener('DOMContentLoaded', function() { + // Do nothing if AnchorJS is used + if (typeof window.anchors === 'object' && anchors.hasOwnProperty('hasAnchorJSLink')) { + return; + } + + const h = document.querySelectorAll('h1, h2, h3, h4, h5, h6'); + + // Do nothing if sections are already anchored + if (Array.from(h).some(x => x.classList.contains('hasAnchor'))) { + return null; + } + + // Use section id when pandoc runs with --section-divs + const section_id = function(x) { + return ((x.classList.contains('section') || (x.tagName === 'SECTION')) + ? x.id : ''); + }; + + // Add anchors + h.forEach(function(x) { + const id = x.id || section_id(x.parentElement); + if (id === '') { + return null; + } + let anchor = document.createElement('a'); + anchor.href = '#' + id; + anchor.classList = ['anchor-section']; + x.classList.add('hasAnchor'); + x.appendChild(anchor); + }); +}); diff --git a/docs/articles/introduction_files/figure-html/unnamed-chunk-8-1.png b/docs/articles/introduction_files/figure-html/unnamed-chunk-8-1.png index 396a6f3..a11e54f 100644 Binary files a/docs/articles/introduction_files/figure-html/unnamed-chunk-8-1.png and b/docs/articles/introduction_files/figure-html/unnamed-chunk-8-1.png differ diff --git a/docs/articles/introduction_files/header-attrs-2.5/header-attrs.js b/docs/articles/introduction_files/header-attrs-2.5/header-attrs.js new file mode 100644 index 0000000..dd57d92 --- /dev/null +++ b/docs/articles/introduction_files/header-attrs-2.5/header-attrs.js @@ -0,0 +1,12 @@ +// Pandoc 2.9 adds attributes on both header and div. We remove the former (to +// be compatible with the behavior of Pandoc < 2.8). +document.addEventListener('DOMContentLoaded', function(e) { + var hs = document.querySelectorAll("div.section[class*='level'] > :first-child"); + var i, h, a; + for (i = 0; i < hs.length; i++) { + h = hs[i]; + if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6 + a = h.attributes; + while (a.length > 0) h.removeAttribute(a[0].name); + } +}); diff --git a/docs/articles/multivariate.html b/docs/articles/multivariate.html index 4919372..fa4eb2d 100644 --- a/docs/articles/multivariate.html +++ b/docs/articles/multivariate.html @@ -38,7 +38,7 @@ metagam - 0.1.2 + 0.2.0
@@ -86,7 +86,8 @@ -
+ +