Skip to content
Closed
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
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
^data-raw$
^dev$
^\.github$
^_pkgdown\.yml$
^docs/
47 changes: 47 additions & 0 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
push:
branches: [main]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write

steps:
- uses: actions/checkout@v4

- 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::.
needs: pkgdown

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs

deploy:
needs: pkgdown
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.Rhistory
.RData
.Ruserdata
parameter_trace
parameter_trace
.aider*
3 changes: 3 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Authors@R: c(person("Oystein", "Sorensen",
Maintainer: Oystein Sorensen <oystein.sorensen.1985@gmail.com>
Description: Nested sequential Monte Carlo algorithms for the Bayesian Mallows
model.
URL: https://github.com/oystein-sorensen/BayesMallowsSMC2
BugReports: https://github.com/oystein-sorensen/BayesMallowsSMC2/issues
License: GPL-3
Encoding: UTF-8
LazyData: true
Expand All @@ -22,6 +24,7 @@ Imports:
Depends:
R (>= 4.1.0)
Suggests:
pkgdown (>= 2.0.0),
testthat (>= 3.0.0),
label.switching (>= 1.8)
Config/testthat/edition: 3
42 changes: 42 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
url: https://oystein-sorensen.github.io/BayesMallowsSMC2
template:
bootstrap: 5

navbar:
components:
reference:
text: Reference
href: reference/index.html
news:
text: Changelog
href: news/index.html

reference:
- title: "Main function"
contents:
- compute_sequentially
- title: "Helper functions"
contents:
- set_hyperparameters
- set_smc_options
- precompute_topological_sorts
url: https://oystein-sorensen.github.io/BayesMallowsSMC2
template:
bootstrap: 5
bootswatch: cosmo

home:
sidebar:
structure: [links, license, community, citation, authors, dev]

navbar:
structure:
left: [reference, news]
right: [github]
components:
reference:
text: Reference
href: reference/index.html
news:
text: Changelog
href: news/index.html