Skip to content

Commit

Permalink
fix: replace render.display with render.express (#179)
Browse files Browse the repository at this point in the history
* fix: `render.express` not `render.display`

* chore: python components/update-shinylive-links.py

* chore: add `make components` and `make shinylive-links`

* refactor: Rename `components-` targets

* chore: add note in readme

* chore: publicize `make components`
  • Loading branch information
gadenbuie authored Jul 18, 2024
1 parent ea2d540 commit a4c8a0f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
requirements \
quarto-exts \
site serve \
static-components \
components components-shinylive components-static \
clean clean-extensions clean-venv distclean

.DEFAULT_GOAL := help
Expand All @@ -13,7 +13,7 @@ PYBIN = $(VENV)/bin


## Build everything
all: deps quartodoc static-components site
all: deps quartodoc components-static site

# Any targets that depend on $(VENV) or $(PYBIN) will cause the venv to be
# created. To use the ven, python scripts should run with the prefix $(PYBIN),
Expand Down Expand Up @@ -107,6 +107,12 @@ clean-venv:
## Remove all build files (Quarto website, quarto extensions, venv)
distclean: clean clean-extensions clean-venv

static-components:
components-static:
rm -rf components/static
. $(PYBIN)/activate && python components/make-static-previews.py

components-shinylive-links:
. $(PYBIN)/activate && python components/update-shinylive-links.py

## Build component static previews and update shinylive links
components: components-shinylive-links components-static
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ Build the site:
make site
```

To update shinylive links in `components/` and build static versions of the components in the gallery, run:

```bash
make components
```

### Virtualenv

When running `make`, all of the Python scripts and commands run in a virtualenv. If you want to run commands at the terminal in the same virtualenv, you will need to do the following:
Expand Down

0 comments on commit a4c8a0f

Please sign in to comment.