-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📚 Quarto + Quaro Books for Documentation (#43)
## 📚 What? This PR replaces {pkgdown} with Quarto books for package documentation. The documentation renders on changes to its yaml-file or modification of the /docs folder. It is still a work in progress, and needs some serious polishing when the package is ready for CRAN submission. --------- Signed-off-by: Serkan Korkmaz <[email protected]>
- Loading branch information
Showing
31 changed files
with
381 additions
and
284 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [development, quarto-docs] | ||
paths: ['docs/**', '.github/workflows/build-docs.yml'] | ||
|
||
name: Build Docs | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
R_KEEP_PKG_SOURCE: yes | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
with: | ||
tinytex: true | ||
|
||
|
||
- name: Install R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: 'release' | ||
|
||
- name: Setup R dependencies | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
cache: 'always' | ||
packages: | ||
local::. | ||
deps::. | ||
extra-packages: | ||
any::MLmetrics | ||
any::mlr3measures | ||
any::yardstick | ||
any::bench | ||
any::tidyverse | ||
any::tidymodels | ||
|
||
- name: Render docs | ||
uses: quarto-dev/quarto-actions/render@v2 | ||
with: | ||
to: html | ||
path: docs/ | ||
|
||
- name: Publish docs | ||
uses: quarto-dev/quarto-actions/publish@v2 | ||
with: | ||
target: gh-pages | ||
path: docs/ | ||
render: false | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.