Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created initial page for Quarto Website including subchapters of Module 0 and 1 #171

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
96d5505
Created starting apge and added Module 0 slides and video
sandygross Feb 14, 2025
b1b5d45
Changed title slide to include transcript
sandygross Feb 14, 2025
5302074
Added video and slides for Module 1 Subchapter 1
sandygross Feb 21, 2025
403def7
Added MC for Module0
sandygross Feb 21, 2025
18bc4c2
Removed unncessary comments
sandygross Feb 21, 2025
c333b95
Added output files
sandygross Feb 21, 2025
df56167
Adjusted names of the files
sandygross Feb 21, 2025
02df210
Added render section with specific files
sandygross Feb 21, 2025
dd0f3eb
Fixed rendering issue
sandygross Feb 21, 2025
afcdd6f
Added Module 1 Module Learning Outcomes
sandygross Feb 21, 2025
697d2b3
Added MC Chapter 1 Subchapter 2
sandygross Feb 21, 2025
1a72f69
Added Module 1 Subchapter 3
sandygross Feb 24, 2025
dcc3c21
Increased distance between left border and text in transcript block
sandygross Feb 24, 2025
c700472
Added chapter 1 Subchapter 4
sandygross Feb 24, 2025
c325f13
Added chapter 1 Subchapter 5
sandygross Feb 24, 2025
b37c320
added qmd for subchapter 7 slides module 1
sandygross Feb 24, 2025
5a8c465
Added Module 1 Subchapter 7
sandygross Feb 24, 2025
46aa581
Added two different styles for MC questions
sandygross Feb 24, 2025
51e326e
Added Chapter 1 Subchapter 8
sandygross Feb 24, 2025
7feb5ea
added module 1 end slides
sandygross Feb 24, 2025
d1ecf54
Added chapter 1 Subchapter 11
sandygross Feb 24, 2025
34aa890
Pushed output folder
sandygross Feb 24, 2025
b39e337
Changed gitignore by including dist folder
sandygross Feb 25, 2025
923553d
Added dist folder
sandygross Feb 25, 2025
9f13602
Delete output folder
sandygross Feb 25, 2025
2300743
Added live coding exercise chapter 1 module 6
sandygross Feb 25, 2025
7978918
Adjusted structure of yaml including numbering of the sections
sandygross Feb 25, 2025
ca429cc
Quarto Live Extension
sandygross Feb 25, 2025
beb81b2
Removed naquiz reference
sandygross Feb 25, 2025
52c79ab
Remove dir specification since it is the default
joelostblom Feb 25, 2025
4d00144
Remove number-sections since we are doing it manually
joelostblom Feb 25, 2025
f357cbe
Add index file
joelostblom Feb 25, 2025
45ca8e4
Added DS Store to gitignore
sandygross Feb 25, 2025
f7a606b
Merge branch 'quarto-website' of github.com:UBC-MDS/exploratory-data-…
sandygross Feb 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.vscode
dist/

# Logs
logs
Expand Down Expand Up @@ -77,3 +76,7 @@ yarn-error.log
*package-lock.json
*chapters/en/slides/module1/junk_code.md
*chapters/en/slides/module1/junk_code.Rmd

/.quarto/
.DS_Store

2 changes: 2 additions & 0 deletions Quarto/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.quarto/
.DS_Store
15 changes: 15 additions & 0 deletions Quarto/_extensions/r-wasm/live/_extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
title: Quarto Live
author: George Stagg
version: 0.1.3-dev
quarto-required: ">=1.4.0"
contributes:
filters:
- live.lua
formats:
common:
ojs-engine: true
filters:
- live.lua
html: default
revealjs: default
dashboard: default
40 changes: 40 additions & 0 deletions Quarto/_extensions/r-wasm/live/_gradethis.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
```{webr}
#| edit: false
#| output: false
webr::install("gradethis", quiet = TRUE)
library(gradethis)
options(webr.exercise.checker = function(
label, user_code, solution_code, check_code, envir_result, evaluate_result,
envir_prep, last_value, engine, stage, ...
) {
if (is.null(check_code)) {
# No grading code, so just skip grading
invisible(NULL)
} else if (is.null(label)) {
list(
correct = FALSE,
type = "warning",
message = "All exercises must have a label."
)
} else if (is.null(solution_code)) {
list(
correct = FALSE,
type = "warning",
message = htmltools::tags$div(
htmltools::tags$p("A problem occurred grading this exercise."),
htmltools::tags$p(
"No solution code was found. Note that grading exercises using the ",
htmltools::tags$code("gradethis"),
"package requires a model solution to be included in the document."
)
)
)
} else {
gradethis::gradethis_exercise_checker(
label = label, solution_code = solution_code, user_code = user_code,
check_code = check_code, envir_result = envir_result,
evaluate_result = evaluate_result, envir_prep = envir_prep,
last_value = last_value, stage = stage, engine = engine)
}
})
```
32 changes: 32 additions & 0 deletions Quarto/_extensions/r-wasm/live/_knitr.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
```{r echo=FALSE}
# Setup knitr for handling {webr} and {pyodide} blocks
# TODO: With quarto-dev/quarto-cli#10169, we can implement this in a filter

# We'll handle `include: false` in Lua, always include cell in knitr output
knitr::opts_hooks$set(include = function(options) {
if (options$engine == "webr" || options$engine == "pyodide") {
options$include <- TRUE
}
options
})

# Passthrough engine for webr
knitr::knit_engines$set(webr = function(options) {
knitr:::one_string(c(
"```{webr}",
options$yaml.code,
options$code,
"```"
))
})

# Passthrough engine for pyodide
knitr::knit_engines$set(pyodide = function(options) {
knitr:::one_string(c(
"```{pyodide}",
options$yaml.code,
options$code,
"```"
))
})
```
Loading