Skip to content

Commit

Permalink
use env instead of var in quarto
Browse files Browse the repository at this point in the history
  • Loading branch information
ygeunkim committed Feb 8, 2025
1 parent 60307f3 commit f2fe607
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/quartodoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ jobs:
BRANCH=${GITHUB_REF##*/}
if [ "$BRANCH" == "develop" ]; then
echo "TARGET_FOLDER=package/bvhar/dev/python" >> $GITHUB_ENV
sed -i 's|VERSION_REF|https://github.com/ygeunkim/bvhar/tree/develop/python|; s|R_VERSION_REF|https://ygeunkim.github.io/package/bvhar/|' _variables.yml
echo "PY_VERSION_REF=https://github.com/ygeunkim/bvhar/tree/develop/python" >> $GITHUB_ENV
echo "R_VERSION_REF=https://ygeunkim.github.io/package/bvhar/dev" >> $GITHUB_ENV
else
echo "TARGET_FOLDER=package/bvhar/python" >> $GITHUB_ENV
sed -i 's|VERSION_REF|https://github.com/ygeunkim/bvhar/tree/master/python|; s|R_VERSION_REF|https://ygeunkim.github.io/package/bvhar/dev/|' _variables.yml
echo "PY_VERSION_REF=https://github.com/ygeunkim/bvhar/tree/master/python" >> $GITHUB_ENV
echo "R_VERSION_REF=https://ygeunkim.github.io/package/bvhar" >> $GITHUB_ENV
fi
working-directory: python/docs

Expand Down
4 changes: 2 additions & 2 deletions python/docs/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ website:
- text: "bvhar"
file: intro.qmd
- text: "bvhar in R"
href: {{< var rref >}}
href: {{< env R_VERSION_REF >}}
target: _blank
right:
- icon: github
href: {{< var pyref >}}
href: {{< env PY_VERSION_REF >}}
aria-label: bvhar-python github
sidebar:
style: floating
Expand Down
4 changes: 1 addition & 3 deletions python/docs/_variables.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
version: QUARTODOC_VERSION
pyref: VERSION_REF
rref: R_VERSION_REF
version: QUARTODOC_VERSION

0 comments on commit f2fe607

Please sign in to comment.