Skip to content

Commit

Permalink
Shinylive update
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Solymos <psolymos@gmail.com>
  • Loading branch information
psolymos committed Jul 6, 2024
1 parent 7b72cd5 commit 6a677e9
Show file tree
Hide file tree
Showing 778 changed files with 1,443,152 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,19 @@ See the [`quarto-py-shiny`](./quarto-py-shiny/) folder.

### Quarto with Shinylive (Python)

Need to add an extension: `quarto add quarto-ext/shinylive`.

FIXME: add how to render here

```bash
cd quarto-py-shinylive
quarto add quarto-ext/shinylive --no-prompt
quarto render index.qmd --output-dir app
quarto preview index.qmd --port 8080 --no-watch-inputs --no-browser
```

### Quarto with Shinylive (R)

Need to add an extension: `quarto add quarto-ext/shinylive`.

FIXME: add how to render here

```bash
cd quarto-r-shinylive
quarto add quarto-ext/shinylive --no-prompt
quarto render index.qmd --output-dir app
quarto preview index.qmd --port 8080 --no-watch-inputs --no-browser
```

Expand All @@ -126,9 +124,13 @@ Serving Shinylive apps on GitHub Pages (from `docs` folder on the `main` branch)
```bash
# Cleanup
rm -rf docs/py-shinylive docs/r-shinylive
rm -rf docs/quarto-py-shinylive docs/quarto-r-shinylive

# Copy files
cp -r r-shinylive docs/ && cp -r py-shinylive docs/
cp -r quarto-r-shinylive/app docs/quarto-r-shinylive
cp -r quarto-py-shinylive/app docs/quarto-py-shinylive


# Render HTML from markdown
pandoc -s -f markdown -t html5 -o "docs/index.html" "index.md"
Expand Down
3 changes: 3 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ <h1 class="title">Old Faithful Shiny App</h1>
<ul>
<li><a href="./py-shinylive/">Python Shinylive</a></li>
<li><a href="./r-shinylive/">R Shinylive</a></li>
<li><a href="./quarto-py-shinylive/">Quarto with Python
Shinylive</a></li>
<li><a href="./quarto-r-shinylive/">Quarto with R Shinylive</a></li>
</ul>
<p>See source at <a href="https://github.com/h10y/lbtest"
class="uri">https://github.com/h10y/lbtest</a>.</p>
Expand Down
Loading

0 comments on commit 6a677e9

Please sign in to comment.