Skip to content

Commit

Permalink
Merge pull request #78 from hadley/pkgdown
Browse files Browse the repository at this point in the history
Add basic website
  • Loading branch information
kevinushey authored Jan 8, 2022
2 parents c557731 + 6d0fe7b commit 63414a5
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
^CRAN-RELEASE$
^\.github$
^codecov\.yml$
^_pkgdown\.yml$
^docs$
^pkgdown$
41 changes: 41 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- 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: any::pkgdown, local::.
needs: website

- name: Build site
run: Rscript -e 'pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)'

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
inst/doc
.Rhistory
revdep/checks
docs
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ Collate:
'shortcuts.R'
'wildcards.R'
'zzz.R'
Config/Needs/website: r-lib/pkgdown
33 changes: 33 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
url: https://kevinushey.github.io/rex
template:
bootstrap: 5

reference:
- title: Create a regular expression
contents:
- rex
- capture
- character_class
- n_times
- group
- "`%if_next_is%`"
- not
- or
- zero_or_more

- title: String manipulation
contents:
- re_matches
- re_substitutes

- title: For developers
contents:
- as.regex
- as.character.regex
- character_class_escape
- escape
- shortcuts
- single_shortcuts
- register_shortcuts
- rex_mode

0 comments on commit 63414a5

Please sign in to comment.