This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1369bcb
commit 077e4c1
Showing
58 changed files
with
684 additions
and
266 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
docs/articles/metan_start_files/anchor-sections-1.0/anchor-sections.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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;} |
33 changes: 33 additions & 0 deletions
33
docs/articles/metan_start_files/anchor-sections-1.0/anchor-sections.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
}); | ||
}); |
Binary file modified
BIN
-318 Bytes
(100%)
docs/articles/metan_start_files/figure-html/unnamed-chunk-17-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+457 Bytes
(100%)
docs/articles/metan_start_files/figure-html/unnamed-chunk-6-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
docs/articles/vignettes_ammi_files/anchor-sections-1.0/anchor-sections.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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;} |
33 changes: 33 additions & 0 deletions
33
docs/articles/vignettes_ammi_files/anchor-sections-1.0/anchor-sections.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
}); | ||
}); |
Binary file modified
BIN
-421 Bytes
(100%)
docs/articles/vignettes_ammi_files/figure-html/unnamed-chunk-12-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+141 Bytes
(100%)
docs/articles/vignettes_ammi_files/figure-html/unnamed-chunk-13-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-687 Bytes
(99%)
docs/articles/vignettes_ammi_files/figure-html/unnamed-chunk-14-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-965 Bytes
(100%)
docs/articles/vignettes_ammi_files/figure-html/unnamed-chunk-15-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+657 Bytes
(100%)
docs/articles/vignettes_ammi_files/figure-html/unnamed-chunk-25-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
docs/articles/vignettes_biometry_files/anchor-sections-1.0/anchor-sections.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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;} |
33 changes: 33 additions & 0 deletions
33
docs/articles/vignettes_biometry_files/anchor-sections-1.0/anchor-sections.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
}); | ||
}); |
Binary file modified
BIN
-1.37 KB
(98%)
docs/articles/vignettes_biometry_files/figure-html/unnamed-chunk-32-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
docs/articles/vignettes_blup_files/anchor-sections-1.0/anchor-sections.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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;} |
33 changes: 33 additions & 0 deletions
33
docs/articles/vignettes_blup_files/anchor-sections-1.0/anchor-sections.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
}); | ||
}); |
Binary file modified
BIN
-186 Bytes
(100%)
docs/articles/vignettes_blup_files/figure-html/unnamed-chunk-23-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+889 Bytes
(100%)
docs/articles/vignettes_blup_files/figure-html/unnamed-chunk-24-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-232 Bytes
(100%)
docs/articles/vignettes_blup_files/figure-html/unnamed-chunk-25-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.19 KB
(100%)
docs/articles/vignettes_blup_files/figure-html/unnamed-chunk-27-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
docs/articles/vignettes_cross-validation_files/anchor-sections-1.0/anchor-sections.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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;} |
33 changes: 33 additions & 0 deletions
33
docs/articles/vignettes_cross-validation_files/anchor-sections-1.0/anchor-sections.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
}); | ||
}); |
Oops, something went wrong.