Skip to content

Commit 881b726

Browse files
authored
Merge pull request #535 from stan-dev/new-pkgdown-theme
New pkgdown theme
2 parents 207831c + 6b173a4 commit 881b726

File tree

12 files changed

+132
-99
lines changed

12 files changed

+132
-99
lines changed

.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: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
# build dev site on merged pushes
5+
push:
6+
branches: [main, master]
7+
# build full site on releases
8+
release:
9+
types: [published]
10+
workflow_dispatch:
11+
12+
name: pkgdown.yaml
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+
cancel-in-progress: true
21+
env:
22+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
23+
permissions:
24+
contents: write
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: r-lib/actions/setup-pandoc@v2
29+
30+
- uses: r-lib/actions/setup-r@v2
31+
with:
32+
use-public-rspm: true
33+
extra-repositories: https://stan-dev.r-universe.dev
34+
35+
- uses: r-lib/actions/setup-r-dependencies@v2
36+
with:
37+
extra-packages: any::pkgdown, local::., any::withr, stan-dev/pkgdown-config
38+
39+
- name: Build site
40+
run: |
41+
withr::with_envvar(
42+
c("NOT_CRAN" = "true"), # this should already be set by setup-r@v2? keeping because vignettes don't build otherwise
43+
pkgdown::build_site_github_pages(
44+
lazy = FALSE, # change to TRUE if runner times out.
45+
run_dont_run = TRUE,
46+
new_process = TRUE
47+
)
48+
)
49+
shell: Rscript {0}
50+
51+
- name: Deploy to GitHub pages 🚀
52+
uses: JamesIves/github-pages-deploy-action@v4
53+
with:
54+
clean: false
55+
branch: gh-pages
56+
folder: "docs"

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,3 @@
1010

1111
tests/testthat/bfits
1212
tests/testthat/_snaps
13-
14-
docs/dev
15-
dev

_pkgdown.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
url: https://mc-stan.org/projpred
2+
3+
development:
4+
mode: auto
5+
6+
destination: "."
7+
8+
template:
9+
package: pkgdownconfig
10+
11+
navbar:
12+
title: "projpred"
13+
14+
structure:
15+
left: [home, vignettes, functions, news, pkgs, stan]
16+
right: [search, bluesky, forum, github, lightswitch]
17+
18+
components:
19+
pkgs:
20+
text: Other Packages
21+
menu:
22+
- text: bayesplot
23+
href: https://mc-stan.org/bayesplot
24+
- text: cmdstanr
25+
href: https://mc-stan.org/cmdstanr
26+
- text: loo
27+
href: https://mc-stan.org/loo
28+
- text: posterior
29+
href: https://mc-stan.org/posterior
30+
- text: rstan
31+
href: https://mc-stan.org/rstan
32+
- text: rstanarm
33+
href: https://mc-stan.org/rstanarm
34+
- text: rstantools
35+
href: https://mc-stan.org/rstantools
36+
- text: shinystan
37+
href: https://mc-stan.org/shinystan
38+
39+
articles:
40+
- title: "Getting Started"
41+
desc: >
42+
This vignette provides a quick-start guide to using the **projpred** package for projection predictive feature selection.
43+
contents:
44+
- projpred
45+
- title: "Latent Projection"
46+
desc: >
47+
This vignette illustrates the latent projection implemented in **projpred**.
48+
contents:
49+
- latent
50+

man/figures/logo.svg

Lines changed: 1 addition & 96 deletions
Loading
6.39 KB
Loading

pkgdown/favicon/favicon-96x96.png

3.33 KB
Loading

pkgdown/favicon/favicon.ico

14.7 KB
Binary file not shown.

pkgdown/favicon/favicon.svg

Lines changed: 3 additions & 0 deletions
Loading

pkgdown/favicon/site.webmanifest

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "",
3+
"short_name": "",
4+
"icons": [
5+
{
6+
"src": "/web-app-manifest-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png",
9+
"purpose": "maskable"
10+
},
11+
{
12+
"src": "/web-app-manifest-512x512.png",
13+
"sizes": "512x512",
14+
"type": "image/png",
15+
"purpose": "maskable"
16+
}
17+
],
18+
"theme_color": "#ffffff",
19+
"background_color": "#ffffff",
20+
"display": "standalone"
21+
}

0 commit comments

Comments
 (0)