Skip to content

Commit a4c8a0f

Browse files
authored
fix: replace render.display with render.express (#179)
* 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`
1 parent ea2d540 commit a4c8a0f

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Makefile

+9-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
requirements \
44
quarto-exts \
55
site serve \
6-
static-components \
6+
components components-shinylive components-static \
77
clean clean-extensions clean-venv distclean
88

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

1414

1515
## Build everything
16-
all: deps quartodoc static-components site
16+
all: deps quartodoc components-static site
1717

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

110-
static-components:
110+
components-static:
111111
rm -rf components/static
112112
. $(PYBIN)/activate && python components/make-static-previews.py
113+
114+
components-shinylive-links:
115+
. $(PYBIN)/activate && python components/update-shinylive-links.py
116+
117+
## Build component static previews and update shinylive links
118+
components: components-shinylive-links components-static

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ Build the site:
7171
make site
7272
```
7373

74+
To update shinylive links in `components/` and build static versions of the components in the gallery, run:
75+
76+
```bash
77+
make components
78+
```
79+
7480
### Virtualenv
7581

7682
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:

0 commit comments

Comments
 (0)