Skip to content

Commit

Permalink
Merge pull request #30 from CCBR/docs-gha
Browse files Browse the repository at this point in the history
ci: fix workflow to build the docs site
  • Loading branch information
kelly-sovacool authored Oct 26, 2023
2 parents 93acbf0 + d781809 commit ac9cc6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/quarto-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Render and Publish
name: docs

on:
workflow_dispatch:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Install R packages
shell: Rscript {0}
run: |
install.packages(c('dplyr', 'glue', 'here', 'knitr', 'tidyr'. 'yaml'))
install.packages(c('dplyr', 'glue', 'here', 'knitr', 'rmarkdown', 'tidyr', 'yaml'))
- name: prerender
run: |
Expand Down
9 changes: 5 additions & 4 deletions docs/create-listings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@


def main():
for dirpath in ("docs/modules", "docs/subworkflows"):
shutil.rmtree(dirpath)
for listing in ("modules", "subworkflows"):
dirpath = os.path.join("docs", listing)
if os.path.exists(dirpath):
shutil.rmtree(dirpath)
os.mkdir(dirpath)
write_listing_components("modules")
write_listing_components("subworkflows")
write_listing_components(listing)


def write_listing_components(mtype):
Expand Down

0 comments on commit ac9cc6b

Please sign in to comment.