Skip to content

Commit e1439a2

Browse files
authored
Merge pull request #41 from osorensen/pkgdown
Added pkgdown site
2 parents efae9d0 + 2579cfe commit e1439a2

File tree

4 files changed

+80
-1
lines changed

4 files changed

+80
-1
lines changed

.github/workflows/pkgdown.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
release:
9+
types: [published]
10+
workflow_dispatch:
11+
12+
name: pkgdown
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+
env:
21+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
22+
permissions:
23+
contents: read
24+
pages: write
25+
id-token: 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::.
38+
needs: website
39+
40+
- name: Build site
41+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
42+
shell: Rscript {0}
43+
44+
- name: Deploy to GitHub pages 🚀
45+
if: github.event_name != 'pull_request'
46+
uses: actions/deploy-pages@v4
47+
with:
48+
token: ${{ secrets.GITHUB_TOKEN }}
49+
artifact-name: github-pages

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
.Ruserdata
55
parameter_trace
66
.aider*
7+
docs/

DESCRIPTION

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Description: Implements nested sequential Monte Carlo (SMC) algorithms for
1616
and Ulam distances. Based on the methodology described in
1717
<doi:10.1214/25-BA1564>.
1818
License: GPL-3
19+
URL: https://osorensen.github.io/BayesMallowsSMC2/
1920
Encoding: UTF-8
2021
LazyData: true
2122
Roxygen: list(markdown = TRUE)
@@ -29,5 +30,6 @@ Depends:
2930
R (>= 4.1.0)
3031
Suggests:
3132
testthat (>= 3.0.0),
32-
label.switching (>= 1.8)
33+
label.switching (>= 1.8),
34+
pkgdown
3335
Config/testthat/edition: 3

_pkgdown.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
url: https://osorensen.github.io/BayesMallowsSMC2/
2+
template:
3+
bootstrap: 5
4+
5+
reference:
6+
- title: Main Functions
7+
desc: Core functions for Bayesian Mallows SMC
8+
contents:
9+
- compute_sequentially
10+
- precompute_topological_sorts
11+
12+
- title: Configuration
13+
desc: Functions to set up parameters and options
14+
contents:
15+
- set_hyperparameters
16+
- set_smc_options
17+
18+
- title: Data Functions
19+
desc: Functions for handling different data types
20+
contents:
21+
- complete_rankings
22+
- mixtures
23+
- pairwise_preferences
24+
- partial_rankings
25+
26+
development:
27+
mode: auto

0 commit comments

Comments
 (0)