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
You then have a decision to make as to how you want to do your builds: locally, on your computer, or using a [Docker](https://www.docker.com/) container. We suggest going the Docker route if and only if you are already comfortable with Docker.
15
+
## Performing a build
16
16
17
-
## Building locally
17
+
You have a decision to make as to how you want to do your builds:
18
18
19
-
### Prerequisites
19
+
- Locally on your computer
20
+
- Remotely, using the [build server](https://github.com/whatwg/build.whatwg.org)
21
+
- Using a [Docker](https://www.docker.com/) container
22
+
23
+
Local builds will be fastest, but require installing a lot of prerequisites. Using the build server is easiest, but slowest. Docker has speed close to a local build, and only requires Docker as a prerequisite.
24
+
25
+
### Building locally
26
+
27
+
#### Prerequisites
20
28
21
29
To build locally, you'll need the following commands installed on your system:
22
30
23
31
-`curl`, `grep`, `perl`, `unzip`
24
32
25
-
Optionally, for faster builds, you can install [Wattsi](https://github.com/whatwg/wattsi). If you don't bother with that, the build will use [Wattsi Server](https://github.com/whatwg/build.whatwg.org), which requires an internet connection. If you do use a local build of Wattsi, you'll likely also want Python 3.7+ with [pipx](https://pypa.github.io/pipx/), to enable syntax highlighting of `pre` contents.
33
+
Optionally, for faster builds, you can install [Wattsi](https://github.com/whatwg/wattsi). If you don't bother with that, we will use the [build server](https://github.com/whatwg/build.whatwg.org), which requires an internet connection.
26
34
27
-
### Running the build
35
+
If you're using a local install of Wattsi, then optionally, you can install Python 3.7+ with [pipx](https://pypa.github.io/pipx/), to enable syntax highlighting of `pre` contents.
36
+
37
+
#### Running the build
28
38
29
39
Run the `build.sh` script from inside your `html-build` working directory, like this:
30
40
@@ -40,7 +50,19 @@ You may also set the environment variable `$HTML_SOURCE` to use a custom locatio
40
50
HTML_SOURCE=~/hacks/dhtml ./build.sh
41
51
```
42
52
43
-
## Building using a Docker container
53
+
### Building using the build server
54
+
55
+
To use the build server, use the `--remote` flag:
56
+
57
+
```bash
58
+
./build.sh --remote
59
+
```
60
+
61
+
This will ZIP up most of the files in the `html/` directory, send them to the build server, get back another ZIP file with the output, and unzip those into the output folder.
62
+
63
+
You will need `zip` and `unzip` commands available in your `$PATH`.
64
+
65
+
### Building using a Docker container
44
66
45
67
The Dockerized version of the build allows you to run the build entirely inside a "container" (lightweight virtual machine). This includes tricky dependencies like a local copy of Wattsi and Python.
0 commit comments