Skip to content

Commit

Permalink
use string for quarto variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ygeunkim committed Feb 8, 2025
1 parent 0448644 commit 2678f4f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/quartodoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
BRANCH=${GITHUB_REF##*/}
if [ "$BRANCH" == "develop" ]; then
echo "TARGET_FOLDER=package/bvhar/dev/python" >> $GITHUB_ENV
sed -i 's|PY_VERSION_REF|https://github.com/ygeunkim/bvhar/tree/develop/python/|; s|R_VERSION_REF|https://ygeunkim.github.io/package/bvhar/dev/|' _variables.yml
sed -i "s|PY_VERSION_REF|'https://github.com/ygeunkim/bvhar/tree/develop/python/'|; s|R_VERSION_REF|'https://ygeunkim.github.io/package/bvhar/dev/'|" _variables.yml
else
echo "TARGET_FOLDER=package/bvhar/python" >> $GITHUB_ENV
sed -i 's|PY_VERSION_REF|https://github.com/ygeunkim/bvhar/tree/master/python/|; s|R_VERSION_REF|https://ygeunkim.github.io/package/bvhar/|' _variables.yml
sed -i "s|PY_VERSION_REF|'https://github.com/ygeunkim/bvhar/tree/master/python/'|; s|R_VERSION_REF|'https://ygeunkim.github.io/package/bvhar/'|" _variables.yml
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 ref.r >}}
href: "{{< var myref.rref >}}"
target: _blank
right:
- icon: github
href: {{< var ref.py >}}
href: "{{< var myref.pyref >}}"
aria-label: bvhar-python github
sidebar:
style: floating
Expand Down
6 changes: 3 additions & 3 deletions python/docs/_variables.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: QUARTODOC_VERSION

ref:
py: PY_VERSION_REF
r: R_VERSION_REF
myref:
pyref: PY_VERSION_REF
rref: R_VERSION_REF

0 comments on commit 2678f4f

Please sign in to comment.