on 17e6f15 help sign in

The source for urbit.org

git clone ssh://git.iko.soy/urbit.org

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.

  1. Make sure that all of the necessary submodules (docs) are up to date by running git submodule init and then git submodule update --recursive --remote in this repo

  2. Clone the Arvo repo git clone git@github.com:urbit/arvo.git and use this branch cd arvo && git co -b static-site-dev origin/static-site-dev. It has a few different renderers and marks for svgs, images, etc

  3. Make a fakezod using the Arvo branch. Use the command urbit -F zod -A <path/to/arvo/repo> -sc zod -S

  4. If you've successfully booted your Urbit you should see the Dojo prompt: ~zod:dojo>, if instead you see: ~zod:talk[] type ctrl-x to switch to the Dojo prompt

  5. In the running fakezod, mount the filesystem by running |mount %

  6. On a different terminal run ./scripts/topier <path/to/pier> from this directory to copy the pertinent files to your pier (the pier is the zod directory created in step 3)

  7. 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

To render/export

  1. Copy all content into your ship ./scripts/topier <path/to/pier>
  2. Nuke docs rm -rf </path/to/pier>/home/web/docs
  3. Run |static in dojo to render full site - docs
  4. Copy rendered content into dist directory in this repo cp -r </path/to/pier>/.urb/put/web dist && cp -r static-site/js dist
  5. Copy all content into your ship ./scripts/topier <path/to/pier>
  6. Nuke posts rm -rf </path/to/pier>/home/web/posts
  7. Run |static in dojo to render docs
  8. Copy rendered docs into dist directory in this repo cp -r </path/to/pier>/.urb/put/web/docs dist
  9. Test by running cd dist && python -m SimpleHTTPServer
  10. See urbit.org at localhost:8000