on master help sign in
Add build script to README
79a0163Morgan Sutherland
README.md+5−3
@@ -20,14 +20,16 @@ This guide assumes [Arvo has been installed](https://urbit.org/docs/getting-star
20
20
217. Go to your pier directory `cd <path/to/pier` and view the contents of `.http.ports`. Navigate to localhost at the port labeled `insecure public` e.g. visit `localhost:8080` to see the rendered urbit.org if you see `8080 insecure public`
217. Go to your pier directory `cd <path/to/pier` and view the contents of `.http.ports`. Navigate to localhost at the port labeled `insecure public` e.g. visit `localhost:8080` to see the rendered urbit.org if you see `8080 insecure public`
22
22
23−## To render/export
23+## Build
24+
25+A [build script](https://github.com/urbit/urbit.org/blob/master/scripts/build) is provided in the `scripts` directory, or you can follow these instructions:
24
26
251. Copy all content into your ship `./scripts/topier <path/to/pier>`
271. Copy all content into your ship `./scripts/topier <path/to/pier>`
26−2. Nuke docs `rm -rf </path/to/pier>/home/web/docs`
28+2. Delete docs `rm -rf </path/to/pier>/home/web/docs`
273. Run `|static` in dojo to render full site - docs
293. Run `|static` in dojo to render full site - docs
284. Copy rendered content into `dist` directory in this repo `cp -r </path/to/pier>/.urb/put/web dist && cp -r static-site/js dist`
304. Copy rendered content into `dist` directory in this repo `cp -r </path/to/pier>/.urb/put/web dist && cp -r static-site/js dist`
295. Copy all content into your ship `./scripts/topier <path/to/pier>`
315. Copy all content into your ship `./scripts/topier <path/to/pier>`
30−6. Nuke posts `rm -rf </path/to/pier>/home/web/posts`
32+6. Delete posts `rm -rf </path/to/pier>/home/web/posts`
317. Run `|static` in dojo to render docs
337. Run `|static` in dojo to render docs
328. Copy rendered docs into `dist` directory in this repo `cp -r </path/to/pier>/.urb/put/web/docs dist`
348. Copy rendered docs into `dist` directory in this repo `cp -r </path/to/pier>/.urb/put/web/docs dist`
339. Test by running `cd dist && python -m SimpleHTTPServer`
359. Test by running `cd dist && python -m SimpleHTTPServer`