diff --git a/.github/.gitignore b/.github/.gitignore
new file mode 100644
index 000000000..2d19fc766
--- /dev/null
+++ b/.github/.gitignore
@@ -0,0 +1 @@
+*.html
diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml
new file mode 100644
index 000000000..d1eab9bd2
--- /dev/null
+++ b/.github/workflows/pkgdown.yaml
@@ -0,0 +1,56 @@
+# 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
+ extra-repositories: https://stan-dev.r-universe.dev
+
+ - 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"
diff --git a/.gitignore b/.gitignore
index 1b5257a5f..2868ec259 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,3 @@
tests/testthat/bfits
tests/testthat/_snaps
-
-docs/dev
-dev
diff --git a/_pkgdown.yml b/_pkgdown.yml
new file mode 100644
index 000000000..c441d9e96
--- /dev/null
+++ b/_pkgdown.yml
@@ -0,0 +1,50 @@
+url: https://mc-stan.org/projpred
+
+development:
+ mode: auto
+
+destination: "."
+
+template:
+ package: pkgdownconfig
+
+navbar:
+ title: "projpred"
+
+ 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: rstan
+ href: https://mc-stan.org/rstan
+ - text: rstanarm
+ href: https://mc-stan.org/rstanarm
+ - text: rstantools
+ href: https://mc-stan.org/rstantools
+ - text: shinystan
+ href: https://mc-stan.org/shinystan
+
+articles:
+ - title: "Getting Started"
+ desc: >
+ This vignette provides a quick-start guide to using the **projpred** package for projection predictive feature selection.
+ contents:
+ - projpred
+ - title: "Latent Projection"
+ desc: >
+ This vignette illustrates the latent projection implemented in **projpred**.
+ contents:
+ - latent
+
diff --git a/man/figures/logo.svg b/man/figures/logo.svg
index b4c09fc5d..496f04025 100644
--- a/man/figures/logo.svg
+++ b/man/figures/logo.svg
@@ -1,96 +1 @@
-
-
-
-
+
\ No newline at end of file
diff --git a/pkgdown/favicon/apple-touch-icon.png b/pkgdown/favicon/apple-touch-icon.png
new file mode 100644
index 000000000..6ad4754e6
Binary files /dev/null and b/pkgdown/favicon/apple-touch-icon.png differ
diff --git a/pkgdown/favicon/favicon-96x96.png b/pkgdown/favicon/favicon-96x96.png
new file mode 100644
index 000000000..59cfd5e50
Binary files /dev/null and b/pkgdown/favicon/favicon-96x96.png differ
diff --git a/pkgdown/favicon/favicon.ico b/pkgdown/favicon/favicon.ico
new file mode 100644
index 000000000..97db39a2d
Binary files /dev/null and b/pkgdown/favicon/favicon.ico differ
diff --git a/pkgdown/favicon/favicon.svg b/pkgdown/favicon/favicon.svg
new file mode 100644
index 000000000..566cf13f1
--- /dev/null
+++ b/pkgdown/favicon/favicon.svg
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/pkgdown/favicon/site.webmanifest b/pkgdown/favicon/site.webmanifest
new file mode 100644
index 000000000..4ebda26b5
--- /dev/null
+++ b/pkgdown/favicon/site.webmanifest
@@ -0,0 +1,21 @@
+{
+ "name": "",
+ "short_name": "",
+ "icons": [
+ {
+ "src": "/web-app-manifest-192x192.png",
+ "sizes": "192x192",
+ "type": "image/png",
+ "purpose": "maskable"
+ },
+ {
+ "src": "/web-app-manifest-512x512.png",
+ "sizes": "512x512",
+ "type": "image/png",
+ "purpose": "maskable"
+ }
+ ],
+ "theme_color": "#ffffff",
+ "background_color": "#ffffff",
+ "display": "standalone"
+}
\ No newline at end of file
diff --git a/pkgdown/favicon/web-app-manifest-192x192.png b/pkgdown/favicon/web-app-manifest-192x192.png
new file mode 100644
index 000000000..0d0d2b35e
Binary files /dev/null and b/pkgdown/favicon/web-app-manifest-192x192.png differ
diff --git a/pkgdown/favicon/web-app-manifest-512x512.png b/pkgdown/favicon/web-app-manifest-512x512.png
new file mode 100644
index 000000000..200513259
Binary files /dev/null and b/pkgdown/favicon/web-app-manifest-512x512.png differ