-
Notifications
You must be signed in to change notification settings - Fork 58
Working with Docs
The Dispatch docs rendered as GitHub pages. There are a few tricks to editing and previewing the docs locally, as GitHub uses Jekyll to render the markup as HTML.
Check out the official GitHub documentation for setting up Jekyll
Once setup, you should be able to view the rendered docs:
$ cd docs
$ bundle exec jekyll serve
...
Server address: http://127.0.0.1:4000/dispatch/
Server running... press ctrl-c to stop.
Now open a browser to http://127.0.0.1:4000/dispatch/.
The docs are currently divided into three sections (front, guides, and specs) which correspond to the (_front, _guides, and _specs) directories respectively. You can create a new section, but you will need to edit the _config.yml to add it to the navigation (should be straightforward).
Pages themselves are markdown, but require a little yaml at the head:
---
layout: default
---
Without that, Jekyll will not render the page. There is also only a single layout available currently "default".
Once you are happy with the new page, or edits, just commit to GitHub, and the docs will be rendered and available at vmware.github.io/dispatch