urbit.org
Test and Develop in Arvo
This guide assumes Arvo has been installed.
Note: installing Arvo and the step below to use the Arvo repo are not the same thing.
-
Make sure that all of the necessary submodules (docs) are up to date by running
git submodule initand thengit submodule update --recursive --remotein this repo -
Clone the Arvo repo
git clone git@github.com:urbit/arvo.gitand use this branchcd arvo && git co -b static-site-dev origin/static-site-dev. It has a few different renderers and marks for svgs, images, etc -
Make a fakezod using the Arvo branch. Use the command
urbit -F zod -A <path/to/arvo/repo> -sc zod -S -
If you've successfully booted your Urbit you should see the Dojo prompt:
~zod:dojo>, if instead you see:~zod:talk[]typectrl-xto switch to the Dojo prompt -
In the running fakezod, mount the filesystem by running
|mount % -
On a different terminal run
./scripts/topier <path/to/pier>from this directory to copy the pertinent files to your pier (the pier is thezoddirectory created in step 3) -
Go to your pier directory
cd <path/to/pierand view the contents of.http.ports. Navigate to localhost at the port labeledinsecure publice.g. visitlocalhost:8080to see the rendered urbit.org if you see8080 insecure public
To render/export
- Copy all content into your ship
./scripts/topier <path/to/pier> - Nuke docs
rm -rf </path/to/pier>/home/web/docs - Run
|staticin dojo to render full site - docs - Copy rendered content into
distdirectory in this repocp -r </path/to/pier>/.urb/put/web dist && cp -r static-site/js dist - Copy all content into your ship
./scripts/topier <path/to/pier> - Nuke posts
rm -rf </path/to/pier>/home/web/posts - Run
|staticin dojo to render docs - Copy rendered docs into
distdirectory in this repocp -r </path/to/pier>/.urb/put/web/docs dist - Test by running
cd dist && python -m SimpleHTTPServer - See urbit.org at
localhost:8000