This repository contains two different kinds of documentation- API documentation for the Syscoin API and Syscoin Core as well as reference documentation for Syscoin Core.
The API docs are generated from the OpenAPI specification defined in Syscoin API. The Syscoin API project is a Node/Express layer for interacting with Syscoin Core using REST. The same APIs are available via Syscoin Core directly using the built in RPC Server.
You're going to need:
- Linux or OS X — Windows may work, but is unsupported.
- Ruby, version 2.3.1 or newer
- Bundler — If Ruby is already installed, but the
bundle
command doesn't work, just rungem install bundler
in a terminal.
- Fork this repository on GitHub.
- Clone your forked repository (not our original one) to your hard drive with
git clone https://github.com/YOURUSERNAME/syscoin-docs.git
cd syscoin-docs
- Initialize and start Syscoin-docs. You can either do this locally, or with Vagrant:
# either run this to run locally
bundle install
bundle exec middleman server
# OR run this to run with vagrant
vagrant up
You can now see the docs at http://localhost:4567. Whoa! That was fast!
For converting OpenAPI specs to Markdown the excellent Widdershins converter is suggested. The output should be saved to source/index.html.md
.
Improve these docs through pull requests to be added as a contributor.