Skip to content

Commit ef3dd99

Browse files
Correctly update README.qmd, not README.md
1 parent 23fcdf6 commit ef3dd99

File tree

2 files changed

+70
-25
lines changed

2 files changed

+70
-25
lines changed

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,25 @@ less efficient than a partial page update on the client side.
2525

2626
### Install development dependencies in a VSCode Dev Container
2727

28-
If you use VSCode with Docker, the following VSCode Dev Container configuration will install all dependencies and automatically open the project in a container:
28+
If you use VSCode with Docker, the following VSCode Dev Container
29+
configuration will install all dependencies and automatically open the
30+
project in a container:
2931

3032
``` json
3133
{
32-
"name": "Python 3",
33-
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
34-
"postCreateCommand": "sudo apt update && sudo apt install -y python3-dev libpq-dev graphviz && pipx install poetry && poetry install && poetry shell",
35-
"features": {
36-
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
37-
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {}
38-
}
34+
"name": "Python 3",
35+
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
36+
"postCreateCommand": "sudo apt update && sudo apt install -y python3-dev libpq-dev graphviz && pipx install poetry && poetry install && poetry shell",
37+
"features": {
38+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
39+
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {}
40+
}
3941
}
4042
```
4143

42-
Simply create a .devcontainer folder in the root of the project and add a devcontainer.json file with this content, and then "Reopen in Container" from View > Command Palette.
44+
Simply create a .devcontainer folder in the root of the project and add
45+
a devcontainer.json file with this content, and then “Reopen in
46+
Container” from View \> Command Palette.
4347

4448
### Install development dependencies manually
4549

@@ -70,7 +74,6 @@ For Windows:
7074

7175
- [Quarto CLI](https://quarto.org/docs/get-started/)
7276

73-
7477
For macOS:
7578

7679
``` bash
@@ -85,7 +88,8 @@ sudo apt update && sudo apt install -y graphviz
8588

8689
For Windows:
8790

88-
- Download and install from [Graphviz.org](https://graphviz.org/download/#windows)
91+
- Download and install from
92+
[Graphviz.org](https://graphviz.org/download/#windows)
8993

9094
#### Python dependencies
9195

README.qmd

Lines changed: 55 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,50 +50,87 @@ dot.render('static/webapp_flow', format='png', cleanup=True)
5050

5151
The advantage of the PRG pattern is that it is very straightforward to implement and keeps most of the rendering logic on the server side. The disadvantage is that it requires an extra round trip to the database to fetch the updated data, and re-rendering the entire page template may be less efficient than a partial page update on the client side.
5252

53-
### Install development dependencies
53+
### Install development dependencies in a VSCode Dev Container
54+
55+
If you use VSCode with Docker, the following VSCode Dev Container configuration will install all dependencies and automatically open the project in a container:
56+
57+
``` json
58+
{
59+
"name": "Python 3",
60+
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
61+
"postCreateCommand": "sudo apt update && sudo apt install -y python3-dev libpq-dev graphviz && pipx install poetry && poetry install && poetry shell",
62+
"features": {
63+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
64+
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {}
65+
}
66+
}
67+
```
68+
69+
Simply create a .devcontainer folder in the root of the project and add a devcontainer.json file with this content, and then "Reopen in Container" from View > Command Palette.
70+
71+
### Install development dependencies manually
5472

55-
#### Python, Docker, and Quarto CLI
73+
#### Python and Docker
5674

5775
- [Python 3.12 or higher](https://www.python.org/downloads/)
5876
- [Docker and Docker Compose](https://docs.docker.com/get-docker/)
59-
- [Quarto CLI](https://quarto.org/docs/get-started/)
6077

6178
#### PostgreSQL headers
6279

6380
For Ubuntu/Debian:
6481

65-
```bash
82+
``` bash
6683
sudo apt update && sudo apt install -y python3-dev libpq-dev
6784
```
6885

6986
For macOS:
7087

71-
```bash
88+
``` bash
7289
brew install postgresql
7390
```
7491

7592
For Windows:
7693

77-
- No additional system dependencies required
78-
- Install Python from the official Python website
94+
- No installation required
95+
96+
#### Quarto CLI and Graphviz
97+
98+
- [Quarto CLI](https://quarto.org/docs/get-started/)
99+
100+
101+
For macOS:
102+
103+
``` bash
104+
brew install graphviz
105+
```
106+
107+
For Ubuntu/Debian:
108+
109+
``` bash
110+
sudo apt update && sudo apt install -y graphviz
111+
```
112+
113+
For Windows:
114+
115+
- Download and install from [Graphviz.org](https://graphviz.org/download/#windows)
79116

80117
#### Python dependencies
81118

82-
1. Install Poetry
119+
1. Install Poetry
83120

84-
```bash
121+
``` bash
85122
pipx install poetry
86123
```
87124

88-
2. Install project dependencies
125+
2. Install project dependencies
89126

90-
```bash
127+
``` bash
91128
poetry install
92129
```
93130

94-
3. Activate shell
131+
3. Activate shell
95132

96-
```bash
133+
``` bash
97134
poetry shell
98135
```
99136

@@ -127,7 +164,11 @@ Navigate to http://localhost:8000/
127164

128165
### Render the README
129166

130-
`quarto render README.qmd`
167+
When updating the documentation, remember to make changes in the README.qmd file, not the README.md file. Then run the following command to render the README.md file:
168+
169+
``` bash
170+
quarto render README.qmd
171+
```
131172

132173
### Contributing
133174

0 commit comments

Comments
 (0)