Skip to content

Commit

Permalink
Fix missing example _quarto.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
joelnitta committed Dec 17, 2024
1 parent 905d7c9 commit 2550eb1
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions posts/2024-12-06_babelquarto/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,19 @@ We will make the following changes:

This is what edited version looks like:

```{r}
#| label: hide-edited-quarto-yml
#| echo: false
download.file(
url = "https://raw.githubusercontent.com/joelnitta/2024-12-07-japanr/refs/heads/main/example-quarto.yml",
destfile = path(website_dir, "_quarto.yml")
)
```


```{r}
#| label: show-edited-quarto-yml
#| echo: true
getwd()
fs::file_copy(
path = "./example-quarto.yml",
path(website_dir, "_quarto.yml"),
overwrite = TRUE
)
readr::read_lines(path(website_dir, "_quarto.yml")) |>
cat(sep = "\n")
```
Expand Down Expand Up @@ -257,7 +261,7 @@ Your browser should open a tab with the website shown below:
## Example repo

I've posted this same example to a repository at <https://github.com/joelnitta/example-babelquarto/>.
The rendered website (<https://joelnitta.github.io/example-babelquarto/>) is exactly what you see above.
The [rendered website](https://joelnitta.github.io/example-babelquarto/) is exactly what you see above.

## What's next

Expand Down

0 comments on commit 2550eb1

Please sign in to comment.