Skip to content

Commit ba3a4b2

Browse files
authored
Describe developer setup in more detail (#1859)
1 parent 5f69f8d commit ba3a4b2

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ git fetch --tags upstream
5858
Then install:
5959

6060
```sh
61-
pip install -e ".[dev,test]"
61+
pip install -e ".[dev,test,doc]"
6262
```
6363

6464
Additionally, you can install pre-commit hooks which will automatically reformat and lint the code when you make a commit:
@@ -69,3 +69,29 @@ pre-commit install
6969
# To disable:
7070
# pre-commit uninstall
7171
```
72+
73+
Tests should now pass:
74+
75+
```sh
76+
make check
77+
# To apply formatting fixes instead of erroring:
78+
# make check-fix
79+
```
80+
81+
Or get a full list of helpers with just:
82+
83+
```sh
84+
make
85+
```
86+
87+
Typically, when developing new features for Shiny, you'll want to try them out in an application.
88+
In a **separate** application directory, use can use `-e` to reference your local checkout of `py-shiny`:
89+
90+
```sh
91+
# Rather than
92+
# pip install shiny
93+
# run:
94+
pip install -e ../py-shiny --config-settings editable_mode=compat
95+
```
96+
97+
See the [docs README](docs/README.md) for instructions on building the documentation locally.

docs/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This directory contains files to generate Shiny for Python API documentation, us
55

66
## Building the docs
77

8-
To build the docs, first install the Python dependencies and Quarto extensions:
8+
To build the docs, first [download and install Quarto](https://quarto.org/docs/get-started/), and then install the Python dependencies and Quarto extensions:
99

1010
```bash
1111
# Install build dependencies
@@ -18,14 +18,14 @@ After those dependencies are installed, build the .qmd files for Shiny, using qu
1818
make quartodoc
1919
```
2020

21-
Then build the web site using Quarto:
21+
Then you can build the docs, and serve them locally, and watch for changes to the .qmd files:
2222

2323
```bash
24-
make site
24+
make serve
2525
```
2626

27-
Alternatively, running `make serve` will build the docs, and serve them locally, and watch for changes to the .qmd files:
27+
Alternatively, build the site just once:
2828

2929
```bash
30-
make serve
30+
make site
3131
```

0 commit comments

Comments
 (0)