Skip to content

Commit c7b1678

Browse files
committed
Merge branch 'main' into improve-render
2 parents 0665e5a + dbbd4a7 commit c7b1678

File tree

12 files changed

+74
-29
lines changed

12 files changed

+74
-29
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
^_pkgdown\.yml$
44
^docs$
55
^pkgdown$
6+
^\.github$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/pkgdown.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
release:
9+
types: [published]
10+
workflow_dispatch:
11+
12+
name: pkgdown
13+
14+
jobs:
15+
pkgdown:
16+
runs-on: ubuntu-latest
17+
# Only restrict concurrency for non-PR jobs
18+
concurrency:
19+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
20+
env:
21+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
22+
permissions:
23+
contents: write
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- uses: r-lib/actions/setup-pandoc@v2
28+
29+
- uses: r-lib/actions/setup-r@v2
30+
with:
31+
use-public-rspm: true
32+
33+
- uses: r-lib/actions/setup-r-dependencies@v2
34+
with:
35+
extra-packages: any::pkgdown, local::.
36+
needs: website
37+
38+
- name: Build site
39+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
40+
shell: Rscript {0}
41+
42+
- name: Deploy to GitHub pages 🚀
43+
if: github.event_name != 'pull_request'
44+
uses: JamesIves/[email protected]
45+
with:
46+
clean: false
47+
branch: gh-pages
48+
folder: docs

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.Rhistory
33

44
inst/doc
5+
docs

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: quarto
22
Title: R Interface to 'Quarto' Markdown Publishing System
3-
Version: 1.2.0.9000
3+
Version: 1.3
44
Authors@R:
55
person(given = "JJ",
66
family = "Allaire",

R/publish.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#' Publish Quarto Documents
33
#'
4-
#' Publish Quarto documents to RStudio Connect, ShinyApps, and RPubs
4+
#' Publish Quarto documents to Posit Connect, ShinyApps, and RPubs
55
#'
66
#' @inheritParams rsconnect::deployApp
77
#'
@@ -15,9 +15,6 @@
1515
#' @param render `local` to render locally before publishing; `server` to
1616
#' render on the server; `none` to use whatever rendered content currently
1717
#' exists locally. (defaults to `local`)
18-
#' @param server Server name. Use "shinyapps.io" when deploying applications
19-
#' to Shinyapps. Use "rpubs.com" when deploying documents to RPubs. Otherwise
20-
#' use the domain name or IP address of any RStudio Connect server.
2118
#' @param ... Named parameters to pass along to `rsconnect::deployApp()`
2219
#'
2320
#' @examples
@@ -111,7 +108,7 @@ quarto_publish_doc <- function(input,
111108
}
112109

113110
# include any explicit resources with app files
114-
app_files <- unique(c(app_files, resources))
111+
app_files <- unique(c(app_files, unlist(resources)))
115112

116113
# deploy doc
117114
if (render == "server") {

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ The following functions enable you to render and preview Quarto documents and pr
1919
| [`quarto_render()`](https://quarto-dev.github.io/quarto-r/reference/quarto_render.html) | Render a file or project |
2020
| [`quarto_preview()`](https://quarto-dev.github.io/quarto-r/reference/quarto_preview.html) | Live preview a file or project |
2121
| [`quarto_preview_stop()`](https://quarto-dev.github.io/quarto-r/reference/quarto_preview.html) | Stop live previewing |
22-
| [`quarto_serve()`](https://quarto-dev.github.io/quarto-r/reference/quarto_serve.html) | Run interactive document |
22+
| [`quarto_run()`](https://quarto-dev.github.io/quarto-r/reference/quarto_run.html) | Run interactive document |
2323

2424
### Publishing
2525

26-
These functions enable you to publish static and interactive documents, websites, and books to [RStudio Connect](https://www.rstudio.com/products/connect/) and [shinyapps.io](https://www.shinyapps.io/):
26+
These functions enable you to publish static and interactive documents, websites, and books to [Posit Connect](https://posit.co/products/enterprise/connect/) and [shinyapps.io](https://www.shinyapps.io/):
2727

2828
| | |
2929
|---------------------------|------------------------------------|
30-
| [`quarto_publish_doc()`](https://quarto-dev.github.io/quarto-r/reference/quarto_publish_doc.html) | Publish a document or presentation |
31-
| [`quarto_publish_site()`](https://quarto-dev.github.io/quarto-r/reference/quarto_publish_doc.html) | Current version of Quarto |
32-
| [`quarto_publish_app()`](https://quarto-dev.github.io/quarto-r/reference/quarto_publish_doc.html) | Inspect metadata for a file or project |
30+
| [`quarto_publish_doc()`](https://quarto-dev.github.io/quarto-r/reference/quarto_publish_doc.html) | Publish a document or presentation |
31+
| [`quarto_publish_site()`](https://quarto-dev.github.io/quarto-r/reference/quarto_publish_doc.html) | Publish a website |
32+
| [`quarto_publish_app()`](https://quarto-dev.github.io/quarto-r/reference/quarto_publish_doc.html) | Publish a document with Shiny application runtime |
3333

3434
### Configuration
3535

_pkgdown.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
url: ~
2+
url: https://quarto-dev.github.io/quarto-r/
33
template:
44
bootstrap: 5
55

@@ -25,7 +25,7 @@ reference:
2525
- title: "Publishing"
2626
desc: >
2727
These functions enable you to publish static and interactive documents, websites, and books to
28-
[RStudio Connect](https://www.rstudio.com/products/connect/) and [shinyapps.io](https://www.shinyapps.io/):
28+
[Posit Connect](https://posit.co/products/enterprise/connect/) and [shinyapps.io](https://www.shinyapps.io/):
2929
contents:
3030
- quarto_publish_doc
3131

man/quarto_publish_doc.Rd

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

quarto-r.Rproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ LineEndingConversion: Posix
1818

1919
BuildType: Package
2020
PackageUseDevtools: Yes
21-
PackageCleanBeforeInstall: Yes
2221
PackageInstallArgs: --no-multiarch --with-keep.source
2322
PackageRoxygenize: rd,collate,namespace

0 commit comments

Comments
 (0)