Skip to content

Commit 019207c

Browse files
committed
Merge remote-tracking branch 'origin/dev' into sgratzl/docker2
2 parents b630b3c + 9d1ec87 commit 019207c

14 files changed

+3573
-0
lines changed

content/blog/2021-01-15-causal-effect-mobility.Rmd

Lines changed: 540 additions & 0 deletions
Large diffs are not rendered by default.

content/blog/2021-01-15-causal-effect-mobility.html

Lines changed: 499 additions & 0 deletions
Large diffs are not rendered by default.

data/authors.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,19 @@
2222
name: Kathryn Mazaitis
2323
link: https://cs.cmu.edu/~krivard
2424
description: manages Delphi's engineering team, and is a Senior Research Programmer in the Machine Learning Department at CMU.
25+
- key: mbonvini
26+
name: Matteo Bonvini
27+
link: https://www.linkedin.com/in/matteobonvini
28+
description: is a graduate student in the Department of Statistics & Data Science at CMU.
29+
- key: ekennedy
30+
name: Edward Kennedy
31+
link: http://www.ehkennedy.com/
32+
description: is an Assistant Professor in the Department of Statistics & Data Science at CMU
33+
- key: vventura
34+
name: Valérie Ventura
35+
link: http://www.stat.cmu.edu/~vventura/
36+
description: is a Professor in the Department of Statistics & Data Science at CMU and a member of Delphi.
37+
- key: lwasserman
38+
name: Larry Wasserman
39+
link: http://www.stat.cmu.edu/~larry/
40+
description: is a Professor in the Department of Statistics & Data Science at CMU as well as in the Machine Learning Department and is a member of Delphi.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/* Styles for section anchors */
2+
a.anchor-section {margin-left: 10px; visibility: hidden; color: inherit;}
3+
a.anchor-section::before {content: '#';}
4+
.hasAnchor:hover a.anchor-section {visibility: visible;}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Anchor sections v1.0 written by Atsushi Yasumoto on Oct 3rd, 2020.
2+
document.addEventListener('DOMContentLoaded', function() {
3+
// Do nothing if AnchorJS is used
4+
if (typeof window.anchors === 'object' && anchors.hasOwnProperty('hasAnchorJSLink')) {
5+
return;
6+
}
7+
8+
const h = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
9+
10+
// Do nothing if sections are already anchored
11+
if (Array.from(h).some(x => x.classList.contains('hasAnchor'))) {
12+
return null;
13+
}
14+
15+
// Use section id when pandoc runs with --section-divs
16+
const section_id = function(x) {
17+
return ((x.classList.contains('section') || (x.tagName === 'SECTION'))
18+
? x.id : '');
19+
};
20+
21+
// Add anchors
22+
h.forEach(function(x) {
23+
const id = x.id || section_id(x.parentElement);
24+
if (id === '') {
25+
return null;
26+
}
27+
let anchor = document.createElement('a');
28+
anchor.href = '#' + id;
29+
anchor.classList = ['anchor-section'];
30+
x.classList.add('hasAnchor');
31+
x.appendChild(anchor);
32+
});
33+
});
Lines changed: 82 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)