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: guide/exporting.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,24 @@ This command also accept multiple entries like for the [export command](#multipl
131
131
132
132
See [Static Hosting](/guide/hosting).
133
133
134
+
## Exportable Docker Image
135
+
136
+
To support the export feature, there is a [docker image](/guide/install#install-on-docker) (maintianed by [@tangramor](https://github.com/tangramor)) with tag **playwright**. Run following command in your work folder:
137
+
138
+
```bash
139
+
docker run --name slidev --rm -it \
140
+
-v ${PWD}:/slidev \
141
+
-p 3030:3030 \
142
+
-e NPM_MIRROR="https://registry.npmmirror.com" \
143
+
tangramor/slidev:playwright
144
+
```
145
+
146
+
Then you can use the export feature like following under your work folder:
**_Note_**: You can use `NPM_MIRROR` to specify a npm mirror to speed up the installation process.
79
+
77
80
If your work folder is empty, it will generate a template `slides.md` and other related files under your work folder, and launch the server on port `3030`.
78
81
79
82
You can access your slides from `http://localhost:3030/`
@@ -86,7 +89,6 @@ Or you can create your own slidev project to a docker image with Dockerfile:
86
89
FROM tangramor/slidev:latest
87
90
88
91
ADD . /slidev
89
-
90
92
```
91
93
92
94
Create the docker image: `docker build -t myppt .`
0 commit comments