You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,33 +10,40 @@ npm run dev
10
10
11
11
Open [http://localhost:3000](http://localhost:3000) with your browser to see the docs site.
12
12
13
-
**LikeC4 Development**
13
+
### LikeC4 Development
14
14
15
-
If you encounter 404 errors on the C4 diagrams, try running the following command to generate the images:
15
+
-If you encounter 404 errors on the C4 diagrams, try running the following command to generate the images:
16
16
17
17
```bash
18
18
npm run likec4:export
19
19
```
20
20
21
-
The images will be exported to the `public/images/likec4` directory.
21
+
It will try to install `playwright` if it's not already installed before exporting the images. The images will be exported to the `public/images/likec4` directory.
22
22
23
-
If you are developing the likeC4 code, you can run the following command to start the likeC4 development server (localhost:5173):
23
+
-If you are developing the likeC4 code, you can run the following command to start the likeC4 development server (localhost:5173):
24
24
25
25
```bash
26
26
npm run likec4:dev
27
27
```
28
28
29
29
Edit the source code in the likec4_src directory and then the images will be updated automatically.
30
30
31
-
NOTE: You can edit the positions/layout of the components of likeC4 diagrams using the web browser. The modifications will be saved in the `/likec4_src/.likec4` directory as `snap` files. Just keep them and export the images again to see the changes in the docs site.
31
+
**NOTE**: You can edit the positions/layout of the components of likeC4 diagrams using the web browser. The modifications will be saved in the `/likec4_src/.likec4` directory as `snap` files. Just keep them and export the images again to see the changes in the docs site.
32
32
33
-
To export the images to see them in the docs
33
+
-To export the images to see them in the docs, run the following command:
34
34
35
35
```bash
36
36
npm run likec4:export
37
37
```
38
38
39
-
**Enable Search on Dev**
39
+
- Before building the docs site locally (`npm run build`), make sure to run the following commands to generate LikeC4 React code and export the images first:
40
+
41
+
```bash
42
+
npm run likec4:codegen
43
+
npm run likec4:export
44
+
```
45
+
46
+
### Enable Search on Dev
40
47
41
48
To enable/test search functionality on development server, run the following command:
0 commit comments