Skip to content

Commit 3a964cf

Browse files
author
Dongchen Zhang
committed
Merge branch 'develop' of https://github.com/PecanProject/pecan into SDA_data
2 parents 0a06b57 + fddda68 commit 3a964cf

File tree

4 files changed

+32
-9
lines changed

4 files changed

+32
-9
lines changed

.github/workflows/book.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ on:
1212
workflow_dispatch:
1313

1414
jobs:
15+
call-render-quarto:
16+
uses: ./.github/workflows/render-quarto.yml
17+
1518
bookdown:
19+
needs: call-render-quarto
1620
runs-on: ubuntu-latest
1721
env:
1822
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
@@ -45,6 +49,11 @@ jobs:
4549
run: |
4650
cd book_source
4751
Rscript -e 'options(bookdown.render.file_scope=FALSE); bookdown::render_book("index.Rmd", "bookdown::gitbook")'
52+
# download quarto artifacts
53+
- uses: actions/download-artifact@v4
54+
with:
55+
name: quarto-html
56+
path: book_source/_book/
4857
# save artifact
4958
- uses: actions/upload-artifact@v4
5059
with:

.github/workflows/render-quarto.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
pull_request:
66
workflow_dispatch:
7+
workflow_call:
78

89
jobs:
910
render-notebook:
@@ -39,13 +40,24 @@ jobs:
3940
}
4041
'"
4142
42-
- name: Render Demo 1 notebook to HTML
43+
- name: Render Quarto notebooks to HTML
4344
run: |
4445
docker run --rm -v ${{ github.workspace }}:/work pecan-base-ci:latest bash -c "
45-
quarto render /work/documentation/tutorials/Demo_1_Basic_Run/run_pecan.qmd --to html
46+
quarto render /work/documentation/tutorials/Demo_1_Basic_Run/run_pecan.qmd --to html &&
47+
quarto render /work/documentation/tutorials/Demo_02_Uncertainty_Analysis/uncertainty.qmd --to html
4648
"
47-
- name: Render Demo 2 notebook to HTML
49+
50+
- name: Prepare HTML artifacts
4851
run: |
49-
docker run --rm -v ${{ github.workspace }}:/work pecan-base-ci:latest bash -c "
50-
quarto render /work/documentation/tutorials/Demo_02_Uncertainty_Analysis/uncertainty.qmd --to html
51-
"
52+
mkdir quarto_html_build
53+
cp documentation/tutorials/Demo_1_Basic_Run/run_pecan.html quarto_html_build/
54+
cp -r documentation/tutorials/Demo_1_Basic_Run/run_pecan_files quarto_html_build/
55+
cp documentation/tutorials/Demo_02_Uncertainty_Analysis/uncertainty.html quarto_html_build/
56+
cp -r documentation/tutorials/Demo_02_Uncertainty_Analysis/uncertainty_files quarto_html_build/
57+
58+
- name: Upload rendered HTML as artifacts
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: quarto-html
62+
path: quarto_html_build/
63+
retention-days: 90

book_source/02_demos_tutorials_workflows/02_user_demos/01_introductions_user.Rmd

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ There are two ways of using PEcAn, via the web interface and directly within R.
66

77
The following Tutorials assume you have installed PEcAn. If you have not, please consult the [PEcAn Installation Section](#pecan-manual-setup).
88

9-
|Type|Title|Web Link| Source Rmd|
10-
|:--:|:---:|:------:|:---------:|
9+
10+
|Type|Title|Web Link| Source Rmd/qmd|
11+
|:--:|:---:|:------:|:-------------:|
12+
|Demo| Basic Run (Quarto)| <a href="run_pecan.html" target = "_blank">html</a> | <a href="https://github.com/PecanProject/pecan/blob/develop/documentation/tutorials/Demo_1_Basic_Run/run_pecan.qmd" target = "_blank">qmd</a> |
13+
|Demo| Uncertainty Analysis (Quarto)| <a href="uncertainty.html" target = "_blank">html</a> | <a href="https://github.com/PecanProject/pecan/blob/develop/documentation/tutorials/Demo_02_Uncertainty_Analysis/uncertainty.qmd" target = "_blank">qmd</a> |
1114
|Demo| Basic Run| [html](#demo-1) | <a href="https://github.com/PecanProject/pecan/blob/develop/documentation/tutorials/01_Demo_Basic_Run/Demo01.Rmd" target = "_blank">Rmd</a> |
1215
|Demo| Uncertainty Analysis| [html](#demo-2)| <a href="https://github.com/PecanProject/pecan/blob/develop/documentation/tutorials/02_Demo_Uncertainty_Analysis/Demo02.Rmd" target = "_blank">Rmd</a> |
1316
|Demo| Output Analysis|html | <a href="https://github.com/PecanProject/pecan/blob/develop/documentation/tutorials/AnalyzeOutput/modelVSdata.Rmd" target="_blank">Rmd</a> |

book_source/index.Rmd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: "The Predictive Ecosystem Analyzer"
3-
date: "`r Sys.Date()`"
43
site: bookdown::bookdown_site
54
documentclass: book
65
biblio-style: apalike

0 commit comments

Comments
 (0)