Skip to content

Commit

Permalink
fix for altdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuyanagimoto committed Mar 27, 2024
1 parent e00e182 commit afd0205
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/altdoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,17 @@ jobs:
- name: Bootstrap
run: ./run.sh bootstrap

# - name: Install Mkdocs and its dependencies
# run: |
# python3 -m pip install --upgrade pip # install pip
# python3 -m pip install mkdocs # install mkdocs
# python3 -m pip install mkdocs-material # install material theme

- name: Dependencies
run: ./run.sh install_all

- name: Build site
run: |
# If parallel = TRUE in render_docs()
# future::plan(future::multicore)
install.packages(".", repos = NULL, type = "source")
altdoc::render_docs(freeze = FALSE)
install.packages("pkgload")
pkgload::load_all()
altdoc::render_docs(parallel = FALSE, freeze = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
Expand All @@ -53,4 +51,4 @@ jobs:
with:
clean: false
branch: gh-pages
folder: docs
folder: docs
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ Suggests:
knitr,
rmarkdown,
testthat (>= 3.0.0),
tools
tools,
altdoc
Config/testthat/edition: 3
Encoding: UTF-8
LazyData: true
Expand Down

0 comments on commit afd0205

Please sign in to comment.