Skip to content

Commit ef6e2e8

Browse files
authored
Initial commit
0 parents  commit ef6e2e8

File tree

885 files changed

+42909
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

885 files changed

+42909
-0
lines changed

.github/AnVIL_Feedback_Script.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# Extract the title from the YAML front matter of index.Rmd
4+
title=$(awk '/^title:/{gsub(/^title: /,""); print}' "index.Rmd" | grep -v '^$')
5+
6+
# Remove the outside quotation marks
7+
title=$(sed -e 's/^"//' -e 's/"$//' <<< "$title")
8+
9+
# Replace spaces with '+'
10+
title=${title// /+}
11+
12+
# Base url for the AnVIL Google Form
13+
url_base="https://docs.google.com/forms/d/e/1FAIpQLScrDVb_utm55pmb_SHx-RgELTEbCCWdLea0T3IzS0Oj00GE4w/viewform?usp=pp_url&entry.1565230805="
14+
15+
# Replace the url inside _output.yml
16+
perl -i -pe 's|https://docs.google.com/forms/d/e/1FAIpQLScrDVb_utm55pmb_SHx-RgELTEbCCWdLea0T3IzS0Oj00GE4w/viewform\?usp=pp_url&entry\.1565230805=.*"> Click|'${url_base}${title}'"> Click|g' _output.yml
17+
18+
# Print for Github actions
19+
echo "The feedback link is: ${url_base}${title}"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: New content idea
3+
about: Suggest an idea for the course
4+
title: ''
5+
labels: ''
6+
assignees:
7+
8+
---
9+
10+
## Describe the your scope of your content idea
11+
<!-- What will this cover and how does it relate to the current course material? -->
12+
13+
## Describe the learning objectives for your content idea
14+
<!-- What will users learn from this new content? -->
15+
16+
## Additional context or resources
17+
<!-- Add any other context or related resources we should know about? -->
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Course Problem Report
3+
about: Create a report to help improve the course
4+
title: [Problem]
5+
labels: bug
6+
assignees:
7+
8+
---
9+
10+
## Describe what is not working with the course
11+
<!-- A clear and concise description of what the bug is. -->
12+
13+
## Steps to Reproduce
14+
<!-- Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
-->
20+
21+
## Expected behavior
22+
<!-- A clear and concise description of what you expected to happen. -->
23+
24+
## Screenshots
25+
<!-- If applicable, add screenshots to help explain your problem. -->
26+
27+
## Additional context
28+
<!-- Add any other context about the problem here. -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!--This PR Template was modified from https://github.com/AlexsLemonade/OpenPBTA-analysis/blob/master/.github/PULL_REQUEST_TEMPLATE.md-->
2+
3+
### Purpose/implementation Section
4+
5+
#### What changes are being implemented in this Pull Request?
6+
7+
8+
9+
#### What was your approach?
10+
11+
12+
13+
#### What GitHub issue does your pull request address?
14+
15+
16+
17+
### Tell potential reviewers what kind of feedback you are soliciting.
18+
19+
20+
21+
### New Content Checklist
22+
23+
- [ ] New content/chapter is in an Rmd file with [this kind of format and headers](https://github.com/jhudsl/OTTR_Template/blob/main/02-chapter_of_course.Rmd).
24+
25+
- [ ] New content/chapter contains [Learning Objectives and are in the correct format](https://github.com/jhudsl/OTTR_Template/wiki/Setting-up-images-and-graphics#learning-objectives-formatting).
26+
27+
- [ ] [Bookdown successfully re-renders and any new content files have been added to the _bookdown.yml](https://github.com/jhudsl/OTTR_Template/wiki/Publishing-with-Bookdown).
28+
29+
- [ ] Spell check runs successfully in [Github actions style-n-check](https://github.com/jhudsl/OTTR_Template/wiki/How-to-set-up-and-customize-GitHub-actions-robots#spell-check)).
30+
31+
- [ ] Any newly necessary packages that are needed have been added to the [Dockerfile and image](https://github.com/jhudsl/OTTR_Template/wiki/Using-Docker#adding-packages-to-the-dockerfile).
32+
33+
- [ ] Images are in the [correct format for rendering](https://github.com/jhudsl/OTTR_Template/wiki/Setting-up-images-and-graphics#adding-images-and-graphics-in-text).
34+
35+
- [ ] Every new image has [alt text and is in a Google Slide](https://github.com/jhudsl/OTTR_Template/wiki/Setting-up-images-and-graphics#accessibility).
36+
37+
- [ ] Each slide is described in the notes of the slide so learners relying on a screen reader can access the content. See https://lastcallmedia.com/blog/accessible-comics for more guidance on this.
38+
39+
- [ ] The color palette choices of the slide are contrasted in a way that is friendly to those with color vision deficiencies.
40+
You can check this using [Color Oracle](https://colororacle.org/).
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- [ ] Fill in the `About.Rmd` page to give credit to authors and contributors.
2+
3+
For more information about the `About.Rmd` page, see [the ottr instructions](https://www.ottrproject.org/more_features.html#Giving_credits_to_contributors).
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
To help users report issues or areas of improvement for your course, you should provide a clear method of feedback for your users to route their concerns through.
3+
4+
A feedback method (Google Form) has already been provided for AnVIL and GDSCN courses. Github actions automatically populates the Google Form with the `title` field from [`index.Rmd`](https://github.com/jhudsl/AnVIL_Template/blob/main/index.Rmd) using the [AnVIL Feedback Script](https://github.com/jhudsl/AnVIL_Template/blob/main/scripts/AnVIL_Feedback_Script.sh).
5+
6+
- [ ] The `title` field has been filled out in the header yaml of `index.Rmd`.
7+
8+
*No further action is needed on your part*. However, if you would like to change the feedback method, you can do so by editing [this line of code](https://github.com/jhudsl/AnVIL_Template/blob/7c501e9804cf88a151832bb0a9bbc1eae9d23fdf/_output.yml#L19) in `_output.yml`.
9+
10+
[See these instructions](https://docs.google.com/document/d/1uhGafEkbtJL3ar3TVHqRFypwTbXjudHa7h2mXu53CkA/edit?usp=sharing) for how to manually create a feedback link for AnVIL / GDSCN content or events.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
If you want this repository to be added to the AnVIL Collection, make sure you do the following:
3+
4+
- Click the gear icon on the top right of the "Code" page next to "About"
5+
- [ ] Create a repository description
6+
- [ ] Add the homepage where your course will be rendered
7+
- [ ] Add a description of your course/content
8+
- [ ] Add the topic tag `anvil` or `gdscn`. You should also supply any other relevant tags.
9+
10+
Following these steps will also automatically add this repository to the [AnVIL Collection](https://hutchdatascience.org/AnVIL_Collection/) if this repository is owned by one of the DaSL organizations.
11+
12+
For more information on these settings see instructions in the [wiki pages](https://github.com/jhudsl/AnVIL_Template/wiki/The-AnVIL-Collection#adding-your-course-to-the-anvil-collection).
13+
14+
For more information about adding repositories to the DaSL Collection, see the [AnVIL Collection README](https://github.com/fhdsl/AnVIL_Collection#readme).
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
**Note these steps are only pertinent if you are setting up this course outside of the jhudsl organization**
3+
4+
For more information on these settings see instructions in the [getting started GitHub wiki pages](https://github.com/jhudsl/OTTR_Template/wiki/Setting-up-GitHub-secrets).
5+
6+
It's important that these are set up and named exactly what they are below in order for Github actions to work correctly.
7+
8+
To set up these repository secrets, on your repository's main Github page, go to `Settings` and scroll down to see `Secrets` on the left side menu bar.
9+
10+
- [ ] Set `GH_PAT`
11+
`Name`: `GH_PAT`
12+
`value`: A personal access token [following these instructions](https://github.com/jhudsl/OTTR_Template/wiki/Start-a-new-course#6-set-up-your-github-personal-access-token).
13+
Underneath `Select scopes`, check both `repo` and `workflow`.
14+
Then copy the PAT and save as the value.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Use this checklist to make sure your slides and images are set up correctly!
3+
4+
See [Setting Up Images and Graphics](https://github.com/jhudsl/OTTR_Template/wiki/Setting-up-images-and-graphics) for more info!
5+
6+
- [ ] Create your [course's main Google Slides](https://github.com/jhudsl/OTTR_Template/wiki/Setting-up-images-and-graphics)
7+
8+
- [ ] The slides use the [appropriate template](https://github.com/jhudsl/OTTR_Template/wiki/Setting-up-images-and-graphics).
9+
10+
- [ ] Each slide is described in the notes of the slide so learners relying on a screen reader can access the content. See https://lastcallmedia.com/blog/accessible-comics for more guidance on this.
11+
12+
- [ ] The color palette choices of the slide are contrasted in a way that is friendly to those with color vision deficiencies.
13+
You can check this using [Color Oracle](https://colororacle.org/).
14+
15+
- [ ] Every image is [inserted into the text](https://github.com/jhudsl/OTTR_Template/wiki/Setting-up-images-and-graphics#adding-images-and-graphics-in-text) using one of these options: `ottrpal::include_slide()`, `knitr::include_image()`, or this format: `<img src="blah.png" alt="SOMETHING">`.
16+
17+
- [ ] Every image has [alternative text added to it](https://github.com/jhudsl/OTTR_Template/wiki/Setting-up-images-and-graphics#adding-images-and-graphics-in-text).
18+
19+
- [ ] The beginning of each Rmd contains this chunk so the images are saved in the correct spot:
20+
21+
`````
22+
```{r, include = FALSE}
23+
ottrpal::set_knitr_image_path()
24+
```
25+
`````
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
For more information on these settings see instructions in the [getting started GitHub wiki pages](https://github.com/jhudsl/OTTR_Template/wiki/Start-a-new-course).
3+
4+
- [ ] This course repository is set to `public`.
5+
- [ ] [Add the `jhudsl-robot` as a collaborator to your repository.](https://github.com/jhudsl/OTTR_Template/wiki/Setting-up-your-repository-settings#add-jhudsl-robot-as-a-collaborator).
6+
- [ ] [GH_PAT has been set up as a GitHub secret](https://github.com/jhudsl/OTTR_Template/wiki/Start-a-new-course#6-set-up-your-github-personal-access-token)
7+
8+
- [ ] GitHub pages is turned on
9+
- [ ] Go to `Settings` > `Pages`. Underneath `Source`, choose `main` for the branch and select the `docs` folder. Then click `Save`.
10+
- [ ] Check `Enforce HTTPS`.
11+
12+
- [ ] [Github secret `GH_PAT` has been set](https://github.com/jhudsl/OTTR_Template/wiki/Start-a-new-course#6-set-up-your-github-personal-access-token)
13+
`Name`: `GH_PAT`
14+
`value`: A personal access token [following these instructions](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-token).
15+
Underneath `Select scopes`, check both `repo` and `workflow`.
16+
Then copy the PAT and save as the value.
17+
18+
- [ ] [Set branch protections settings](https://github.com/jhudsl/OTTR_Template/wiki/Start-a-new-course#9-set-up-branch-rules)
19+
- [ ] `main` branch has been set up:
20+
- [ ] `Require pull request reviews before merging` box is checked.
21+
- [ ] `Require status checks to pass before merging` box is checked.
22+
- [ ] Underneath that `Require branches to be up to date before merging` box is checked.
23+
- [ ] Click `Save` at the bottom of the page!
24+
25+
- [ ] [Customize GitHub actions](https://github.com/jhudsl/OTTR_Template/wiki/How-to-set-up-and-customize-GitHub-actions-robots) for what you will need in this course.

0 commit comments

Comments
 (0)