Skip to content

Commit 3168a9c

Browse files
committed
Removed docs and added config + GHA
1 parent 63ce609 commit 3168a9c

File tree

185 files changed

+78
-31095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+78
-31095
lines changed

.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+
pull_request:
5+
# build dev site on merged pushes
6+
push:
7+
branches: [main, master]
8+
# build full site on releases
9+
release:
10+
types: [published]
11+
workflow_dispatch:
12+
13+
name: pkgdown.yaml
14+
15+
jobs:
16+
pkgdown:
17+
runs-on: ubuntu-latest
18+
# Only restrict concurrency for non-PR jobs
19+
concurrency:
20+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
21+
cancel-in-progress: true
22+
env:
23+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
24+
permissions:
25+
contents: write
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- uses: r-lib/actions/setup-pandoc@v2
30+
31+
- uses: r-lib/actions/setup-r@v2
32+
with:
33+
use-public-rspm: true
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

_pkgdown.yml

Lines changed: 22 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,40 @@
11
url: https://mc-stan.org/cmdstanr
22

3-
destination: docs
3+
destination: .
44

55
development:
6-
mode: release
6+
mode: auto
77

88
template:
9-
params:
10-
bootswatch: cosmo
9+
package: pkgdownconfig
1110

1211
navbar:
1312
title: "cmdstanr"
14-
left:
15-
- icon: fa-home fa-lg
16-
href: index.html
17-
- text: "Vignettes"
18-
href: articles/index.html
19-
- text: "Functions"
20-
href: reference/index.html
21-
- text: "News"
22-
href: news/index.html
23-
- text: "Other Packages"
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
2421
menu:
25-
- text: "rstan"
26-
href: https://mc-stan.org/rstan
27-
- text: "rstanarm"
28-
href: https://mc-stan.org/rstanarm
29-
- text: "bayesplot"
22+
- text: bayesplot
3023
href: https://mc-stan.org/bayesplot
31-
- text: "shinystan"
32-
href: https://mc-stan.org/shinystan
3324
- text: "loo"
3425
href: https://mc-stan.org/loo
35-
- text: "projpred"
26+
- text: posterior
27+
href: https://mc-stan.org/posterior
28+
- text: projpred
3629
href: https://mc-stan.org/projpred
37-
- text: "rstantools"
30+
- text: rstan
31+
href: https://mc-stan.org/rstan
32+
- text: rstanarm
33+
href: https://mc-stan.org/rstanarm
34+
- text: rstantools
3835
href: https://mc-stan.org/rstantools
39-
- text: "posterior"
40-
href: https://mc-stan.org/posterior
41-
- text: "Stan"
42-
href: https://mc-stan.org
43-
right:
44-
- icon: fa-twitter
45-
href: https://twitter.com/mcmc_stan
46-
- icon: fa-github
47-
href: https://github.com/stan-dev/cmdstanr
48-
- icon: fa-users
49-
href: https://discourse.mc-stan.org/
50-
51-
home:
52-
links:
53-
- text: Ask a question
54-
href: https://discourse.mc-stan.org/
36+
- text: shinystan
37+
href: https://mc-stan.org/shinystan
5538

5639
toc:
5740
depth: 4
@@ -120,4 +103,3 @@ reference:
120103
contents:
121104
- register_knitr_engine
122105
- eng_cmdstan
123-

docs/404.html

Lines changed: 0 additions & 167 deletions
This file was deleted.

0 commit comments

Comments
 (0)