Skip to content

Commit

Permalink
Merge pull request #13 from Real-Currents/main
Browse files Browse the repository at this point in the history
Deploy site updates
  • Loading branch information
dancingfrog authored Dec 6, 2024
2 parents 8b44921 + c4b14dc commit 62f3230
Show file tree
Hide file tree
Showing 34 changed files with 5,205 additions and 66 deletions.
37 changes: 15 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
workflow_dispatch:
push:
branches:
- 'dev/**'
- main
- 'dev/**'

permissions:
contents: read
Expand All @@ -27,8 +27,18 @@ jobs:
with:
submodules: 'true'

- name: Print GITHUB_TOKEN
run: echo ${{ secrets.GITHUB_TOKEN }}

- name: Print GITHUB_WORKSPACE
run: echo ${GITHUB_WORKSPACE}

- name: Print working directory
run: echo $(pwd)

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

# From https://github.com/r-lib/actions/tree/v2-branch/setup-r
- name: Setup R
uses: r-lib/actions/setup-r@v2
Expand All @@ -44,27 +54,10 @@ jobs:
any::renv
any::rmarkdown
# - name: Install R dependencies with renv
# uses: r-lib/actions/setup-renv@v2
# with:
# cache-version: 1

- name: Print GITHUB_TOKEN
run: echo ${{ secrets.GITHUB_TOKEN }}

- name: Print GITHUB_WORKSPACE
run: echo ${GITHUB_WORKSPACE}

# - name: Render and Publish
# uses: quarto-dev/quarto-actions/publish@v2
# with:
# target: gh-pages
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: List outputs after quarto render
# run: |
# ls -l "${GITHUB_WORKSPACE}/_site"
# - name: Install R dependencies with renv
# uses: r-lib/actions/setup-renv@v2
# with:
# cache-version: 1

- name: Setup Node.js
uses: ./.github/workflows/node.js
Expand Down
24 changes: 19 additions & 5 deletions .github/workflows/quarto.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Quarto Publish
name: Quarto Render

on:
workflow_dispatch:
Expand All @@ -15,9 +15,21 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: 'true'

- name: Print GITHUB_TOKEN
run: echo ${{ secrets.GITHUB_TOKEN }}

- name: Print GITHUB_WORKSPACE
run: echo ${GITHUB_WORKSPACE}

- name: Print working directory
run: echo $(pwd)

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

# From https://github.com/r-lib/actions/tree/v2-branch/setup-r
- name: Setup R
uses: r-lib/actions/setup-r@v2
Expand All @@ -29,18 +41,20 @@ jobs:
with:
cache-version: 2
packages: |
any::quarto
any::renv
any::rmarkdown
# - name: Install R dependencies with renv
# uses: r-lib/actions/setup-renv@v2
# with:
# cache-version: 1

- name: Print GITHUB_TOKEN
run: echo ${{ secrets.GITHUB_TOKEN }}
- name: Render with Quarto
run: quarto render

- name: Print GITHUB_WORKSPACE
run: echo ${GITHUB_WORKSPACE}
- name: List site outputs
run: ls -lA _site/

# - name: Render and Publish
# uses: quarto-dev/quarto-actions/publish@v2
Expand Down
5 changes: 2 additions & 3 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ website:
format:
html:
theme:
- cosmo
- darkly
- src/custom.scss
css: src/styles.css
css: src/app/globals.css
toc: true


2 changes: 1 addition & 1 deletion content/js-demos
2 changes: 1 addition & 1 deletion content/posts/visualize-r.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ format:


<div id="vizr-app" role="main"
style="width: 100%; min-width: 800px; margin-left: -100px;">
style="width: 100%; min-width: 800px; margin-left: -86px;">



Expand Down
2 changes: 1 addition & 1 deletion content/posts/visualize-r.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ format:
variant: +yaml_metadata_block
---

<div id="vizr-app" role="main" style="width: 100%; min-width: 800px; margin-left: -100px;">
<div id="vizr-app" role="main" style="width: 100%; min-width: 800px; margin-left: -86px;">
&nbsp;
</div>

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"lint": "next lint",
"next": "next",
"preview": "quarto preview",
"render:markdown": "cd content && quarto render README.qmd --to gfm --output index.md && npm run render:about && npm run render:dev && npm run render:js-demos && npm run render:posts",
"render:markdown": "cd content && quarto render README.qmd --to gfm --output index.md && npm run render:about && npm run render:dev && npm run render:posts && npm run render:js-demos && cd ../ && ls -l ./ && cp -LR site_libs public/ && rm -rf site_libs && rm search.json",
"render:about": "cd content/about && quarto render index.qmd --to gfm --output index.md --output-dir .",
"render:dev": "cd content/dev && quarto render --output-dir . && quarto render index.qmd --to gfm --output README.md --output-dir .",
"render:js-demos": "cd content/js-demos && quarto render --output-dir . && quarto render index.qmd --to gfm --output README.md --output-dir .",
"render:js-demos": "cd content/js-demos && quarto render --output-dir . && quarto render index.qmd --to gfm --output README.md --output-dir . && quarto render index.qmd --to html --output index.html --output-dir . ",
"render:posts": "cd content/posts && quarto render --output-dir .",
"render:readme": "quarto render content/README.qmd --to gfm --output README.md"
},
Expand Down
1 change: 1 addition & 0 deletions public/content/js-demos
2 changes: 0 additions & 2 deletions public/content/js-demos/scripts/interact-grid.js

This file was deleted.

Loading

0 comments on commit 62f3230

Please sign in to comment.