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

[scrollycoding] Preserve files from previous steps #22

Closed
pomber opened this issue Mar 4, 2021 · 2 comments
Closed

[scrollycoding] Preserve files from previous steps #22

pomber opened this issue Mar 4, 2021 · 2 comments
Assignees

Comments

@pomber
Copy link
Contributor

pomber commented Mar 4, 2021

Instead of repeating the same file for each step:

<Hike>

<StepHead>

```js somefile.js
console.log(1)
console.log(2)
```

</StepHead>

Markdown for step 1

<StepHead focus="1">

```js somefile.js
console.log(1)
console.log(2)
```

</StepHead>

Markdown for step 2

</Hike>

Use the files defined in the previous step and only override the ones defined in the current step.

<Hike>

<StepHead>

```js somefile.js
console.log(1)
console.log(2)
```

</StepHead>

Markdown for step 1

<StepHead focus="1" />

Markdown for step 2

</Hike>
@pomber pomber self-assigned this Mar 7, 2021
@pomber
Copy link
Contributor Author

pomber commented Mar 8, 2021

Fixed in 91fcf3e

@pomber pomber closed this as completed Mar 8, 2021
@rachelnabors
Copy link

This is great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants