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
+5-1
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,12 @@ $ npm install
19
19
$ grunt
20
20
```
21
21
22
-
Once you've built the site, open `build/index.html`in your web browserto preview.
22
+
Running `grunt` will build the site and rebuild when docs changes. You need to use a local webserver to preview in your web browser. One easy option is to use [http-server](https://www.npmjs.org/package/http-server) (installable via `npm install -g http-server`). You need to run it from the `/build` directory and explicitly include `html` as the default extension (add `-s` for silent mode):
23
23
24
+
```sh
25
+
docs.ractive.org/build>http-server -e html
26
+
```
27
+
Open `localhost` on the port specified (usually `8080`), and it should redirect to `localhost:8080/latest/get-started`. Refresh to pick up changes made in docs.
0 commit comments