Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Sep 5, 2023
1 parent 8665514 commit a8a38e5
Show file tree
Hide file tree
Showing 22 changed files with 371 additions and 331 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@
^pkgdown\.yaml$
^pkgdown\.yml$
^\.imgbotconfig$
^\.lintr$
^CODE_OF_CONDUCT\.md$
^CONTRIBUTING\.md$
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ updates:
directory: "/"
schedule:
interval: "weekly"

3 changes: 2 additions & 1 deletion .github/workflows/roscron-check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand All @@ -45,3 +45,4 @@ jobs:
needs: check

- uses: r-lib/actions/check-r-package@v2

6 changes: 3 additions & 3 deletions .github/workflows/rostemplate-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ name: rostemplate-docs

jobs:
rostemplate-docs:
runs-on: ubuntu-latest
runs-on: windows-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand Down Expand Up @@ -47,4 +47,4 @@ jobs:
git commit -m 'Build pkgdown' || echo "No changes to commit"
git push origin || echo "No changes to commit"
7 changes: 4 additions & 3 deletions .github/workflows/rostemplate-gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ name: rostemplate-gh-pages

jobs:
rostemplate-gh-pages:
runs-on: ubuntu-latest
runs-on: windows-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

Expand All @@ -41,4 +41,5 @@ jobs:
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
3 changes: 2 additions & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
Expand All @@ -29,3 +29,4 @@ jobs:
- name: Test coverage
run: covr::codecov()
shell: Rscript {0}

2 changes: 1 addition & 1 deletion .github/workflows/update-citation-cff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
Expand Down
114 changes: 57 additions & 57 deletions .github/workflows/update-docs.yaml
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
on:
workflow_dispatch:

name: update-docs

jobs:
update-docs:
runs-on: windows-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
local::.
any::rcmdcheck
any::pkgdown
any::cranlogs
any::tidyverse
any::jsonlite
any::lubridate
any::reactable
dieghernan/pkgdev
needs: website

- name: Update docs
run: |
pkgdev::update_docs()
shell: Rscript {0}

- name: Commit results
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m 'Update docs with pkgdev' || echo "No changes to commit"
git push origin || echo "No changes to commit"
- uses: r-lib/actions/check-r-package@v2

- name: Deploy package
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
on:
workflow_dispatch:

name: update-docs

jobs:
update-docs:
runs-on: windows-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true


- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
local::.
any::rcmdcheck
any::pkgdown
any::cranlogs
any::tidyverse
any::jsonlite
any::lubridate
any::reactable
dieghernan/pkgdev
needs: website

- name: Update docs
run: |
pkgdev::update_docs()
shell: Rscript {0}

- name: Commit results
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m 'Update docs with pkgdev' || echo "No changes to commit"
git push origin || echo "No changes to commit"
- uses: r-lib/actions/check-r-package@v2

- name: Deploy package
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
21 changes: 11 additions & 10 deletions .github/workflows/wipe-cache.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Clear GHA caches manually
on:
workflow_dispatch:

jobs:
cache-clear:
runs-on: ubuntu-latest

steps:
- uses: easimon/wipe-cache@main
name: Clear GHA caches manually
on:
workflow_dispatch:

jobs:
cache-clear:
runs-on: ubuntu-latest

steps:
- uses: easimon/wipe-cache@main

3 changes: 3 additions & 0 deletions .lintr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
linters: linters_with_defaults() # see vignette("lintr")
encoding: "UTF-8"
exclusions: list("data-raw")
3 changes: 1 addition & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ message: 'To cite package "rostemplate" in publications use:'
type: software
license: MIT
title: 'rostemplate: Plantilla ''pkgdown'' para los paquetes de ''rOpenSpain'''
version: 0.1.1.9000
version: 0.1.1.9100
abstract: Plantilla privada para uso exclusivo de los paquetes de rOpenSpain.
authors:
- family-names: Hernangómez
Expand All @@ -26,7 +26,6 @@ preferred-citation:
orcid: https://orcid.org/0000-0001-8457-4658
affiliation: rOpenSpain
year: '2023'
version: 0.1.1.9000
url: https://ropenspain.github.io/rostemplate/
abstract: Plantilla privada para uso exclusivo de los paquetes de rOpenSpain.
repository-code: https://github.com/ropenspain/rostemplate
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rostemplate
Title: Plantilla 'pkgdown' para los paquetes de 'rOpenSpain'
Version: 0.1.1.9000
Version: 0.1.1.9100
Authors@R:
person("Diego", "Hernangómez", , "[email protected]", role = c("aut", "cre", "cph"),
comment = c(ORCID = "0000-0001-8457-4658", affiliation = "rOpenSpain"))
Expand All @@ -24,8 +24,8 @@ Suggests:
testthat (>= 3.0.0)
VignetteBuilder:
knitr
Config/testthat/edition: 3
Config/Needs/website: ropenspain/rostemplate, ggplot2
Config/testthat/edition: 3
Encoding: UTF-8
Language: es_ES
Roxygen: list(markdown = TRUE)
Expand Down
Loading

0 comments on commit a8a38e5

Please sign in to comment.