Skip to content

Commit ed7f725

Browse files
committed
Updated IV vignette and added to website structure
1 parent 2d6c5b4 commit ed7f725

File tree

10 files changed

+10755
-37
lines changed

10 files changed

+10755
-37
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,15 @@ jobs:
100100
101101
- name: Copy static vignettes over to docs directory
102102
run: |
103-
cp vignettes/Python/rdd.html docs/vignettes/Python/rdd.html
104-
cp vignettes/Python/RDD_DAG.png docs/vignettes/Python/RDD_DAG.png
105-
cp vignettes/Python/trees1.png docs/vignettes/Python/trees1.png
106-
cp vignettes/Python/trees2.png docs/vignettes/Python/trees2.png
107-
cp vignettes/Python/trees3.png docs/vignettes/Python/trees3.png
108-
cp vignettes/R/rdd.html docs/vignettes/R/rdd.html
103+
cp vignettes/Python/RDD/rdd.html docs/vignettes/Python/rdd.html
104+
cp vignettes/Python/RDD/RDD_DAG.png docs/vignettes/Python/RDD_DAG.png
105+
cp vignettes/Python/RDD/trees1.png docs/vignettes/Python/trees1.png
106+
cp vignettes/Python/RDD/trees2.png docs/vignettes/Python/trees2.png
107+
cp vignettes/Python/RDD/trees3.png docs/vignettes/Python/trees3.png
108+
cp vignettes/R/RDD/rdd.html docs/vignettes/R/rdd.html
109+
cp vignettes/Python/IV/iv.html docs/vignettes/Python/iv.html
110+
cp vignettes/Python/IV/IV_CDAG.png docs/vignettes/Python/IV_CDAG.png
111+
cp vignettes/R/IV/iv.html docs/vignettes/R/IV/iv.html
109112
110113
- name: Build the overall doc site
111114
run: |

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,15 @@ cp stochtree_repo/demo/notebooks/prototype_interface.ipynb docs/python_docs/demo
102102
### Copy static vignettes over to docs directory
103103

104104
```{bash}
105-
cp vignettes/Python/rdd.html docs/vignettes/Python/rdd.html
106-
cp vignettes/Python/RDD_DAG.png docs/vignettes/Python/RDD_DAG.png
107-
cp vignettes/Python/trees1.png docs/vignettes/Python/trees1.png
108-
cp vignettes/Python/trees2.png docs/vignettes/Python/trees2.png
109-
cp vignettes/Python/trees3.png docs/vignettes/Python/trees3.png
110-
cp vignettes/R/rdd.html docs/vignettes/R/rdd.html
105+
cp vignettes/Python/RDD/rdd.html docs/vignettes/Python/rdd.html
106+
cp vignettes/Python/RDD/RDD_DAG.png docs/vignettes/Python/RDD_DAG.png
107+
cp vignettes/Python/RDD/trees1.png docs/vignettes/Python/trees1.png
108+
cp vignettes/Python/RDD/trees2.png docs/vignettes/Python/trees2.png
109+
cp vignettes/Python/RDD/trees3.png docs/vignettes/Python/trees3.png
110+
cp vignettes/R/RDD/rdd.html docs/vignettes/R/rdd.html
111+
cp vignettes/Python/IV/iv.html docs/vignettes/Python/iv.html
112+
cp vignettes/Python/IV/IV_CDAG.png docs/vignettes/Python/IV_CDAG.png
113+
cp vignettes/R/IV/iv.html docs/vignettes/R/IV/iv.html
111114
```
112115

113116
### Building the overall website

dev/build.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,15 @@ cp stochtree_repo/demo/notebooks/tree_inspection.ipynb docs/python_docs/demo/tre
4444
cp stochtree_repo/demo/notebooks/prototype_interface.ipynb docs/python_docs/demo/prototype_interface.ipynb
4545

4646
# Copy static vignettes over to docs directory
47-
cp vignettes/Python/rdd.html docs/vignettes/Python/rdd.html
48-
cp vignettes/Python/RDD_DAG.png docs/vignettes/Python/RDD_DAG.png
49-
cp vignettes/Python/trees1.png docs/vignettes/Python/trees1.png
50-
cp vignettes/Python/trees2.png docs/vignettes/Python/trees2.png
51-
cp vignettes/Python/trees3.png docs/vignettes/Python/trees3.png
52-
cp vignettes/R/rdd.html docs/vignettes/R/rdd.html
47+
cp vignettes/Python/RDD/rdd.html docs/vignettes/Python/rdd.html
48+
cp vignettes/Python/RDD/RDD_DAG.png docs/vignettes/Python/RDD_DAG.png
49+
cp vignettes/Python/RDD/trees1.png docs/vignettes/Python/trees1.png
50+
cp vignettes/Python/RDD/trees2.png docs/vignettes/Python/trees2.png
51+
cp vignettes/Python/RDD/trees3.png docs/vignettes/Python/trees3.png
52+
cp vignettes/R/RDD/rdd.html docs/vignettes/R/rdd.html
53+
cp vignettes/Python/IV/iv.html docs/vignettes/Python/iv.html
54+
cp vignettes/Python/IV/IV_CDAG.png docs/vignettes/Python/IV_CDAG.png
55+
cp vignettes/R/IV/iv.html docs/vignettes/R/IV/iv.html
5356

5457
# Build the doc site
5558
mkdocs build

docs/vignettes/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ with an R and Python version for each vignette.
99
Current advanced vignettes include:
1010

1111
1. Using `stochtree` for Regression Discontinuity Design ([R](R/rdd.html), [Python](Python/rdd.html))
12+
2. Using `stochtree` for Instrumental Variables Analysis ([R](R/iv.html), [Python](Python/iv.html))

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ nav:
7272
- 'Vignettes':
7373
- 'Vignettes': vignettes/index.md
7474
- 'R':
75+
- 'Instrumental Variables': 'vignettes/R/IV/iv.html'
7576
- 'RDD': 'vignettes/R/RDD/rdd.html'
7677
- 'Python':
78+
- 'Instrumental Variables': 'vignettes/Python/IV/iv.html'
7779
- 'RDD': 'vignettes/Python/RDD/rdd.html'
7880
- 'Development':
7981
- 'Development': development/index.md

0 commit comments

Comments
 (0)