This repo contains documentation for the Interbit SDK.
It is implemented with GitBook, and has source files in Markdown and Asciidoc formats.
Run the following commands in a terminal window to install the Interbit documentation, and the dependencies required to generate HTML:
-
Clone the repository
git clone [email protected]:interbit/docs-interbit.git
-
Change the current directory
cd docs-interbit -
Install Node.js dependencies
npm install
-
Install Ruby dependencies
bundle install
Note: If you do not have Ruby's Bundler gem installed,
bundle installwill fail. To install Bundler, runsudo gem install bundler, then re-runbundle install.
To generate the HTML, run:
_bin/make.shOR, if you have make installed:
makeGitBook, by default, generates a static website for the book. Generation
depends on fresh copies of several plugins and theme packages, and there
is some minor post-generation cleanup required. The _bin/make.sh script
performs all of that work for you.
A number of tests are available to verify various aspects of the documentation, include checks for broken links, image sizes, repeated works, spelling, etc.
To run the tests:
npm run testOR, if you have make installed:
make test