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

The second section in a document without an exercise cannot be skipped #33

Closed
robbyshaver opened this issue Mar 6, 2017 · 0 comments
Closed

Comments

@robbyshaver
Copy link
Contributor

robbyshaver commented Mar 6, 2017

The issue is that the method for communicating "skip" from tutorial-format.js to the tutor code uses the data-label attribute of the exercise. If there is no exercise, the label is "undefined", which works for the first exercise-less section, but fails on the second. Hmmm ....

Sample code:

---
title: "Two exercise-less sections"
output: 
  tutor::tutorial:
    progressive: true
    allow_skip: true
runtime: shiny_prerendered
---

```{r setup, include=FALSE}
library(tutor)
```

## Welcome

### Section 1

This section can be skipped.

### Section 2

But not this one

### Section 3

Sad! Write the R code required to add two plus two:

```{r two-plus-two, exercise=TRUE}

```
@robbyshaver robbyshaver changed the title The second section without an exercise cannot be skipped The second section in a document without an exercise cannot be skipped Mar 7, 2017
robbyshaver added a commit that referenced this issue Mar 7, 2017
All sections without an exercise in the doc can now be skipped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant