All documentation is written in markdown and staged on github pages. Published documentation is viewable on the github pages or getchip site.
If you want to add or modify a document, add your markdown file to the includes directory and make a pull request. You can use Github markdown or regular markdown.
Each include represents a top-level topic in the left-hand navigation if it is in the list of includes in index.html.
Note: If you view the files in the include/ directory here on github, the image links appear broken. This is to be expected because these pages have yet to be rendered into a viewable state.
This repo is forked from Slate. Read the docs on the original Slate repo wiki if you want all the details. There are also some sample docs worth perusing.
Here's the crux of the matter, though:
You're going to need:
- Linux or OS X — Windows may work, but is unsupported.
- Ruby, version 1.9.3 or newer
- Bundler — If Ruby is already installed, but the
bundlecommand doesn't work, just rungem install bundlerin a terminal.
Installing on El Capitan (OS X 10.11) can be difficult.
Once you clone the directory, you may need to cd to the chipdocs directory, then run the command bundle install.
If you get errors when you try to run rake publish after that, try bundle update to install the bundler, and then try rake publish again.
There may be some other black magic involved in getting it working on El Capitan, including:
brew install ruby
sudo gem install therubyracer -v '0.12.2'
sudo gem install libv8 -v '3.16.14.13' -- --with-system-v8
or perhaps even adding -n /usr/local/bin to the end of those last two items. I had to fumble around with a lot of various suggestions on the internets to finally get this working on El Capitan, so it is hard to say exactly which one fixed it. The last command I tried before it worked was bundle update, so I'd try that first!
If you are a contributor, it is easy to publish any changes you make. First, push your local changes to the master branch, then, in a terminal cd to your local repo and use the command rake publish. This will render static html pages, and push the changes to the gh-pages branch of this repo, making them live at http://docs.getchip.com