Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
NOT_CRAN: "true"
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::., stan-dev/pkgdown-config

- name: Install CmdStan
run: Rscript -e "cmdstanr::install_cmdstan()"

- name: Build site
run: |
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
62 changes: 22 additions & 40 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,40 @@
url: https://mc-stan.org/cmdstanr

destination: docs
destination: "."

development:
mode: release
mode: auto

template:
params:
bootswatch: cosmo
package: pkgdownconfig

navbar:
title: "cmdstanr"
left:
- icon: fa-home fa-lg
href: index.html
- text: "Vignettes"
href: articles/index.html
- text: "Functions"
href: reference/index.html
- text: "News"
href: news/index.html
- text: "Other Packages"

structure:
left: [home, vignettes, functions, news, pkgs, stan]
right: [search, bluesky, forum, github, lightswitch]

components:
pkgs:
text: Other Packages
menu:
- text: "rstan"
href: https://mc-stan.org/rstan
- text: "rstanarm"
href: https://mc-stan.org/rstanarm
- text: "bayesplot"
- text: bayesplot
href: https://mc-stan.org/bayesplot
- text: "shinystan"
href: https://mc-stan.org/shinystan
- text: "loo"
href: https://mc-stan.org/loo
- text: "projpred"
- text: posterior
href: https://mc-stan.org/posterior
- text: projpred
href: https://mc-stan.org/projpred
- text: "rstantools"
- 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: "posterior"
href: https://mc-stan.org/posterior
- text: "Stan"
href: https://mc-stan.org
right:
- icon: fa-twitter
href: https://twitter.com/mcmc_stan
- icon: fa-github
href: https://github.com/stan-dev/cmdstanr
- icon: fa-users
href: https://discourse.mc-stan.org/

home:
links:
- text: Ask a question
href: https://discourse.mc-stan.org/
- text: shinystan
href: https://mc-stan.org/shinystan

toc:
depth: 4
Expand Down Expand Up @@ -120,4 +103,3 @@ reference:
contents:
- register_knitr_engine
- eng_cmdstan

167 changes: 0 additions & 167 deletions docs/404.html

This file was deleted.

Loading
Loading