Skip to content

Commit

Permalink
Update to new version
Browse files Browse the repository at this point in the history
- quarto add now for extension
- output-file does not support path
- post render script require a project
  • Loading branch information
cderv committed Jan 31, 2024
1 parent a216763 commit 99859f7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/render-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ jobs:
- name: Render with Quarto
uses: quarto-dev/quarto-actions/render@v2
with:
path: ORG-README.qmd

- name: Commit Results
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.quarto/
9 changes: 6 additions & 3 deletions ORG-README.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
output-file: profile/README.md
format: gfm
wrap: preserve
execute:
Expand All @@ -11,7 +10,7 @@ execute:

The `quarto-ext` organization collects extensions maintained by the core Quarto team.

Learn more about creating your own extensions here: <https://quarto.org/docs/extensions/>
Learn more about creating your extensions here: <https://quarto.org/docs/extensions/>

```{r}
#| message: false
Expand All @@ -25,6 +24,10 @@ res <- gh::gh("/orgs/{org}/repos", org = "quarto-ext")
tab <- res |>
# remove non extension
discard(~ .x$name %in% c(".github")) |>
# don't include manuscript template
discard(~ grepl("manuscript-template-", .x$name)) |>
# don't list typst template as this is a repo of templates
discard(~ grepl("typst-template", .x$name)) |>
# remove private
discard(~ .x$private) |>
map_df(~ tibble::tibble(
Expand All @@ -51,7 +54,7 @@ tab_formatted <- tab |>
transmute(
'Extension name' = glue::glue("[{name}]({url})"),
'Description' = description,
'Install' = glue::glue("`quarto install extension {full_name}`")
'Install' = glue::glue("`quarto add extension {full_name}`")
)
knitr::kable(tab_formatted)
Expand Down
6 changes: 6 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
project:
type: default
post-render:
- move-file.R
render:
- ORG-README.qmd
1 change: 1 addition & 0 deletions move-file.R
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
file.rename("ORG-README.md", "profile/README.md")

0 comments on commit 99859f7

Please sign in to comment.