Skip to content

Commit 9401e5d

Browse files
authored
Merge pull request #28 from jhudsl/repo-sync/AnVIL_Template/default
🔄 Synced file(s) with jhudsl/AnVIL_Template
2 parents c19cc70 + f565511 commit 9401e5d

File tree

11 files changed

+39
-9
lines changed

11 files changed

+39
-9
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,8 @@ jobs:
249249
- name: Build components of the comment
250250
id: build-components
251251
run: |
252-
course_name=$(head -n 1 student-guide/_bookdown.yml | cut -d'"' -f 2| tr " " "-")
253252
bookdown_link=$(echo "https://htmlpreview.github.io/?https://raw.githubusercontent.com/$GITHUB_REPOSITORY/preview-${{ github.event.pull_request.number }}/docs/index.html")
254-
student_guide=$(echo "https://github.com/$GITHUB_REPOSITORY/raw/preview-${{ github.event.pull_request.number }}/student-guide/Student_Guide.docx")
253+
student_guide=$(echo "https://github.com/$GITHUB_REPOSITORY/raw/preview-${{ github.event.pull_request.number }}/student-guide/docs/Student_Guide.docx")
255254
zip_link=$(echo "https://github.com/$GITHUB_REPOSITORY/raw/preview-${{ github.event.pull_request.number }}/website-preview.zip")
256255
echo "zip_link=$zip_link" >> $GITHUB_OUTPUT
257256
echo "bookdown_link=$bookdown_link" >> $GITHUB_OUTPUT

.github/workflows/render-all.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
toggle_website: "${{ env.RENDER_WEBSITE }}"
3232
toggle_coursera: "${{ env.RENDER_COURSERA }}"
3333
toggle_leanpub: "${{ env.RENDER_LEANPUB }}"
34+
make_book_txt: "${{ env.MAKE_BOOK_TXT }}"
3435
toggle_feedback_link: "${{ env.FEEDBACK_LINK }}"
3536
toggle_student_guide: "${{ env.RENDER_STUDENT_GUIDE }}"
3637
rendering_docker_image: "${{ env.RENDERING_DOCKER_IMAGE }}"

_output.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ bookdown::gitbook:
1616
<p style="text-align:center;"> <a href="http://jhudatascience.org/"> The Johns Hopkins Data Science Lab </a></p>
1717
<a href="http://jhudatascience.org/"><img src="https://jhudatascience.org/images/dasl.png" style=" width: 80%; padding-left: 40px; padding-top: 8px; vertical-align: top "</a>
1818
<p style="text-align:center; font-size: 12px;"> <a href="https://github.com/rstudio4edu/rstudio4edu-book/"> Style adapted from: rstudio4edu-book </a> <a href ="https://creativecommons.org/licenses/by/2.0/"> (CC-BY 2.0) </a></p>
19-
<p style="padding-left: 40px;"><div class="trapezoid" style = "padding-left: 40px;"><span><a href="https://docs.google.com/forms/d/e/1FAIpQLScrDVb_utm55pmb_SHx-RgELTEbCCWdLea0T3IzS0Oj00GE4w/viewform?usp=pp_url&entry.1565230805=AnVIL+CoFests!+2024"> Click here to provide feedback</a> <img src="assets/itcr_arrow.png" style=" width: 10%" ></span></div></p>
19+
<p style="padding-left: 40px;"><div class="trapezoid" style = "padding-left: 40px;"><span><a href="https://docs.google.com/forms/d/e/1FAIpQLScrDVb_utm55pmb_SHx-RgELTEbCCWdLea0T3IzS0Oj00GE4w/viewform?usp=pp_url&entry.1565230805=your+course"> Click here to provide feedback</a> <img src="assets/itcr_arrow.png" style=" width: 10%" ></span></div></p>
2020
21-
# Note: Do not edit the feedback link in this file. This is automatically edited through the render-preview and render-bookdown workflows.
21+
# Note: Do not edit the feedback link in this file. This is automatically edited through the render-preview and render-bookdown workflows.

config_automation.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@ render-website: rmd
2525
render-leanpub: no
2626
render-coursera: no
2727

28+
## Automate the creation of Book.txt file? yes/no
29+
## This is only relevant if render-leanpub is yes, otherwise it will be ignored
30+
make-book-txt: yes
31+
2832
##### Rendering of student guide (if applicable)
29-
render-student-guide: no
33+
render-student-guide: yes
3034

3135
##### Auto-generate a feedback link for the AnVIL Feedback Form: https://docs.google.com/forms/d/e/1FAIpQLScrDVb_utm55pmb_SHx-RgELTEbCCWdLea0T3IzS0Oj00GE4w/viewform
3236
feedback-link: yes

student-guide.Rmd

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
# Student Guide
3+
4+
## Activity One
5+
6+
Many of the AnVIL books that are designed for teaching a class or workshop contain information aimed at the instructor.
7+
8+
You might want to create a "student guide" that contains a different subset of Rmd files from your book, or renders to a different output format (e.g. word document). You can specify the output and Rmd files that will be used for the student guide using the `_output.yml` and `_bookdown.yml` files in the `student-guide` directory.
9+
10+
By default, repositories based on `AnVIL_Template` create a docx file containing this chapter as an example. Once you have adjusted `student-guide/bookdown.yml` to include the chapters you want in your student guide, you can link to it by replacing `{repo-name}` in the following URL:
11+
12+
`https://github.com/jhudsl/{repo-name}/raw/main/student-guide/docs/Student_Guide.docx`
13+
14+
When someone clicks this link, they will download the docx file. For example, here is the link for the student guide from `AnVIL_Template`:
15+
16+
https://github.com/jhudsl/AnVIL_Template/raw/main/student-guide/docs/Student_Guide.docx
17+
18+
## Activity Two
19+
20+
Steps of the guide could go here.

student-guide/_bookdown.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
book_filename: "Student_Guide"
21
chapter_name: "Chapter "
3-
repo: https://github.com/jhudsl/AnVIL_Template/
2+
repo: https://github.com/jhudsl/AnVIL_CoFests_2024/
43
rmd_files: ["index.Rmd",
5-
"09-student_guide.Rmd",
4+
"student-guide.Rmd",
5+
"About.Rmd",
66
"References.Rmd"]
77
new_session: yes
88
bibliography: [book.bib]
99
delete_merged_file: true
1010
language:
1111
ui:
1212
chapter_name: "Chapter"
13-
output_dir: "student-guide"
13+
book_filename: "Student_Guide" # Do not change
14+
output_dir: "student-guide/docs" # Do not change

style-sets/AnVIL_FH/_output.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ bookdown::gitbook:
22
# When using multiple css files, the default file path will be the first one #
33
css: [assets/style.css, assets/AnVIL_style/anvil.css]
44
includes:
5+
in_header: GA_Script.html
56
before_body: assets/AnVIL_style/big-image_anvil.html
67
after_body: assets/AnVIL_style/footer.html
78
highlight: tango

style-sets/AnVIL_JHU/_output.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ bookdown::gitbook:
22
# When using multiple css files, the default file path will be the first one #
33
css: [assets/style.css, assets/AnVIL_style/anvil.css]
44
includes:
5+
in_header: GA_Script.html
56
before_body: assets/AnVIL_style/big-image_anvil.html
67
after_body: assets/AnVIL_style/footer.html
78
highlight: tango

style-sets/GDSCN/_output.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ bookdown::gitbook:
22
# When using multiple css files, the default file path will be the first one #
33
css: [assets/style.css, assets/GDSCN_style/gdscn.css]
44
includes:
5+
in_header: GA_Script.html
56
before_body: assets/GDSCN_style/big-image_gdscn.html
67
after_body: assets/GDSCN_style/footer.html
78
highlight: tango

style-sets/GDSCN_JHU/_output.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ bookdown::gitbook:
22
# When using multiple css files, the default file path will be the first one #
33
css: [assets/style.css, assets/GDSCN_style/gdscn.css]
44
includes:
5+
in_header: GA_Script.html
56
before_body: assets/GDSCN_style/big-image_gdscn.html
67
after_body: assets/GDSCN_style/footer.html
78
highlight: tango

0 commit comments

Comments
 (0)