Skip to content

Commit

Permalink
Fix broken pkgdown index.
Browse files Browse the repository at this point in the history
I hadn't added the new types and functions to the pkgdown index, which
broke the site rebuild. This didn't get caught by CI because pkgdown was
only running on the master branch.

Added the missing index entries and changed the CI to run pkgdown
everywhere. It only does the actual push when on the master branch.
  • Loading branch information
plietar committed Feb 2, 2024
1 parent 67a2019 commit 877fa6b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on:
branches:
- master

pull_request:
branches:
- dev
- master

name: pkgdown

jobs:
Expand Down Expand Up @@ -40,7 +45,12 @@ jobs:
- name: Install package
run: R CMD INSTALL .

- name: Build site
run: |
Rscript -e 'pkgdown::build_site()'
- name: Deploy package
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# individual 0.1.13

* Fixed the website generation.

# individual 0.1.12

* Simulation state can be saved and restored, allowing the simulation to be resumed.
Expand Down
3 changes: 3 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ reference:
- title: "Events & Rendering"
desc: "Classes for events and rendering output."
- contents:
- EventBase
- Event
- TargetedEvent
- Render
Expand All @@ -26,3 +27,5 @@ reference:
- title: "Simulation"
- contents:
- simulation_loop
- checkpoint_state
- restore_state

0 comments on commit 877fa6b

Please sign in to comment.