-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'styles/gh-pages' into gh-pages
- Loading branch information
Showing
21 changed files
with
332 additions
and
132 deletions.
There are no files selected for viewing
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,14 @@ | ||
{ | ||
"files": [ | ||
"README.md", | ||
"_includes/authors.html" | ||
], | ||
"projectName": "test-module", | ||
"projectOwner": "hsf-training", | ||
"repoType": "github", | ||
"repoHost": "https://github.com", | ||
"skipCi": true, | ||
"contributors": [ | ||
], | ||
"contributorsPerLine": 7 | ||
} |
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
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
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,85 @@ | ||
name: Website | ||
on: | ||
push: | ||
branches: gh-pages | ||
pull_request: [] | ||
jobs: | ||
build-website: | ||
if: ${{ !endsWith(github.repository, '/hsf-styles') }} | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Set up Ruby | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.7' | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install GitHub Pages, Bundler, and kramdown gems | ||
run: | | ||
gem install github-pages bundler kramdown | ||
- name: Install Python modules | ||
run: | | ||
python3 -m pip install --upgrade pip setuptools wheel pyyaml==5.3.1 requests | ||
- name: Checkout the lesson | ||
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Look for R-markdown files | ||
id: check-rmd | ||
run: | | ||
echo "::set-output name=count::$(shopt -s nullglob; files=($(find . -iname '*.Rmd')); echo ${#files[@]})" | ||
- name: Set up R | ||
if: steps.check-rmd.outputs.count != 0 | ||
uses: r-lib/actions/setup-r@master | ||
with: | ||
r-version: 'release' | ||
|
||
- name: Install needed packages | ||
if: steps.check-rmd.outputs.count != 0 | ||
run: | | ||
install.packages(c('remotes', 'rprojroot', 'renv', 'desc', 'rmarkdown', 'knitr')) | ||
shell: Rscript {0} | ||
|
||
- name: Query dependencies | ||
if: steps.check-rmd.outputs.count != 0 | ||
run: | | ||
source('bin/dependencies.R') | ||
deps <- identify_dependencies() | ||
create_description(deps) | ||
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) | ||
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") | ||
shell: Rscript {0} | ||
|
||
- name: Cache R packages | ||
if: steps.check-rmd.outputs.count != 0 | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ env.R_LIBS_USER }} | ||
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} | ||
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- | ||
|
||
- name: Install system dependencies for R packages | ||
if: steps.check-rmd.outputs.count != 0 | ||
run: | | ||
while read -r cmd | ||
do | ||
eval sudo $cmd | ||
done < <(Rscript -e 'cat(remotes::system_requirements("ubuntu", "18.04"), sep = "\n")') | ||
- run: make site | ||
- run: make lesson-check | ||
if: always() | ||
- run: make lesson-check-all | ||
if: always() |
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
.ipynb_checkpoints | ||
.sass-cache | ||
.jekyll-cache/ | ||
.jekyll-metadata | ||
__pycache__ | ||
_site | ||
.Rproj.user | ||
|
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,25 @@ | ||
--- | ||
layout: base | ||
root: . | ||
permalink: 404.html | ||
title: "Page not found" | ||
--- | ||
|
||
# Oops! We can't find that page. | ||
{: style="text-align: center;"} | ||
|
||
> ## Our apologies! | ||
> | ||
> We can't seem to find the page you're looking for. | ||
> Try going back to the <a href="javascript:history.back()">previous page</a> or | ||
> navigate to any other page using the navigation bar above | ||
> {%- if site.kind == "lesson" -%} or the schedule below {%- endif -%}. | ||
> If you got here by clicking on a link in the | ||
> {%- if site.kind == "lesson" -%} lesson {%- else -%} workshop {%- endif -%}, | ||
> please report this link to the | ||
> {%- if site.kind == "lesson" -%} lesson developers {%- else -%} workshop organizers {%- endif -%}. | ||
{: .caution} | ||
|
||
{% if site.kind == "lesson" %} | ||
{% include syllabus.html %} | ||
{% endif%} |
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
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
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,11 @@ | ||
<h2>Authors</h2> | ||
The following people contributed to the content of this lesson: | ||
<div class="author-table"> | ||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> | ||
<!-- prettier-ignore-start --> | ||
<!-- markdownlint-disable --> | ||
<!-- markdownlint-enable --> | ||
<!-- prettier-ignore-end --> | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
</div> | ||
Note that this list does not include the contributors to the framework. |
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
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
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
Oops, something went wrong.