-
-
Notifications
You must be signed in to change notification settings - Fork 23
New pkgdown theme #141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
New pkgdown theme #141
Changes from 8 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
2fa422a
Bumped roxygen, added pkgdown workflow
VisruthSK 5cb9b8f
Don't run on PRs
VisruthSK 179786f
Added newline to end of config file
VisruthSK 83e3823
Swapped to devtools::document() in vignette
VisruthSK 779d5d8
Adde devtools to suggests for vignette
VisruthSK d5893ec
LIbrary dev package before calling function
VisruthSK db347ea
Fixed title of vignette in pkgdown config
VisruthSK 73f2994
Fix vignette index entry
VisruthSK ce9e87d
Don't use devtools::document()
VisruthSK 00bc70d
Merge pull request #142 from stan-dev/master
VisruthSK af6d213
Removed automatic website builds
VisruthSK d0a0a67
Revert "Removed automatic website builds"
VisruthSK 505ac50
Merge pull request #144 from stan-dev/master
VisruthSK 1ee0fa3
Trying to remove red logo
VisruthSK aebf423
Added blue logo to man\figures [no ci]
VisruthSK f2b34b5
Fixed file extension issue [ci skip]
VisruthSK 220eb19
Reverted code formatting changes
VisruthSK badc83b
Don't use devtools::document()
VisruthSK a83679b
Clean gh-pages branch on builds
VisruthSK 9b37fec
Revert "Clean gh-pages branch on builds"
VisruthSK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,55 @@ | ||
| # 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: | ||
| # build dev site on merged pushes | ||
| push: | ||
| branches: [main, master] | ||
| # build full site on releases | ||
| release: | ||
| types: [published] | ||
| workflow_dispatch: | ||
|
|
||
| name: pkgdown.yaml | ||
|
|
||
| jobs: | ||
| pkgdown: | ||
| runs-on: ubuntu-latest | ||
| # Only restrict concurrency for non-PR jobs | ||
| concurrency: | ||
| group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} | ||
| cancel-in-progress: true | ||
| env: | ||
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
| permissions: | ||
| contents: write | ||
| 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: any::pkgdown, local::., any::withr, stan-dev/pkgdown-config | ||
|
|
||
| - name: Build site | ||
| run: | | ||
| withr::with_envvar( | ||
| c("NOT_CRAN" = "true"), # this should already be set by setup-r@v2? keeping because vignettes don't build otherwise | ||
| pkgdown::build_site_github_pages( | ||
| lazy = FALSE, # change to TRUE if runner times out. | ||
| run_dont_run = TRUE, | ||
| new_process = TRUE | ||
| ) | ||
| ) | ||
| shell: Rscript {0} | ||
|
|
||
| - name: Deploy to GitHub pages 🚀 | ||
| uses: JamesIves/github-pages-deploy-action@v4 | ||
| with: | ||
| clean: false | ||
| branch: gh-pages | ||
| folder: docs |
This file contains hidden or 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 hidden or 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,80 @@ | ||
| url: https://mc-stan.org/rstantools | ||
|
|
||
| destination: "." | ||
|
|
||
| template: | ||
| package: pkgdownconfig | ||
|
|
||
| navbar: | ||
| title: "rstantools" | ||
|
|
||
| structure: | ||
| left: [home, vignettes, functions, news, pkgs, stan] | ||
| right: [search, bluesky, forum, github, lightswitch] | ||
|
|
||
| components: | ||
| pkgs: | ||
| text: Other Packages | ||
| menu: | ||
| - text: bayesplot | ||
| href: https://mc-stan.org/bayesplot | ||
| - text: cmdstanr | ||
| href: https://mc-stan.org/cmdstanr | ||
| - text: loo | ||
| href: https://mc-stan.org/loo | ||
| - text: posterior | ||
| href: https://mc-stan.org/posterior | ||
| - text: projpred | ||
| href: https://mc-stan.org/projpred | ||
| - text: rstan | ||
| href: https://mc-stan.org/rstan | ||
| - text: rstanarm | ||
| href: https://mc-stan.org/rstanarm | ||
| - text: shinystan | ||
| href: https://mc-stan.org/shinystan | ||
|
|
||
| articles: | ||
| - title: "Recommendations for R package development with Stan" | ||
| desc: > | ||
| This vignette provides many recommendations for developers interested in | ||
| creating an R package that interface with Stan. Topics include | ||
| development best practices, precompiling Stan programs, R code and | ||
| documentation, and more. | ||
| contents: | ||
| - developer-guidelines | ||
| - title: "Step-by-step guide" | ||
| desc: > | ||
| This vignette walks through the steps required to set up a package with | ||
| a precompiled Stan model, from creating the initial package structure to | ||
| adding the precompiled Stan program and writing the R function that users | ||
| will call to fit the model. | ||
| contents: | ||
| - minimal-rstan-package | ||
|
|
||
| reference: | ||
| - title: "Package structure" | ||
| desc: > | ||
| Creating the basic structure of a Stan-based R package or add | ||
| Stan programs to an existing package. | ||
| contents: | ||
| - rstantools-package | ||
| - rstan_create_package | ||
| - use_rstan | ||
| - rstan_config | ||
| - rstantools_load_code | ||
| - title: "Generics" | ||
| desc: > | ||
| S3 generics (and some default methods) for adding functionality | ||
| to your package using the same naming conventions as **rstanarm** | ||
| and other Stan-based R packages. | ||
| contents: | ||
| - bayes_R2 | ||
| - log_lik | ||
| - loo-prediction | ||
| - posterior_interval | ||
| - posterior_epred | ||
| - posterior_linpred | ||
| - posterior_predict | ||
| - predictive_error | ||
| - predictive_interval | ||
| - prior_summary |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.