Skip to content

Commit

Permalink
switch to {babelquarto} (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Apr 21, 2023
1 parent 4c11dfc commit 6bee2f7
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 123 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
extra-packages: local::.

- name: Render book
run: Rscript -e 'rOpenScidevguide::orchestrate()'
run: Rscript -e 'babelquarto::render_book()'
env: # Set the secret as an input
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
ZENODO_TOKEN: ${{ secrets.ZENODO_TOKEN }}
Expand All @@ -41,7 +41,7 @@ jobs:
run: Rscript -e 'file.copy(from = "_book/rOpenSci-Packages--Development,-Maintenance,-and-Peer-Review.pdf", to = "_book/ropensci-dev-guide.pdf")' -e 'purrr::walk(list.files("images", full.names = TRUE), file.copy, to = "_book/images")'

- name: Move Spanish files
run: Rscript -e 'file.copy(from = "_book/es/rOpenSci-Packages--Development,-Maintenance,-and-Peer-Review.pdf", to = "_book/es/ropensci-dev-guide.pdf")' -e 'purrr::walk(list.files("images", full.names = TRUE), file.copy, to = "_book/es/images")'
run: Rscript -e 'file.copy(from = "_book/es/Paquetes-de-rOpenSci--Desarrollo,-mantenimiento-y-revisión-por-pares.pdf", to = "_book/es/ropensci-dev-guide.pdf")' -e 'purrr::walk(list.files("images", full.names = TRUE), file.copy, to = "_book/es/images")'

- name: git config
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
extra-packages: local::.

- name: Render book
run: Rscript -e 'rOpenScidevguide::orchestrate()'
run: Rscript -e 'babelquarto::render_book()'
env: # Set the secret as an input
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
ZENODO_TOKEN: ${{ secrets.ZENODO_TOKEN }}
Expand All @@ -44,7 +44,7 @@ jobs:
run: Rscript -e 'file.copy(from = "_book/rOpenSci-Packages--Development,-Maintenance,-and-Peer-Review.pdf", to = "_book/ropensci-dev-guide.pdf")' -e 'purrr::walk(list.files("images", full.names = TRUE), file.copy, to = "_book/images")'

- name: Move Spanish files
run: Rscript -e 'file.copy(from = "_book/es/rOpenSci-Packages--Development,-Maintenance,-and-Peer-Review.pdf", to = "_book/es/ropensci-dev-guide.pdf")' -e 'purrr::walk(list.files("images", full.names = TRUE), file.copy, to = "_book/es/images")'
run: Rscript -e 'file.copy(from = "_book/es/Paquetes-de-rOpenSci--Desarrollo,-mantenimiento-y-revisión-por-pares.pdf", to = "_book/es/ropensci-dev-guide.pdf")' -e 'purrr::walk(list.files("images", full.names = TRUE), file.copy, to = "_book/es/images")'

- name: Deploy to Netlify
id: netlify-deploy
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
extra-packages: local::.

- name: Render book
run: Rscript -e 'rOpenScidevguide::orchestrate()'
run: Rscript -e 'babelquarto::render_book()'
env: # Set the secret as an input
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
ZENODO_TOKEN: ${{ secrets.ZENODO_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scheduled-manual-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- uses: r-lib/actions/setup-tinytex@v2

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::bookdown
- name: Render book html
run: Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::bs4_book", params = list(AIRTABLE_API_KEY = ${{ secrets.AIRTABLE_API_KEY }}))'
Expand Down
31 changes: 8 additions & 23 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,18 @@ Description: rOpenSci Packages: Development, Maintenance, and Peer Review
Version: 0.8.1
Imports:
airtabler,
htmltools,
quarto,
purrr,
babeldown (>= 0.0.0.9000),
babelquarto,
gert,
humaniformat,
bslib,
downlit,
xml2,
rvest,
usethis,
rlang (>= 0.4.11.9000),
yaml,
fs,
withr,
brio,
gert,
tinkr (>= 0.1.0),
httr2,
memoise,
babeldown (>= 0.0.0.9000)
Remotes:
withr
Remotes:
bergant/airtabler,
rstudio/htmltools,
r-lib/downlit,
r-lib/rlang,
ropensci/tinkr,
ropensci-review-tools/babeldown
ropensci-review-tools/babeldown,
ropensci-review-tools/babelquarto
URL: https://github.com/ropensci/dev_guide
RoxygenNote: 7.2.1
RoxygenNote: 7.2.3
Roxygen: list(markdown = TRUE)
Encoding: UTF-8
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Generated by roxygen2: do not edit by hand

export(orchestrate)
83 changes: 0 additions & 83 deletions R/orchestrate.R

This file was deleted.

25 changes: 25 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
project:
type: book


title-es: "Paquetes de rOpenSci: Desarrollo, mantenimiento y revisión por pares"
author-es: "Equipo editorial para la revisión de software de rOpenSci (actuales y pasados): Brooke Anderson, Scott Chamberlain, Laura DeCicco, Julia Gustavsen, Jeff Hollister, Anna Krystalli, Mauro Lepore, Lincoln Mullen, Mark Padgham, Karthik Ram, Emily Riederer, Noam Ross, Maëlle Salmon, Adam Sparks, Melina Vidoni"
description-es: |
Versión extendida de la guía de empaquetado de rOpenSci.
Este libro es una guía para autoras/es, encargadas/os, revisoras/es y editoras/es de rOpenSci.
La primera sección del libro contiene
nuestras recomendaciones para crear y probar los paquetes de R.
La segunda sección está dedicada al proceso de revisión por pares de software de rOpenSci:
qué es, nuestras políticas y guías específicas para orientar
a quienes crean, mantienen, revisan y editan a lo largo del proceso.
La tercera y última sección presenta nuestras buenas prácticas para hacer crecer
su paquete una vez que ha sido incorporado a rOpenSci: cómo colaborar con otras/os desarrolladoras/es,
cómo documentar cada versión de tu paquete y cómo aprovechar GitHub como plataforma de desarrollo.
La tercera sección también incluye un capítulo para cualquiera que desee
comenzar a contribuir a los paquetes de rOpenSci.
book:
favicon: images/apple-touch-icon.png
title: "rOpenSci Packages: Development, Maintenance, and Peer Review"
Expand Down Expand Up @@ -30,12 +47,14 @@ book:
- preface.Rmd

- part: Building Your Package
part-es: Construyendo tu paquete
chapters:
- pkg_building.Rmd
- pkg_ci.Rmd
- pkg_security.Rmd

- part: Software Peer Review of Packages
part-es: Revisión por pares de software de paquetes
chapters:
- softwarereview_intro.Rmd
- softwarereview_policies.Rmd
Expand All @@ -45,6 +64,7 @@ book:
- softwarereview_editor_management.Rmd

- part: Maintaining Packages
part-es: Manteniendo paquetes
chapters:
- maintenance_cheatsheet.Rmd
- maintenance_collaboration.Rmd
Expand All @@ -57,6 +77,7 @@ book:
- maintenance_contributing.Rmd

- part: Appendix
part-es: Apéndice
chapters:
- booknews.Rmd
- reviewtemplate.Rmd
Expand All @@ -76,3 +97,7 @@ format:
pdf:
include-in-header: "preamble.tex"
output-file: "ropensci-dev-guide"
babelquarto:
mainlanguage: en
languages: es
lang: en
11 changes: 0 additions & 11 deletions man/orchestrate.Rd

This file was deleted.

0 comments on commit 6bee2f7

Please sign in to comment.